Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009839/0.0009839, allocations: 100 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000978/0.0009781, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.297/2.297, allocations: 390.3 MB / 0.6653 GB, free: 2.992 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003288/0.0003289, allocations: 12 kB / 0.8146 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6819/0.6822, allocations: 142.3 MB / 0.9536 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.001447/0.6837, allocations: 1.173 MB / 0.9547 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005669/0.6843, allocations: 421.2 kB / 0.9551 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.448e-05/0.6843, allocations: 1.375 kB / 0.9551 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.341e-05/0.6843, allocations: 0 / 0.9551 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 7.749e-05/0.6844, allocations: 5.453 kB / 0.9551 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001344/0.6846, allocations: 19.95 kB / 0.9551 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.706e-05/0.6846, allocations: 27.09 kB / 0.9552 GB, free: 6.789 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.47e-05/0.6847, allocations: 17.3 kB / 0.9552 GB, free: 6.777 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.905e-05/0.6848, allocations: 26.62 kB / 0.9552 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.259e-05/0.6849, allocations: 16.8 kB / 0.9552 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.701e-05/0.6849, allocations: 1.531 kB / 0.9552 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.259e-05/0.6849, allocations: 2.25 kB / 0.9552 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.682e-05/0.6849, allocations: 6.234 kB / 0.9552 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.034e-05/0.685, allocations: 37.67 kB / 0.9553 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.958e-05/0.685, allocations: 26.64 kB / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.685, allocations: 0 / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.874e-06/0.685, allocations: 0 / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.685, allocations: 0 / 0.9553 GB, free: 6.688 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004264/0.6855, allocations: 358.3 kB / 0.9556 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.6855, allocations: 8.438 kB / 0.9557 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.922e-05/0.6856, allocations: 33.53 kB / 0.9557 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.83e-05/0.6856, allocations: 10.33 kB / 0.9557 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.093e-05/0.6857, allocations: 173.5 kB / 0.9559 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/0.6857, allocations: 5.422 kB / 0.9559 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.6857, allocations: 12.14 kB / 0.9559 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001048/0.6858, allocations: 58.47 kB / 0.9559 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.6858, allocations: 1.5 kB / 0.9559 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.6859, allocations: 4 kB / 0.9559 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.6859, allocations: 1.438 kB / 0.9559 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.051e-05/0.6859, allocations: 29.3 kB / 0.956 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004311/0.6864, allocations: 311.1 kB / 0.9563 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.975e-05/0.6865, allocations: 49.34 kB / 0.9563 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.072e-05/0.6865, allocations: 1.438 kB / 0.9563 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001625/0.6867, allocations: 79.33 kB / 0.9564 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.6867, allocations: 4 kB / 0.9564 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0002041/0.6869, allocations: 99.97 kB / 0.9565 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.6869, allocations: 57.36 kB / 0.9565 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.281e-05/0.687, allocations: 100.6 kB / 0.9566 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/0.687, allocations: 30.8 kB / 0.9567 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.864e-05/0.687, allocations: 86.41 kB / 0.9568 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.6871, allocations: 23.83 kB / 0.9568 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.848e-06/0.6871, allocations: 0 / 0.9568 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.726e-05/0.6871, allocations: 320.1 kB / 0.9571 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.146e-05/0.6871, allocations: 21.09 kB / 0.9571 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.229e-05/0.6872, allocations: 48.36 kB / 0.9571 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.981e-05/0.6872, allocations: 26.91 kB / 0.9572 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-06/0.6872, allocations: 1.125 kB / 0.9572 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001226/0.6874, allocations: 93.77 kB / 0.9573 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.6874, allocations: 14.05 kB / 0.9573 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.6874, allocations: 5.031 kB / 0.9573 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.6874, allocations: 1.812 kB / 0.9573 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.638e-05/0.6875, allocations: 15.98 kB / 0.9573 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.6875, allocations: 5.031 kB / 0.9573 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.464e-05/0.6876, allocations: 11.28 kB / 0.9573 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.665e-06/0.6876, allocations: 3.031 kB / 0.9573 GB, free: 4.688 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition3,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,not1.y,$PRE.offTim1.entryTime,offTim1.entryTime,$PRE.offTim2.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 6.48e-05/0.6877, allocations: 117.5 kB / 0.9574 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.259e-05/0.6877, allocations: 9.984 kB / 0.9574 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.865e-05/0.6877, allocations: 13.3 kB / 0.9574 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.6877, allocations: 1 kB / 0.9574 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.6877, allocations: 1.062 kB / 0.9575 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.6877, allocations: 3.984 kB / 0.9575 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003042/0.688, allocations: 359.4 kB / 0.9578 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.6881, allocations: 0 / 0.9578 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.622e-05/0.6881, allocations: 11.2 kB / 0.9578 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.6881, allocations: 5.156 kB / 0.9578 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.6881, allocations: 5.141 kB / 0.9578 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.6881, allocations: 0 / 0.9578 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.6881, allocations: 1.125 kB / 0.9578 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001192/0.6882, allocations: 175.3 kB / 0.958 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.811e-05/0.6883, allocations: 86.19 kB / 0.9581 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.6883, allocations: 5.078 kB / 0.9581 GB, free: 3.914 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.311e-05/0.6884, allocations: 9.625 kB / 0.9581 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.6884, allocations: 11.7 kB / 0.9581 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.121e-06/0.6884, allocations: 7 kB / 0.9581 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.302e-05/0.6885, allocations: 82.7 kB / 0.9582 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.6885, allocations: 0 / 0.9582 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002244/0.6887, allocations: 15.34 kB / 0.9582 GB, free: 3.816 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0002646/0.689, allocations: 0.7163 MB / 0.9589 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001121/0.6891, allocations: 51.95 kB / 0.9589 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.6891, allocations: 0.9375 kB / 0.9589 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.899e-05/0.6891, allocations: 29.23 kB / 0.959 GB, free: 3.094 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001757/0.6893, allocations: 11.83 kB / 0.959 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007256/0.6901, allocations: 0.9428 MB / 0.9599 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001046/0.6902, allocations: 0.6845 MB / 0.9606 GB, free: 1.484 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.534e-05/0.6902, allocations: 7.547 kB / 0.9606 GB, free: 1.48 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.621e-05/0.6903, allocations: 15.25 kB / 0.9606 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.6903, allocations: 0 / 0.9606 GB, free: 1.473 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01079/0.701, allocations: 1.459 MB / 0.962 GB, free: 0.7852 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001298/0.7012, allocations: 173.5 kB / 0.9622 GB, free: 0.5508 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.596/2.297, allocations: 4 kB / 0.9622 GB, free: 0.5469 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_OffTimer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_Continuous_Examples_OffTimer.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer_res.mat does not exist to compare? outputFormat=mat