Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.209/2.209, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001162/0.001162, allocations: 178.8 kB / 498.1 MB, free: 5.746 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 223.1 MB / 0.7948 GB, free: 17.99 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.0008461/0.0008461, allocations: 88.39 kB / 0.9346 GB, free: 6.293 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.000361/0.0003612, allocations: 14.47 kB / 1.084 GB, free: 221.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2784, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1791/0.4576, allocations: 149.4 MB / 1.369 GB, free: 12.61 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003269/0.458, allocations: 71.95 kB / 1.369 GB, free: 12.54 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.009506/0.4675, allocations: 2.958 MB / 1.372 GB, free: 9.574 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.094e-06/0.4676, allocations: 0 / 1.372 GB, free: 9.574 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.949e-06/0.4676, allocations: 4 kB / 1.372 GB, free: 9.57 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005669/0.4682, allocations: 418.5 kB / 1.372 GB, free: 9.102 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.4682, allocations: 12.03 kB / 1.372 GB, free: 9.09 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.653e-05/0.4683, allocations: 38.44 kB / 1.372 GB, free: 9.043 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.14e-05/0.4684, allocations: 12 kB / 1.372 GB, free: 9.031 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001466/0.4685, allocations: 174.9 kB / 1.372 GB, free: 8.82 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.997e-05/0.4686, allocations: 4 kB / 1.372 GB, free: 8.816 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.797e-05/0.4686, allocations: 8 kB / 1.372 GB, free: 8.809 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001341/0.4688, allocations: 61.67 kB / 1.373 GB, free: 8.742 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.4688, allocations: 0 / 1.373 GB, free: 8.742 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-06/0.4688, allocations: 0 / 1.373 GB, free: 8.742 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-06/0.4688, allocations: 3.984 kB / 1.373 GB, free: 8.738 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.582e-05/0.4689, allocations: 15.98 kB / 1.373 GB, free: 8.723 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006169/0.4695, allocations: 356.7 kB / 1.373 GB, free: 8.324 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 9.333e-05/0.4696, allocations: 38.56 kB / 1.373 GB, free: 8.277 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 6.272e-06/0.4696, allocations: 4 kB / 1.373 GB, free: 8.273 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002266/0.4698, allocations: 87.39 kB / 1.373 GB, free: 8.176 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=9): time 1.863e-06/0.4699, allocations: 0 / 1.373 GB, free: 8.176 MB / 0.8698 GB Notification: Performance of matching and sorting (n=9): time 0.0003121/0.4702, allocations: 133.4 kB / 1.373 GB, free: 8.039 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.4702, allocations: 55.36 kB / 1.373 GB, free: 7.973 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001388/0.4704, allocations: 120.8 kB / 1.373 GB, free: 7.848 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/0.4704, allocations: 29.7 kB / 1.373 GB, free: 7.812 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.396e-05/0.4705, allocations: 96.36 kB / 1.373 GB, free: 7.711 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.094e-05/0.4705, allocations: 15.8 kB / 1.373 GB, free: 7.695 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.94e-05/0.4706, allocations: 8 kB / 1.373 GB, free: 7.688 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001312/0.4707, allocations: 322.8 kB / 1.374 GB, free: 7.363 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.4708, allocations: 55.97 kB / 1.374 GB, free: 7.309 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001736/0.471, allocations: 114.8 kB / 1.374 GB, free: 7.176 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001664/0.4712, allocations: 123.3 kB / 1.374 GB, free: 7.043 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4712, allocations: 0 / 1.374 GB, free: 7.043 MB / 0.8698 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000468/0.4717, allocations: 276.9 kB / 1.374 GB, free: 6.754 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.479e-05/0.4718, allocations: 71.39 kB / 1.374 GB, free: 6.672 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.4718, allocations: 0 / 1.374 GB, free: 6.672 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.4718, allocations: 4 kB / 1.374 GB, free: 6.668 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.875e-05/0.4719, allocations: 11.92 kB / 1.374 GB, free: 6.656 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.4719, allocations: 0 / 1.374 GB, free: 6.656 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003521/0.4722, allocations: 79.86 kB / 1.374 GB, free: 6.578 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.686e-05/0.4723, allocations: 16 kB / 1.374 GB, free: 6.562 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.onCounter.y,onCounter.y,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$PRE.reset.y,reset.y,$whenCondition1,$PRE.booPul.y,booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * 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.0001211/0.4724, allocations: 121.8 kB / 1.375 GB, free: 6.434 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.796e-05/0.4724, allocations: 11.91 kB / 1.375 GB, free: 6.422 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.298e-05/0.4725, allocations: 8.375 kB / 1.375 GB, free: 6.41 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.4725, allocations: 4 kB / 1.375 GB, free: 6.406 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.4725, allocations: 0 / 1.375 GB, free: 6.406 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.4725, allocations: 0 / 1.375 GB, free: 6.406 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003576/0.4729, allocations: 354.5 kB / 1.375 GB, free: 6.004 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.4729, allocations: 11.94 kB / 1.375 GB, free: 5.992 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.608e-06/0.4729, allocations: 480 / 1.375 GB, free: 5.992 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.4729, allocations: 0 / 1.375 GB, free: 5.992 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.4729, allocations: 4 kB / 1.375 GB, free: 5.988 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4729, allocations: 4 kB / 1.375 GB, free: 5.984 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.4729, allocations: 3.953 kB / 1.375 GB, free: 5.98 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002037/0.4731, allocations: 203.3 kB / 1.375 GB, free: 5.766 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.318e-05/0.4732, allocations: 81.02 kB / 1.375 GB, free: 5.668 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.4732, allocations: 4 kB / 1.375 GB, free: 5.664 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.36e-05/0.4733, allocations: 4 kB / 1.375 GB, free: 5.66 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.414e-05/0.4733, allocations: 7.984 kB / 1.375 GB, free: 5.652 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.4733, allocations: 11.95 kB / 1.375 GB, free: 5.641 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 7.314e-05/0.4734, allocations: 95.2 kB / 1.375 GB, free: 5.547 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4734, allocations: 0 / 1.375 GB, free: 5.547 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002931/0.4737, allocations: 36 kB / 1.375 GB, free: 5.512 MB / 0.8698 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 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition2,$whenCondition1,onCounter.y,booPul.y,reset.y) * Number of discrete states: 1 (onCounter.y) * 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.0005902/0.4743, allocations: 0.7498 MB / 1.376 GB, free: 4.738 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003617/0.4747, allocations: 262.6 kB / 1.376 GB, free: 4.457 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.4747, allocations: 0 / 1.376 GB, free: 4.457 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 7.272e-05/0.4748, allocations: 35.97 kB / 1.376 GB, free: 4.422 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002198/0.475, allocations: 12 kB / 1.376 GB, free: 4.41 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.4761, allocations: 1.334 MB / 1.378 GB, free: 3 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.4764, allocations: 0.6965 MB / 1.378 GB, free: 2.277 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 3.394e-05/0.4764, allocations: 8.656 kB / 1.378 GB, free: 2.266 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.012e-05/0.4765, allocations: 19.44 kB / 1.378 GB, free: 2.25 MB / 0.8698 GB Notification: Performance of SimCode: time 5.51e-07/0.4765, allocations: 0 / 1.378 GB, free: 2.25 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01395/0.4904, allocations: 2.651 MB / 1.381 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/0.4906, allocations: 190.4 kB / 1.381 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.509/2, allocations: 0 / 1.381 GB, free: 15.5 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat does not exist to compare? outputFormat=mat