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.293/2.293, allocations: 387.4 MB / 394.9 MB, free: 13.32 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.001055/0.001055, allocations: 184.9 kB / 487.4 MB, free: 5.031 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.573/1.573, allocations: 221.5 MB / 0.7824 GB, free: 1.012 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008951/0.0008951, allocations: 91.95 kB / 0.9219 GB, free: 2.258 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.196e-05/2.198e-05, allocations: 4 kB / 1.067 GB, free: 185.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3138, allocations: 142.4 MB / 1.206 GB, free: 43.87 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.036/1.35, allocations: 148.7 MB / 1.351 GB, free: 18.09 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/1.351, allocations: 68.17 kB / 1.351 GB, free: 18.09 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009912/1.361, allocations: 2.947 MB / 1.354 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.112e-06/1.361, allocations: 0 / 1.354 GB, free: 33.64 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.584e-06/1.361, allocations: 0 / 1.354 GB, free: 33.64 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004688/1.361, allocations: 414.8 kB / 1.355 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/1.361, allocations: 7.688 kB / 1.355 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.082e-05/1.361, allocations: 8.438 kB / 1.355 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/1.361, allocations: 173.7 kB / 1.355 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/1.361, allocations: 8.25 kB / 1.355 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.415e-05/1.361, allocations: 13.42 kB / 1.355 GB, free: 33.01 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.323e-05/1.361, allocations: 15.44 kB / 1.355 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.978e-05/1.362, allocations: 42.31 kB / 1.355 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/1.362, allocations: 3.984 kB / 1.355 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/1.362, allocations: 0.7969 kB / 1.355 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/1.362, allocations: 0 / 1.355 GB, free: 32.97 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005065/1.362, allocations: 330.9 kB / 1.355 GB, free: 32.73 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 7.032e-05/1.362, allocations: 38.95 kB / 1.355 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.342e-05/1.362, allocations: 16.97 kB / 1.355 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/1.362, allocations: 3.938 kB / 1.355 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001508/1.362, allocations: 83.73 kB / 1.355 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=9): time 1.413e-06/1.362, allocations: 0 / 1.355 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of matching and sorting (n=9): time 0.0002279/1.363, allocations: 101 kB / 1.355 GB, free: 32.61 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.667e-05/1.363, allocations: 56.11 kB / 1.355 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.065e-05/1.363, allocations: 115.2 kB / 1.356 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.837e-05/1.363, allocations: 33.36 kB / 1.356 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.629e-05/1.363, allocations: 89.52 kB / 1.356 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.632e-05/1.363, allocations: 19.95 kB / 1.356 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.992e-05/1.363, allocations: 4.484 kB / 1.356 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001216/1.363, allocations: 325.1 kB / 1.356 GB, free: 32 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/1.363, allocations: 50.41 kB / 1.356 GB, free: 32 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/1.363, allocations: 101.6 kB / 1.356 GB, free: 31.94 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003142/1.364, allocations: 75.77 kB / 1.356 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/1.364, allocations: 4 kB / 1.356 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004887/1.364, allocations: 219 kB / 1.356 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 4.83e-05/1.364, allocations: 66.95 kB / 1.357 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/1.364, allocations: 3.844 kB / 1.357 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/1.364, allocations: 0.6094 kB / 1.357 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.249e-05/1.364, allocations: 4.906 kB / 1.357 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/1.364, allocations: 4.453 kB / 1.357 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003182/1.365, allocations: 74.81 kB / 1.357 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.414e-05/1.365, allocations: 21.84 kB / 1.357 GB, free: 31.81 MB / 0.8386 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 () * 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.000125/1.365, allocations: 117.8 kB / 1.357 GB, free: 31.7 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001135/1.365, allocations: 92.45 kB / 1.357 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.158e-05/1.365, allocations: 8.625 kB / 1.357 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.188e-05/1.365, allocations: 12.53 kB / 1.357 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/1.365, allocations: 0 / 1.357 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/1.365, allocations: 0.6094 kB / 1.357 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/1.365, allocations: 0.5625 kB / 1.357 GB, free: 31.65 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000263/1.365, allocations: 330.8 kB / 1.357 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/1.365, allocations: 0 / 1.357 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.324e-05/1.365, allocations: 4.594 kB / 1.357 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/1.365, allocations: 0 / 1.357 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/1.365, allocations: 1.266 kB / 1.357 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/1.365, allocations: 0 / 1.357 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.365, allocations: 0 / 1.357 GB, free: 31.38 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000183/1.366, allocations: 207.5 kB / 1.357 GB, free: 31.23 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.36e-05/1.366, allocations: 85.61 kB / 1.357 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.982e-05/1.366, allocations: 0.7969 kB / 1.357 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.013e-05/1.366, allocations: 0.8438 kB / 1.357 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.21e-05/1.366, allocations: 6.281 kB / 1.357 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/1.366, allocations: 8.969 kB / 1.357 GB, free: 31.13 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.931e-05/1.366, allocations: 88.41 kB / 1.358 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.366, allocations: 0 / 1.358 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002818/1.366, allocations: 44.42 kB / 1.358 GB, free: 31.04 MB / 0.8386 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) * 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.0004681/1.367, allocations: 0.7291 MB / 1.358 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003/1.367, allocations: 245 kB / 1.359 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.367, allocations: 0 / 1.359 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 4.428e-05/1.367, allocations: 26.5 kB / 1.359 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/1.367, allocations: 19 kB / 1.359 GB, free: 30.24 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004462/1.368, allocations: 144.5 kB / 1.359 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/1.368, allocations: 0.6888 MB / 1.359 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.402e-05/1.368, allocations: 6.391 kB / 1.359 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.397e-05/1.368, allocations: 31.05 kB / 1.359 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of SimCode: time 4.81e-07/1.368, allocations: 4 kB / 1.359 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02104/1.389, allocations: 2.271 MB / 1.362 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/1.389, allocations: 142.2 kB / 1.362 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.647/3.036, allocations: 0.75 kB / 1.362 GB, free: 29.06 MB / 0.8386 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