Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 73.88 kB / 20.65 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001963/0.001963, allocations: 169 kB / 24.06 MB, free: 452 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9379/0.9379, allocations: 177.1 MB / 204.5 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.026/2.026, allocations: 429.5 MB / 0.6743 GB, free: 3.914 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") translateModel(Buildings.Controls.Discrete.Examples.BooleanDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|del.u|del.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 0.8793 GB, free: 6.082 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.829e-05/3.01e-05, allocations: 2.312 kB / 0.8793 GB, free: 6.078 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.002243/0.002273, allocations: 1.491 MB / 0.8808 GB, free: 4.602 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0007195/0.002992, allocations: 465.4 kB / 0.8812 GB, free: 4.148 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.151e-05/0.003034, allocations: 1.125 kB / 0.8812 GB, free: 4.148 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 3.346e-05/0.003067, allocations: 3.938 kB / 0.8812 GB, free: 4.145 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.206e-05/0.003149, allocations: 11.88 kB / 0.8813 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001454/0.003295, allocations: 17.17 kB / 0.8813 GB, free: 4.117 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.003397, allocations: 59.77 kB / 0.8813 GB, free: 4.059 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 7.585e-05/0.003473, allocations: 4 kB / 0.8813 GB, free: 4.055 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 7.904e-05/0.003552, allocations: 33.45 kB / 0.8814 GB, free: 4.023 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.269e-05/0.003615, allocations: 15.97 kB / 0.8814 GB, free: 4.008 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.003635, allocations: 4 kB / 0.8814 GB, free: 4.004 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 9.778e-06/0.003645, allocations: 4 kB / 0.8814 GB, free: 4 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.471e-05/0.003669, allocations: 10.91 kB / 0.8814 GB, free: 3.992 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.604e-05/0.003706, allocations: 19.97 kB / 0.8814 GB, free: 3.973 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.000104/0.00381, allocations: 31.91 kB / 0.8814 GB, free: 3.941 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.003812, allocations: 0 / 0.8814 GB, free: 3.941 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.232e-06/0.003814, allocations: 0 / 0.8814 GB, free: 3.941 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.003819, allocations: 0 / 0.8814 GB, free: 3.941 MB / 0.8386 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004506/0.004269, allocations: 414.9 kB / 0.8818 GB, free: 3.496 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.004304, allocations: 12.03 kB / 0.8818 GB, free: 3.484 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.335e-05/0.004337, allocations: 10.58 kB / 0.8819 GB, free: 3.477 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.358e-05/0.004421, allocations: 128.5 kB / 0.882 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.098e-05/0.004432, allocations: 384 / 0.882 GB, free: 3.324 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.00444, allocations: 4.375 kB / 0.882 GB, free: 3.32 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.163e-05/0.004532, allocations: 75.94 kB / 0.8821 GB, free: 3.234 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.004539, allocations: 0.6875 kB / 0.8821 GB, free: 3.234 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.913e-06/0.004546, allocations: 1.719 kB / 0.8821 GB, free: 3.234 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.004553, allocations: 3.938 kB / 0.8821 GB, free: 3.23 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.239e-05/0.004585, allocations: 33.7 kB / 0.8821 GB, free: 3.191 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002779/0.004863, allocations: 250.1 kB / 0.8823 GB, free: 2.922 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 6.522e-05/0.004928, allocations: 64.69 kB / 0.8824 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.41e-05/0.004952, allocations: 41.39 kB / 0.8824 GB, free: 2.789 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.258e-05/0.004965, allocations: 4.062 kB / 0.8824 GB, free: 2.785 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001194/0.005084, allocations: 140.4 kB / 0.8826 GB, free: 2.621 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.005086, allocations: 0 / 0.8826 GB, free: 2.621 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0002133/0.005299, allocations: 186.7 kB / 0.8828 GB, free: 2.414 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.005339, allocations: 77.11 kB / 0.8828 GB, free: 2.32 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.659e-05/0.005416, allocations: 169.9 kB / 0.883 GB, free: 2.137 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.005427, allocations: 33.7 kB / 0.883 GB, free: 2.098 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.867e-05/0.005476, allocations: 134.8 kB / 0.8831 GB, free: 1.961 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.005492, allocations: 15.84 kB / 0.8832 GB, free: 1.945 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.52e-05/0.005527, allocations: 35.34 kB / 0.8832 GB, free: 1.902 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001204/0.005648, allocations: 0.4884 MB / 0.8837 GB, free: 1.402 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.888e-05/0.005677, allocations: 45.62 kB / 0.8837 GB, free: 1.352 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.567e-05/0.005722, allocations: 72.75 kB / 0.8838 GB, free: 1.262 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.629e-05/0.005789, allocations: 102.5 kB / 0.8839 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.005791, allocations: 0 / 0.8839 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001331/0.005924, allocations: 152.9 kB / 0.884 GB, free: 0.9688 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.005958, allocations: 40.3 kB / 0.8841 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.005964, allocations: 400 / 0.8841 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.005974, allocations: 0 / 0.8841 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.089e-05/0.006015, allocations: 8.062 kB / 0.8841 GB, free: 0.918 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.006019, allocations: 3.984 kB / 0.8841 GB, free: 0.9141 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.004e-05/0.006059, allocations: 12 kB / 0.8841 GB, free: 0.9023 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.006063, allocations: 0 / 0.8841 GB, free: 0.9023 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 11 (del.firstTrigger,$PRE.del.firstTrigger,$whenCondition2,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,del.ySample,del.sampleTrigger,del.y,$whenCondition3,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.312e-05/0.006156, allocations: 190.9 kB / 0.8843 GB, free: 0.6992 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.182e-05/0.006178, allocations: 19.94 kB / 0.8843 GB, free: 0.6797 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.507e-05/0.006203, allocations: 12.31 kB / 0.8843 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.006205, allocations: 0 / 0.8843 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.006208, allocations: 0 / 0.8843 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.006211, allocations: 0 / 0.8843 GB, free: 0.6641 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002883/0.0065, allocations: 397.8 kB / 0.8847 GB, free: 236 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.006501, allocations: 0 / 0.8847 GB, free: 236 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.711e-06/0.006507, allocations: 0 / 0.8847 GB, free: 236 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.00651, allocations: 7.875 kB / 0.8847 GB, free: 228 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.006519, allocations: 11.98 kB / 0.8847 GB, free: 216 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.00652, allocations: 0 / 0.8847 GB, free: 216 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.006521, allocations: 0 / 0.8847 GB, free: 216 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001771/0.006698, allocations: 307.1 kB / 0.885 GB, free: 15.88 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 1.537e-05/0.006713, allocations: 15.83 kB / 0.885 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.006729, allocations: 4 kB / 0.885 GB, free: 15.86 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.976e-05/0.006789, allocations: 11.97 kB / 0.885 GB, free: 15.85 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.507e-05/0.006824, allocations: 11.98 kB / 0.885 GB, free: 15.84 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.136e-05/0.006846, allocations: 8 kB / 0.885 GB, free: 15.83 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 4.137e-05/0.006887, allocations: 123.2 kB / 0.8852 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of sort global known variables: time 5e-08/0.006887, allocations: 0 / 0.8852 GB, free: 15.71 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001525/0.007039, allocations: 12 kB / 0.8852 GB, free: 15.7 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (del.sampleTrigger,$whenCondition2,$whenCondition1,$whenCondition3,del.y,del.firstTrigger,del.ySample,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 3 (del.ySample,del.y,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.934e-05/0.007129, allocations: 103.2 kB / 0.8853 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000403/0.007532, allocations: 166.4 kB / 0.8854 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.007534, allocations: 0 / 0.8854 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 5.715e-05/0.007591, allocations: 108.9 kB / 0.8855 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/0.007793, allocations: 20.86 kB / 0.8856 GB, free: 15.25 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002669/0.00806, allocations: 183.8 kB / 0.8857 GB, free: 15.03 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.675e-05/0.008097, allocations: 63.34 kB / 0.8858 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.69e-05/0.008124, allocations: 4 kB / 0.8858 GB, free: 14.95 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.916e-05/0.008193, allocations: 86.19 kB / 0.8859 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of SimCode: time 8.22e-07/0.008194, allocations: 0 / 0.8859 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of Templates: time 0.002649/0.01084, allocations: 1.058 MB / 0.8869 GB, free: 13.82 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; mkfifo Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe >> ../files/Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.sim & ./Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Controls.Discrete.Examples.BooleanDelay_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Discrete_Examples_BooleanDelay.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.229769396129996]