Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,fileNamePrefix="Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.47/1.47, allocations: 287.4 MB / 302.6 MB, free: 8.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009355/0.0009356, allocations: 184.5 kB / 371.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.194/1.194, allocations: 205.4 MB / 0.6298 GB, free: 10.56 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000675/0.000675, allocations: 105.6 kB / 0.7431 GB, free: 6.539 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003343/0.0003344, allocations: 12.19 kB / 0.8662 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1599/0.1603, allocations: 115.3 MB / 0.9788 GB, free: 28.07 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.0007038/0.161, allocations: 477.6 kB / 0.9792 GB, free: 27.61 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0009284/0.162, allocations: 1.043 MB / 0.9802 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.195e-05/0.162, allocations: 4 kB / 0.9802 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.505e-05/0.162, allocations: 0 / 0.9802 GB, free: 26.54 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 5.43e-05/0.1621, allocations: 15.84 kB / 0.9803 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002015/0.1623, allocations: 39.97 kB / 0.9803 GB, free: 26.49 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.665e-05/0.1624, allocations: 63.78 kB / 0.9803 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.087e-05/0.1625, allocations: 16.17 kB / 0.9804 GB, free: 26.41 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 5.361e-05/0.1625, allocations: 23.92 kB / 0.9804 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.468e-05/0.1626, allocations: 27.84 kB / 0.9804 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.444e-05/0.1626, allocations: 4 kB / 0.9804 GB, free: 26.35 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 4.719e-05/0.1626, allocations: 15.98 kB / 0.9804 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.336e-05/0.1627, allocations: 7.984 kB / 0.9804 GB, free: 26.33 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.399e-05/0.1627, allocations: 37.64 kB / 0.9805 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.35e-05/0.1628, allocations: 60.09 kB / 0.9805 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1628, allocations: 0 / 0.9805 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.273e-06/0.1628, allocations: 0 / 0.9805 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 2.805e-06/0.1628, allocations: 0 / 0.9805 GB, free: 26.23 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003686/0.1632, allocations: 371.3 kB / 0.9809 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 2.968e-05/0.1632, allocations: 8.031 kB / 0.9809 GB, free: 25.81 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.442e-05/0.1632, allocations: 34.73 kB / 0.9809 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.184e-05/0.1633, allocations: 16.78 kB / 0.9809 GB, free: 25.75 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.545e-05/0.1633, allocations: 180.1 kB / 0.9811 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-06/0.1633, allocations: 8.375 kB / 0.9811 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.368e-05/0.1634, allocations: 4.375 kB / 0.9811 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001591/0.1635, allocations: 73.97 kB / 0.9812 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.1635, allocations: 3.984 kB / 0.9812 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.1636, allocations: 4 kB / 0.9812 GB, free: 25.44 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.1636, allocations: 4 kB / 0.9812 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001566/0.1637, allocations: 55.89 kB / 0.9813 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004611/0.1642, allocations: 332.8 kB / 0.9816 GB, free: 25 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001354/0.1643, allocations: 54.56 kB / 0.9816 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.792e-05/0.1644, allocations: 40.95 kB / 0.9817 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.1645, allocations: 7.969 kB / 0.9817 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001735/0.1646, allocations: 83.38 kB / 0.9818 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.1647, allocations: 0 / 0.9818 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0003291/0.165, allocations: 145.5 kB / 0.9819 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.36e-05/0.165, allocations: 55.41 kB / 0.982 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.51e-05/0.1651, allocations: 125.8 kB / 0.9821 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.1651, allocations: 29.7 kB / 0.9821 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 2.814e-05/0.1651, allocations: 96.11 kB / 0.9822 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.334e-05/0.1652, allocations: 19.69 kB / 0.9822 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.618e-06/0.1652, allocations: 0 / 0.9822 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.033e-05/0.1652, allocations: 326.8 kB / 0.9825 GB, free: 23.97 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.168e-05/0.1653, allocations: 31.97 kB / 0.9826 GB, free: 23.94 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.795e-05/0.1654, allocations: 81.92 kB / 0.9826 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001805/0.1656, allocations: 117.9 kB / 0.9827 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1656, allocations: 0 / 0.9827 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002461/0.1659, allocations: 145.5 kB / 0.9829 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.005e-05/0.1659, allocations: 12.03 kB / 0.9829 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.1659, allocations: 0 / 0.9829 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.1659, allocations: 4 kB / 0.9829 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.166, allocations: 15.98 kB / 0.9829 GB, free: 23.52 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.982e-06/0.166, allocations: 7.938 kB / 0.9829 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.312e-05/0.1661, allocations: 11.98 kB / 0.9829 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.1661, allocations: 8 kB / 0.9829 GB, free: 23.49 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler1.y,triggeredSampler1.y,$PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,samTri.y,$whenCondition2,samTri1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.32e-05/0.1662, allocations: 127.6 kB / 0.9831 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.548e-06/0.1662, allocations: 7.906 kB / 0.9831 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.027e-05/0.1662, allocations: 16.36 kB / 0.9831 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.1662, allocations: 0 / 0.9831 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.1662, allocations: 0 / 0.9831 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.1662, allocations: 0 / 0.9831 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003215/0.1666, allocations: 394.2 kB / 0.9835 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.1666, allocations: 0 / 0.9835 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.67e-05/0.1666, allocations: 8 kB / 0.9835 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1666, allocations: 4 kB / 0.9835 GB, free: 22.89 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.1667, allocations: 7.984 kB / 0.9835 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-06/0.1667, allocations: 3.938 kB / 0.9835 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1667, allocations: 4.391 kB / 0.9835 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002102/0.1669, allocations: 204.3 kB / 0.9837 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.641e-05/0.1669, allocations: 85.02 kB / 0.9838 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.1669, allocations: 11.98 kB / 0.9838 GB, free: 22.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.473e-05/0.167, allocations: 11.94 kB / 0.9838 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.063e-05/0.167, allocations: 3.984 kB / 0.9838 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.1671, allocations: 4 kB / 0.9838 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.737e-05/0.1671, allocations: 95.2 kB / 0.9839 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1671, allocations: 0 / 0.9839 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002058/0.1673, allocations: 20 kB / 0.9839 GB, free: 22.41 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004034/0.1677, allocations: 0.7552 MB / 0.9846 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002242/0.1679, allocations: 91.88 kB / 0.9847 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.168, allocations: 0 / 0.9847 GB, free: 21.54 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 9.7e-05/0.1681, allocations: 36.41 kB / 0.9848 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002158/0.1683, allocations: 19.94 kB / 0.9848 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007902/0.1691, allocations: 0.5899 MB / 0.9854 GB, free: 20.83 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.766e-05/0.1692, allocations: 0.6923 MB / 0.986 GB, free: 20.11 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.029e-05/0.1692, allocations: 7.984 kB / 0.986 GB, free: 20.1 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.608e-05/0.1693, allocations: 24.55 kB / 0.9861 GB, free: 20.08 MB / 0.6198 GB Notification: Performance of SimCode: time 1.9e-07/0.1693, allocations: 4 kB / 0.9861 GB, free: 20.07 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01106/0.1803, allocations: 1.788 MB / 0.9878 GB, free: 18.46 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001171/0.1805, allocations: 205.4 kB / 0.988 GB, free: 18.23 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.451/1.631, allocations: 0 / 0.988 GB, free: 18.23 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.fmu > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1)