Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerAccumulatingNegativeStartTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TimerAccumulatingNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TimerAccumulatingNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TimerAccumulatingNegativeStartTime,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TimerAccumulatingNegativeStartTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.248/2.248, allocations: 390.3 MB / 402.8 MB, free: 6.719 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 184.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 221.3 MB / 0.7915 GB, free: 5.453 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009119/0.000912, allocations: 99.5 kB / 0.9317 GB, free: 5.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.904e-05/3.915e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2844, allocations: 143 MB / 1.219 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8487/1.133, allocations: 150.6 MB / 1.366 GB, free: 3.395 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/1.133, allocations: 62.78 kB / 1.366 GB, free: 3.363 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01199/1.145, allocations: 4.001 MB / 1.37 GB, free: 15.85 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.593e-06/1.145, allocations: 0 / 1.37 GB, free: 15.85 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.067e-05/1.145, allocations: 4 kB / 1.37 GB, free: 15.85 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: 27 * Number of variables: 27 Notification: Performance of Generate backend data structure: time 0.0008941/1.146, allocations: 0.5399 MB / 1.37 GB, free: 15.26 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/1.146, allocations: 8.031 kB / 1.37 GB, free: 15.25 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.511e-05/1.147, allocations: 57.91 kB / 1.371 GB, free: 15.2 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.522e-05/1.147, allocations: 31.77 kB / 1.371 GB, free: 15.16 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/1.147, allocations: 176.1 kB / 1.371 GB, free: 14.95 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.482e-05/1.147, allocations: 24.03 kB / 1.371 GB, free: 14.93 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.713e-05/1.147, allocations: 38.61 kB / 1.371 GB, free: 14.9 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004215/1.147, allocations: 256 kB / 1.371 GB, free: 14.71 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.807e-06/1.147, allocations: 0 / 1.371 GB, free: 14.71 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.714e-05/1.147, allocations: 15.09 kB / 1.371 GB, free: 14.7 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.016e-06/1.147, allocations: 4 kB / 1.371 GB, free: 14.7 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/1.148, allocations: 124.3 kB / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009134/1.149, allocations: 0.596 MB / 1.372 GB, free: 14.07 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005003/1.149, allocations: 411.5 kB / 1.372 GB, free: 13.77 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002571/1.149, allocations: 200.6 kB / 1.372 GB, free: 13.65 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/1.149, allocations: 4 kB / 1.372 GB, free: 13.64 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005479/1.15, allocations: 361.5 kB / 1.373 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=46): time 2.154e-06/1.15, allocations: 0 / 1.373 GB, free: 13.35 MB / 0.8386 GB Notification: Performance of matching and sorting (n=46): time 0.0008275/1.151, allocations: 0.5243 MB / 1.373 GB, free: 12.93 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/1.151, allocations: 63.41 kB / 1.373 GB, free: 12.86 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/1.151, allocations: 135.4 kB / 1.373 GB, free: 12.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 6.16e-05/1.151, allocations: 54.02 kB / 1.373 GB, free: 12.69 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.441e-05/1.151, allocations: 102.6 kB / 1.374 GB, free: 12.59 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.551e-05/1.151, allocations: 105.7 kB / 1.374 GB, free: 12.51 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/1.151, allocations: 15.38 kB / 1.374 GB, free: 12.5 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001583/1.151, allocations: 334.4 kB / 1.374 GB, free: 12.18 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002796/1.152, allocations: 143.2 kB / 1.374 GB, free: 12.09 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003769/1.152, allocations: 291.8 kB / 1.374 GB, free: 11.8 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003097/1.152, allocations: 222.3 kB / 1.375 GB, free: 11.61 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/1.152, allocations: 0 / 1.375 GB, free: 11.61 MB / 0.8386 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008477/1.153, allocations: 0.5538 MB / 1.375 GB, free: 11.14 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.974e-05/1.153, allocations: 76.62 kB / 1.375 GB, free: 11.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/1.153, allocations: 4 kB / 1.375 GB, free: 11.06 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/1.153, allocations: 8 kB / 1.375 GB, free: 11.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001652/1.154, allocations: 51.16 kB / 1.375 GB, free: 11 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.549e-05/1.154, allocations: 8 kB / 1.375 GB, free: 11 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004712/1.154, allocations: 113.9 kB / 1.375 GB, free: 10.89 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.289e-05/1.154, allocations: 33.67 kB / 1.375 GB, free: 10.87 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 64 ($PRE.noThr.u,$PRE.noThr.reset,$PRE.thrTim.u,$PRE.thrTim.reset,$PRE.noThrWitRes.u,$PRE.noThrWitRes.reset,$PRE.thrTimWitRes.u,$PRE.thrTimWitRes.reset,$PRE.noThr.passed,noThr.passed,$PRE.thrTim.passed,thrTim.passed,$PRE.noThrWitRes.passed,noThrWitRes.passed,$PRE.thrTimWitRes.passed,thrTimWitRes.passed,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$whenCondition20,noThr.reset,$whenCondition16,thrTim.reset,$whenCondition12,$whenCondition8,noThrWitRes.reset,thrTimWitRes.reset,$PRE.resTim.y,resTim.y,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition5,$whenCondition6,$whenCondition7,noThr.u,$PRE.noThr.entryTime,noThr.entryTime,$PRE.noThr.yAcc,noThr.yAcc,thrTim.u,$PRE.thrTim.entryTime,thrTim.entryTime,$PRE.thrTim.yAcc,thrTim.yAcc,noThrWitRes.u,$PRE.noThrWitRes.entryTime,noThrWitRes.entryTime,$PRE.noThrWitRes.yAcc,noThrWitRes.yAcc,thrTimWitRes.u,$PRE.thrTimWitRes.entryTime,thrTimWitRes.entryTime,$PRE.thrTimWitRes.yAcc,thrTimWitRes.yAcc,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 2 * 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 0.0001736/1.154, allocations: 170.1 kB / 1.376 GB, free: 10.71 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.386e-05/1.154, allocations: 27.8 kB / 1.376 GB, free: 10.69 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.087e-05/1.154, allocations: 25.33 kB / 1.376 GB, free: 10.68 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/1.154, allocations: 8 kB / 1.376 GB, free: 10.67 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/1.154, allocations: 0 / 1.376 GB, free: 10.67 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/1.155, allocations: 7.984 kB / 1.376 GB, free: 10.66 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/1.156, allocations: 1.039 MB / 1.377 GB, free: 9.746 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/1.156, allocations: 0 / 1.377 GB, free: 9.746 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.062e-05/1.156, allocations: 23.55 kB / 1.377 GB, free: 9.727 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/1.156, allocations: 0 / 1.377 GB, free: 9.727 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.004e-05/1.156, allocations: 19.03 kB / 1.377 GB, free: 9.711 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/1.156, allocations: 4.062 kB / 1.377 GB, free: 9.707 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/1.156, allocations: 8.062 kB / 1.377 GB, free: 9.699 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000805/1.157, allocations: 0.6545 MB / 1.377 GB, free: 9.137 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.158e-05/1.157, allocations: 96.83 kB / 1.377 GB, free: 9.023 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.058e-05/1.157, allocations: 30.41 kB / 1.377 GB, free: 9.004 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001952/1.157, allocations: 35.83 kB / 1.378 GB, free: 8.973 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/1.157, allocations: 47.81 kB / 1.378 GB, free: 8.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.112e-05/1.157, allocations: 31.73 kB / 1.378 GB, free: 8.906 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.121e-05/1.158, allocations: 101.8 kB / 1.378 GB, free: 8.812 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.31e-07/1.158, allocations: 0 / 1.378 GB, free: 8.812 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004341/1.158, allocations: 114.4 kB / 1.378 GB, free: 8.715 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 42 (noThrWitRes.reset,thrTimWitRes.reset,noThr.u,noThrWitRes.u,thrTim.u,thrTimWitRes.u,$whenCondition17,$whenCondition18,$whenCondition19,$whenCondition20,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,noThr.passed,noThr.entryTime,noThr.yAcc,thrTim.passed,thrTim.entryTime,thrTim.yAcc,noThrWitRes.passed,noThrWitRes.entryTime,noThrWitRes.yAcc,thrTimWitRes.passed,thrTimWitRes.entryTime,thrTimWitRes.yAcc,booPul.y,resTim.y,noThr.reset,thrTim.reset) * Number of discrete states: 16 (thrTimWitRes.entryTime,thrTimWitRes.yAcc,thrTim.entryTime,thrTim.yAcc,thrTim.y,thrTim.passed,noThrWitRes.entryTime,noThrWitRes.yAcc,noThr.entryTime,noThr.yAcc,noThr.y,noThr.passed,noThrWitRes.y,noThrWitRes.passed,thrTimWitRes.y,thrTimWitRes.passed) * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 14 * 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.001444/1.159, allocations: 1.388 MB / 1.379 GB, free: 7.426 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0009058/1.16, allocations: 0.5367 MB / 1.38 GB, free: 6.988 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.16, allocations: 5.125 kB / 1.38 GB, free: 6.984 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003604/1.161, allocations: 302.8 kB / 1.38 GB, free: 6.797 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002857/1.161, allocations: 34.28 kB / 1.38 GB, free: 6.77 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009374/1.162, allocations: 449.3 kB / 1.38 GB, free: 6.375 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/1.162, allocations: 0.7343 MB / 1.381 GB, free: 5.613 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001057/1.163, allocations: 34.95 kB / 1.381 GB, free: 5.582 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001049/1.163, allocations: 60.67 kB / 1.381 GB, free: 5.555 MB / 0.8386 GB Notification: Performance of SimCode: time 6.91e-07/1.163, allocations: 0 / 1.381 GB, free: 5.555 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02061/1.183, allocations: 5.684 MB / 1.387 GB, free: 96 kB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002442/1.184, allocations: 194.2 kB / 1.387 GB, free: 15.87 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.89/3.074, allocations: 4 kB / 1.387 GB, free: 15.86 MB / 0.8542 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerAccumulatingNegativeStartTime.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerAccumulatingNegativeStartTime.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerAccumulatingNegativeStartTime.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerAccumulatingNegativeStartTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerAccumulatingNegativeStartTime_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TimerAccumulatingNegativeStartTime_fmu --startTime=-10 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TimerAccumulatingNegativeStartTime.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerAccumulatingNegativeStartTime.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TimerAccumulatingNegativeStartTime_res.mat does not exist to compare? outputFormat=mat