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.00155/0.00155, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001771/0.001771, allocations: 173.3 kB / 23.02 MB, free: 1.551 MB / 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.9556/0.9556, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.035/2.035, allocations: 429.5 MB / 0.6732 GB, free: 4.02 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.492e-06/1.492e-06, allocations: 0 / 0.8781 GB, free: 6.379 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.234e-05/2.383e-05, allocations: 2.312 kB / 0.8781 GB, free: 6.375 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Discrete.Examples.BooleanDelay): time 0.001885/0.001909, allocations: 1.505 MB / 0.8796 GB, free: 4.879 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0006596/0.002569, allocations: 464.1 kB / 0.88 GB, free: 4.426 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.68e-05/0.002606, allocations: 0.9688 kB / 0.88 GB, free: 4.426 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.968e-05/0.002635, allocations: 3.938 kB / 0.88 GB, free: 4.422 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 8.197e-05/0.002717, allocations: 4.531 kB / 0.88 GB, free: 4.418 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001595/0.002877, allocations: 27.84 kB / 0.8801 GB, free: 4.391 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001164/0.002993, allocations: 48.72 kB / 0.8801 GB, free: 4.344 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 8.767e-05/0.003081, allocations: 8 kB / 0.8801 GB, free: 4.336 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 8.12e-05/0.003162, allocations: 33 kB / 0.8801 GB, free: 4.305 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 6.385e-05/0.003226, allocations: 19.91 kB / 0.8802 GB, free: 4.285 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 2.002e-05/0.003246, allocations: 4 kB / 0.8802 GB, free: 4.281 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 1.093e-05/0.003257, allocations: 5 kB / 0.8802 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.172e-05/0.003278, allocations: 0 / 0.8802 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 4.015e-05/0.003319, allocations: 21.02 kB / 0.8802 GB, free: 4.258 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001141/0.003433, allocations: 35.89 kB / 0.8802 GB, free: 4.223 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.285e-06/0.003435, allocations: 0 / 0.8802 GB, free: 4.223 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.12e-07/0.003436, allocations: 0.6562 kB / 0.8802 GB, free: 4.223 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.707e-06/0.003439, allocations: 0 / 0.8802 GB, free: 4.223 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.0004689/0.003908, allocations: 415.1 kB / 0.8806 GB, free: 3.777 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.003947, allocations: 16.77 kB / 0.8806 GB, free: 3.762 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.426e-05/0.003991, allocations: 8.938 kB / 0.8806 GB, free: 3.754 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.269e-05/0.004074, allocations: 116.1 kB / 0.8808 GB, free: 3.617 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.004085, allocations: 384 / 0.8808 GB, free: 3.617 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/0.004096, allocations: 4.375 kB / 0.8808 GB, free: 3.613 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001012/0.004197, allocations: 75.94 kB / 0.8808 GB, free: 3.527 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.004207, allocations: 192 / 0.8808 GB, free: 3.527 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.759e-06/0.004216, allocations: 4.312 kB / 0.8808 GB, free: 3.523 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.004224, allocations: 7.875 kB / 0.8808 GB, free: 3.516 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.071e-05/0.004265, allocations: 45.69 kB / 0.8809 GB, free: 3.465 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00031/0.004575, allocations: 255.8 kB / 0.8811 GB, free: 3.18 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.177e-05/0.004646, allocations: 69.38 kB / 0.8812 GB, free: 3.094 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.23e-05/0.004679, allocations: 46.11 kB / 0.8812 GB, free: 3.039 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.004695, allocations: 4.797 kB / 0.8812 GB, free: 3.035 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001204/0.004815, allocations: 136.3 kB / 0.8814 GB, free: 2.875 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.663e-06/0.004817, allocations: 0.8438 kB / 0.8814 GB, free: 2.875 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0002334/0.00505, allocations: 194.7 kB / 0.8816 GB, free: 2.66 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.005095, allocations: 82.64 kB / 0.8816 GB, free: 2.562 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.608e-05/0.005181, allocations: 169.9 kB / 0.8818 GB, free: 2.379 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.19e-05/0.005193, allocations: 29.7 kB / 0.8818 GB, free: 2.344 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.652e-05/0.00524, allocations: 130.9 kB / 0.882 GB, free: 2.211 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.005258, allocations: 23.91 kB / 0.882 GB, free: 2.188 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.514e-05/0.005293, allocations: 35.36 kB / 0.882 GB, free: 2.145 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.855e-05/0.005392, allocations: 0.4884 MB / 0.8825 GB, free: 1.645 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.125e-05/0.005423, allocations: 41.7 kB / 0.8825 GB, free: 1.598 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.293e-05/0.005466, allocations: 72.69 kB / 0.8826 GB, free: 1.508 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.004e-05/0.005536, allocations: 110.4 kB / 0.8827 GB, free: 1.375 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.005538, allocations: 4 kB / 0.8827 GB, free: 1.371 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001204/0.005659, allocations: 153.4 kB / 0.8829 GB, free: 1.203 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.005687, allocations: 37.75 kB / 0.8829 GB, free: 1.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.005692, allocations: 8 kB / 0.8829 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.005704, allocations: 0 / 0.8829 GB, free: 1.152 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.536e-05/0.005749, allocations: 7.938 kB / 0.8829 GB, free: 1.145 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.005755, allocations: 4 kB / 0.8829 GB, free: 1.141 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.875e-05/0.005793, allocations: 4 kB / 0.8829 GB, free: 1.137 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-06/0.005799, allocations: 3.984 kB / 0.8829 GB, free: 1.133 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 8.012e-05/0.005879, allocations: 194.3 kB / 0.8831 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.748e-05/0.005897, allocations: 19.89 kB / 0.8831 GB, free: 0.9062 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.11e-05/0.005918, allocations: 4.438 kB / 0.8831 GB, free: 0.8984 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.00592, allocations: 4 kB / 0.8831 GB, free: 0.8945 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.005924, allocations: 4 kB / 0.8831 GB, free: 0.8906 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.005928, allocations: 7.922 kB / 0.8831 GB, free: 0.8828 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002883/0.006216, allocations: 420.7 kB / 0.8835 GB, free: 428 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.006217, allocations: 0 / 0.8835 GB, free: 428 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.308e-06/0.006222, allocations: 0 / 0.8835 GB, free: 428 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.006224, allocations: 0 / 0.8835 GB, free: 428 kB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/0.006232, allocations: 4 kB / 0.8835 GB, free: 424 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.006234, allocations: 0 / 0.8835 GB, free: 424 kB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.006235, allocations: 0 / 0.8835 GB, free: 424 kB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001625/0.006397, allocations: 323.5 kB / 0.8839 GB, free: 68 kB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.608e-06/0.006407, allocations: 11.89 kB / 0.8839 GB, free: 56 kB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.006426, allocations: 8 kB / 0.8839 GB, free: 48 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.512e-05/0.006481, allocations: 7.984 kB / 0.8839 GB, free: 40 kB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.006521, allocations: 4 kB / 0.8839 GB, free: 36 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.361e-05/0.006535, allocations: 3.984 kB / 0.8839 GB, free: 32 kB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.818e-05/0.006583, allocations: 131.2 kB / 0.884 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.006583, allocations: 0 / 0.884 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001491/0.006732, allocations: 12 kB / 0.884 GB, free: 15.89 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 7.693e-05/0.006809, allocations: 107.2 kB / 0.8841 GB, free: 15.78 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001489/0.006958, allocations: 170.4 kB / 0.8843 GB, free: 15.58 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.00696, allocations: 4 kB / 0.8843 GB, free: 15.58 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 6.255e-05/0.007022, allocations: 116.8 kB / 0.8844 GB, free: 15.44 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.007234, allocations: 15.92 kB / 0.8844 GB, free: 15.43 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002734/0.007507, allocations: 179.9 kB / 0.8846 GB, free: 15.21 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.638e-05/0.007544, allocations: 67.34 kB / 0.8847 GB, free: 15.13 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 2.2e-05/0.007566, allocations: 0 / 0.8847 GB, free: 15.13 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.664e-05/0.007592, allocations: 12.5 kB / 0.8847 GB, free: 15.12 MB / 0.8542 GB Notification: Performance of SimCode: time 8.32e-07/0.007593, allocations: 4.125 kB / 0.8847 GB, free: 15.11 MB / 0.8542 GB Notification: Performance of Templates: time 0.002707/0.0103, allocations: 1.002 MB / 0.8857 GB, free: 14.14 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.301524244714528]