Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.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.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax",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.472/2.472, allocations: 393.5 MB / 408.4 MB, free: 10.97 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.001264/0.001263, allocations: 199.2 kB / 0.4902 GB, free: 2.191 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.616/1.616, allocations: 223.1 MB / 0.7992 GB, free: 14.69 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.0009112/0.0009108, allocations: 88.34 kB / 0.9396 GB, free: 1.879 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003722, allocations: 10.62 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3673, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1989/0.5663, allocations: 150.5 MB / 1.376 GB, free: 2.859 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002687/0.5666, allocations: 71.95 kB / 1.376 GB, free: 2.789 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007772/0.5744, allocations: 2.602 MB / 1.379 GB, free: 188 kB / 0.8698 GB Notification: Performance of FrontEnd: time 2.615e-06/0.5744, allocations: 0 / 1.379 GB, free: 188 kB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.043e-06/0.5745, allocations: 0 / 1.379 GB, free: 188 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005121/0.575, allocations: 416.9 kB / 1.379 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.575, allocations: 8.562 kB / 1.379 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.01e-05/0.5751, allocations: 34.56 kB / 1.379 GB, free: 15.67 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.123e-05/0.5751, allocations: 11.84 kB / 1.379 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.5752, allocations: 175 kB / 1.38 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.5753, allocations: 4 kB / 1.38 GB, free: 15.45 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.323e-05/0.5753, allocations: 8 kB / 1.38 GB, free: 15.44 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002009/0.5755, allocations: 69.66 kB / 1.38 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.973e-06/0.5755, allocations: 0 / 1.38 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.5755, allocations: 4 kB / 1.38 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.5755, allocations: 3.938 kB / 1.38 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.5757, allocations: 55.95 kB / 1.38 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004688/0.5762, allocations: 328.6 kB / 1.38 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.5764, allocations: 58.55 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.5764, allocations: 4 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002426/0.5767, allocations: 91.52 kB / 1.38 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.5767, allocations: 0 / 1.38 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of matching and sorting (n=7): time 0.0004611/0.5771, allocations: 157.4 kB / 1.38 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.5772, allocations: 55.39 kB / 1.38 GB, free: 14.53 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.471e-05/0.5773, allocations: 104.9 kB / 1.38 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.5773, allocations: 37.69 kB / 1.38 GB, free: 14.38 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.232e-05/0.5774, allocations: 88.33 kB / 1.381 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.5774, allocations: 15.8 kB / 1.381 GB, free: 14.27 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.396e-05/0.5774, allocations: 8 kB / 1.381 GB, free: 14.26 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.944e-05/0.5775, allocations: 315 kB / 1.381 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000149/0.5777, allocations: 51.97 kB / 1.381 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.5778, allocations: 91.27 kB / 1.381 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001647/0.578, allocations: 81.67 kB / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.578, allocations: 0 / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000425/0.5785, allocations: 207.6 kB / 1.381 GB, free: 13.49 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.795e-05/0.5785, allocations: 33.7 kB / 1.381 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.5785, allocations: 0 / 1.381 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.5785, allocations: 7.984 kB / 1.381 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.5787, allocations: 24 kB / 1.381 GB, free: 13.42 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.576e-06/0.5787, allocations: 7.891 kB / 1.381 GB, free: 13.41 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002108/0.5789, allocations: 43.95 kB / 1.381 GB, free: 13.37 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.5789, allocations: 4.312 kB / 1.381 GB, free: 13.37 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.0001032/0.579, allocations: 133.6 kB / 1.382 GB, free: 13.23 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.501e-05/0.579, allocations: 7.906 kB / 1.382 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003024/0.5794, allocations: 125.9 kB / 1.382 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.5794, allocations: 4 kB / 1.382 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.5794, allocations: 0 / 1.382 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.5794, allocations: 15.88 kB / 1.382 GB, free: 13.07 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004114/0.5798, allocations: 366.5 kB / 1.382 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.5798, allocations: 7.984 kB / 1.382 GB, free: 12.65 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.271e-05/0.5799, allocations: 8 kB / 1.382 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.5799, allocations: 0 / 1.382 GB, free: 12.64 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.381e-05/0.5799, allocations: 7.984 kB / 1.382 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.5799, allocations: 3.953 kB / 1.382 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.5799, allocations: 0 / 1.382 GB, free: 12.63 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002968/0.5802, allocations: 219.3 kB / 1.382 GB, free: 12.4 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.593e-05/0.5803, allocations: 77.11 kB / 1.382 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.5803, allocations: 4 kB / 1.382 GB, free: 12.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-05/0.5804, allocations: 7.984 kB / 1.382 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.444e-05/0.5805, allocations: 7.953 kB / 1.382 GB, free: 12.29 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.5805, allocations: 11.98 kB / 1.382 GB, free: 12.27 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.136e-05/0.5805, allocations: 83.28 kB / 1.382 GB, free: 12.19 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5805, allocations: 0 / 1.382 GB, free: 12.19 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002648/0.5808, allocations: 35.98 kB / 1.382 GB, free: 12.16 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0006099/0.5814, allocations: 0.7561 MB / 1.383 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003575/0.5818, allocations: 183.3 kB / 1.383 GB, free: 11.18 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.5818, allocations: 288 / 1.383 GB, free: 11.18 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001151/0.5819, allocations: 39.97 kB / 1.383 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001956/0.5821, allocations: 15.89 kB / 1.383 GB, free: 11.13 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007081/0.5828, allocations: 0.8386 MB / 1.384 GB, free: 10.22 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/0.5831, allocations: 0.6887 MB / 1.385 GB, free: 9.508 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.73e-05/0.5831, allocations: 8.172 kB / 1.385 GB, free: 9.5 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.186e-05/0.5832, allocations: 19.44 kB / 1.385 GB, free: 9.484 MB / 0.8855 GB Notification: Performance of SimCode: time 2.91e-07/0.5832, allocations: 0 / 1.385 GB, free: 9.484 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01313/0.5963, allocations: 2.078 MB / 1.387 GB, free: 7.562 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/0.5965, allocations: 195.1 kB / 1.387 GB, free: 7.316 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.573/2.17, allocations: 0 / 1.387 GB, free: 7.316 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredMax.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax_res.mat does not exist to compare? outputFormat=mat