Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.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.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.266/2.266, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001607/0.001607, allocations: 183.9 kB / 0.4901 GB, free: 2.246 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.652/1.652, allocations: 223.1 MB / 0.7992 GB, free: 14.73 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.0009205/0.0009203, allocations: 110.2 kB / 0.9396 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004049/0.000405, allocations: 10.69 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2907, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1963/0.4871, allocations: 150.2 MB / 1.376 GB, free: 3.207 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/0.4874, allocations: 67.97 kB / 1.376 GB, free: 3.141 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.009274/0.4967, allocations: 2.957 MB / 1.379 GB, free: 184 kB / 0.8698 GB Notification: Performance of FrontEnd: time 1.422e-06/0.4967, allocations: 0 / 1.379 GB, free: 184 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.4967, allocations: 0 / 1.379 GB, free: 184 kB / 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.0005336/0.4973, allocations: 419.7 kB / 1.379 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.4973, allocations: 12.55 kB / 1.379 GB, free: 15.7 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.402e-05/0.4974, allocations: 38.56 kB / 1.379 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.077e-05/0.4974, allocations: 15.89 kB / 1.379 GB, free: 15.64 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.4976, allocations: 167 kB / 1.38 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.766e-05/0.4976, allocations: 4 kB / 1.38 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.809e-05/0.4976, allocations: 19.92 kB / 1.38 GB, free: 15.41 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001112/0.4978, allocations: 49.62 kB / 1.38 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.4978, allocations: 0 / 1.38 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.4978, allocations: 7.984 kB / 1.38 GB, free: 15.35 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.4978, allocations: 4 kB / 1.38 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.758e-05/0.4978, allocations: 8 kB / 1.38 GB, free: 15.34 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004903/0.4983, allocations: 360.7 kB / 1.38 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 8.669e-05/0.4984, allocations: 34.52 kB / 1.38 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 7.895e-06/0.4985, allocations: 4.078 kB / 1.38 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001983/0.4987, allocations: 103.3 kB / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.4987, allocations: 0 / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9): time 0.0002823/0.499, allocations: 117.5 kB / 1.38 GB, free: 14.65 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.499, allocations: 63.34 kB / 1.38 GB, free: 14.58 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.463e-05/0.4991, allocations: 112.9 kB / 1.38 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.4991, allocations: 33.7 kB / 1.38 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.945e-05/0.4992, allocations: 92.28 kB / 1.381 GB, free: 14.32 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.77e-05/0.4992, allocations: 15.8 kB / 1.381 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.983e-05/0.4993, allocations: 12 kB / 1.381 GB, free: 14.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.4994, allocations: 314.9 kB / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.4995, allocations: 67.95 kB / 1.381 GB, free: 13.91 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.4997, allocations: 106 kB / 1.381 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.4998, allocations: 127.4 kB / 1.381 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.4998, allocations: 0 / 1.381 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004288/0.5003, allocations: 280.7 kB / 1.381 GB, free: 13.36 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.211e-05/0.5003, allocations: 67.39 kB / 1.381 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.5004, allocations: 4 kB / 1.381 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.317e-05/0.5004, allocations: 0 / 1.381 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.662e-05/0.5004, allocations: 8.156 kB / 1.382 GB, free: 13.27 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.5004, allocations: 7.938 kB / 1.382 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.5008, allocations: 75.89 kB / 1.382 GB, free: 13.19 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.795e-05/0.5008, allocations: 15.98 kB / 1.382 GB, free: 13.17 MB / 0.8855 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.0001168/0.501, allocations: 130.8 kB / 1.382 GB, free: 13.04 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.582e-05/0.501, allocations: 7.906 kB / 1.382 GB, free: 13.03 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.649e-05/0.501, allocations: 12.36 kB / 1.382 GB, free: 13.01 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.552e-05/0.5011, allocations: 0 / 1.382 GB, free: 13.01 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.5011, allocations: 0 / 1.382 GB, free: 13.01 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.5011, allocations: 4 kB / 1.382 GB, free: 13.01 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003486/0.5015, allocations: 358.8 kB / 1.382 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.5015, allocations: 0 / 1.382 GB, free: 12.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.357e-05/0.5015, allocations: 7.984 kB / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.5015, allocations: 0 / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.5015, allocations: 0 / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.5015, allocations: 0 / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.5015, allocations: 3.953 kB / 1.382 GB, free: 12.59 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001919/0.5017, allocations: 203.4 kB / 1.382 GB, free: 12.38 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.076e-05/0.5018, allocations: 81.02 kB / 1.382 GB, free: 12.28 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.236e-05/0.5018, allocations: 7.984 kB / 1.382 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.519e-05/0.5019, allocations: 4 kB / 1.382 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.688e-05/0.5019, allocations: 7.922 kB / 1.382 GB, free: 12.26 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.5019, allocations: 7.953 kB / 1.382 GB, free: 12.25 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.57e-05/0.502, allocations: 95.75 kB / 1.382 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.502, allocations: 0 / 1.382 GB, free: 12.16 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003005/0.5023, allocations: 44 kB / 1.383 GB, free: 12.11 MB / 0.8855 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.0005685/0.5029, allocations: 0.7437 MB / 1.383 GB, free: 11.35 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000391/0.5033, allocations: 250.9 kB / 1.383 GB, free: 11.08 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.5033, allocations: 320 / 1.383 GB, free: 11.08 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 6.871e-05/0.5034, allocations: 40.2 kB / 1.384 GB, free: 11.04 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002358/0.5036, allocations: 21.83 kB / 1.384 GB, free: 11.02 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001054/0.5047, allocations: 1.329 MB / 1.385 GB, free: 9.609 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.505, allocations: 0.6927 MB / 1.386 GB, free: 8.891 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.999e-05/0.505, allocations: 8.656 kB / 1.386 GB, free: 8.883 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.091e-05/0.5051, allocations: 23.42 kB / 1.386 GB, free: 8.859 MB / 0.8855 GB Notification: Performance of SimCode: time 1.252e-06/0.5051, allocations: 0 / 1.386 GB, free: 8.859 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01322/0.5183, allocations: 2.648 MB / 1.388 GB, free: 6.371 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000159/0.5185, allocations: 194.3 kB / 1.388 GB, free: 6.129 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.61/2.129, allocations: 0 / 1.388 GB, free: 6.129 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Integers_Validation_OnCounter.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Validation.OnCounter_res.mat does not exist to compare? outputFormat=mat