Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.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.Logical.Validation.OnOffController,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController",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.547/2.547, allocations: 390.3 MB / 405.3 MB, free: 13.44 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.001666/0.001666, allocations: 184.2 kB / 498.1 MB, free: 5.676 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.694/1.694, allocations: 223.1 MB / 0.7948 GB, free: 18.85 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.0009411/0.0009412, allocations: 100.3 kB / 0.9346 GB, free: 7.148 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004089/0.000409, allocations: 11.22 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3137, allocations: 142.4 MB / 1.223 GB, free: 89.47 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1894/0.5031, allocations: 149 MB / 1.368 GB, free: 4.238 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/0.5034, allocations: 71.95 kB / 1.369 GB, free: 4.168 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002827/0.5062, allocations: 0.9602 MB / 1.37 GB, free: 3.203 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.575e-06/0.5062, allocations: 0 / 1.37 GB, free: 3.203 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.344e-06/0.5063, allocations: 0 / 1.37 GB, free: 3.203 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005514/0.5068, allocations: 379.2 kB / 1.37 GB, free: 2.785 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.5069, allocations: 12.03 kB / 1.37 GB, free: 2.773 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.861e-05/0.5069, allocations: 30.56 kB / 1.37 GB, free: 2.734 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.107e-05/0.507, allocations: 7.906 kB / 1.37 GB, free: 2.727 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001527/0.5071, allocations: 171 kB / 1.37 GB, free: 2.52 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.41e-05/0.5072, allocations: 8 kB / 1.37 GB, free: 2.512 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.5072, allocations: 0 / 1.37 GB, free: 2.512 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.5074, allocations: 69.67 kB / 1.37 GB, free: 2.438 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.5074, allocations: 7.875 kB / 1.37 GB, free: 2.43 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.668e-06/0.5075, allocations: 0 / 1.37 GB, free: 2.43 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.5075, allocations: 3.938 kB / 1.37 GB, free: 2.426 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001979/0.5077, allocations: 55.95 kB / 1.37 GB, free: 2.371 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005906/0.5083, allocations: 308.7 kB / 1.371 GB, free: 2.02 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.5086, allocations: 62.48 kB / 1.371 GB, free: 1.949 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.874e-05/0.5086, allocations: 0 / 1.371 GB, free: 1.949 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.395e-05/0.5086, allocations: 34.62 kB / 1.371 GB, free: 1.906 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.493e-06/0.5086, allocations: 0 / 1.371 GB, free: 1.906 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0003922/0.509, allocations: 113.7 kB / 1.371 GB, free: 1.789 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.49e-05/0.5091, allocations: 51.41 kB / 1.371 GB, free: 1.727 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.433e-05/0.5092, allocations: 108.9 kB / 1.371 GB, free: 1.613 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.5092, allocations: 25.7 kB / 1.371 GB, free: 1.582 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.739e-05/0.5092, allocations: 96.05 kB / 1.371 GB, free: 1.484 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 1.916e-05/0.5093, allocations: 7.906 kB / 1.371 GB, free: 1.477 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.388e-06/0.5093, allocations: 0 / 1.371 GB, free: 1.477 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001193/0.5094, allocations: 318.8 kB / 1.371 GB, free: 1.156 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.51e-05/0.5095, allocations: 23.98 kB / 1.371 GB, free: 1.133 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.379e-05/0.5096, allocations: 27.98 kB / 1.371 GB, free: 1.105 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.03e-05/0.5097, allocations: 27.97 kB / 1.371 GB, free: 1.078 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.5097, allocations: 0 / 1.371 GB, free: 1.078 MB / 0.8698 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002185/0.5099, allocations: 85.66 kB / 1.371 GB, free: 0.9883 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.51, allocations: 8 kB / 1.371 GB, free: 0.9805 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.51, allocations: 0 / 1.371 GB, free: 0.9805 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.453e-05/0.51, allocations: 0 / 1.371 GB, free: 0.9805 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.715e-05/0.5101, allocations: 15.92 kB / 1.371 GB, free: 0.9648 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.5101, allocations: 3.953 kB / 1.371 GB, free: 0.9609 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000119/0.5102, allocations: 23.98 kB / 1.371 GB, free: 0.9375 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.847e-06/0.5102, allocations: 4.328 kB / 1.372 GB, free: 0.9336 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.onOffController.y,onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.81e-05/0.5103, allocations: 109.8 kB / 1.372 GB, free: 0.8164 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.028e-05/0.5104, allocations: 7.906 kB / 1.372 GB, free: 0.8086 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000267/0.5106, allocations: 101.5 kB / 1.372 GB, free: 0.6992 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.5106, allocations: 0 / 1.372 GB, free: 0.6992 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.5106, allocations: 0 / 1.372 GB, free: 0.6992 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.5107, allocations: 8.312 kB / 1.372 GB, free: 0.6914 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000173/0.5108, allocations: 169.6 kB / 1.372 GB, free: 488 kB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.5108, allocations: 0 / 1.372 GB, free: 488 kB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.252e-05/0.5109, allocations: 11.98 kB / 1.372 GB, free: 476 kB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.5109, allocations: 7.875 kB / 1.372 GB, free: 468 kB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-06/0.511, allocations: 4 kB / 1.372 GB, free: 464 kB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.511, allocations: 4 kB / 1.372 GB, free: 460 kB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.511, allocations: 0 / 1.372 GB, free: 460 kB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002655/0.5112, allocations: 175.5 kB / 1.372 GB, free: 268 kB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.972e-05/0.5113, allocations: 85.02 kB / 1.372 GB, free: 164 kB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.961e-05/0.5113, allocations: 3.984 kB / 1.372 GB, free: 160 kB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.5115, allocations: 19.98 kB / 1.372 GB, free: 140 kB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.611e-05/0.5115, allocations: 11.98 kB / 1.372 GB, free: 128 kB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-06/0.5115, allocations: 0 / 1.372 GB, free: 128 kB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.13e-05/0.5116, allocations: 91.27 kB / 1.372 GB, free: 36 kB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5116, allocations: 4 kB / 1.372 GB, free: 32 kB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002022/0.5118, allocations: 4 kB / 1.372 GB, free: 28 kB / 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: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0006429/0.5125, allocations: 0.7161 MB / 1.373 GB, free: 15.28 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002421/0.5127, allocations: 55.95 kB / 1.373 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5127, allocations: 0 / 1.373 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.5128, allocations: 39.91 kB / 1.373 GB, free: 15.19 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002287/0.5131, allocations: 11.94 kB / 1.373 GB, free: 15.18 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009499/0.514, allocations: 476 kB / 1.374 GB, free: 14.66 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.5143, allocations: 0.6887 MB / 1.374 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.661e-05/0.5144, allocations: 3.938 kB / 1.374 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.201e-05/0.5144, allocations: 19.38 kB / 1.374 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of SimCode: time 5.11e-07/0.5144, allocations: 0 / 1.374 GB, free: 13.93 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0124/0.5269, allocations: 1.415 MB / 1.376 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/0.5271, allocations: 196 kB / 1.376 GB, free: 12.41 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.449/1.976, allocations: 0 / 1.376 GB, free: 12.41 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_OnOffController.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController_res.mat does not exist to compare? outputFormat=mat