Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.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.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid",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.365/2.365, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.001233/0.001233, allocations: 187.6 kB / 0.4902 GB, free: 2.227 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.571/1.571, allocations: 223.1 MB / 0.7992 GB, free: 14.67 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.0009134/0.0009133, allocations: 102.7 kB / 0.9396 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003692/0.0003692, allocations: 11.69 kB / 1.09 GB, free: 216 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2764/0.2768, allocations: 143 MB / 1.229 GB, free: 105.6 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1928/0.4696, allocations: 150.3 MB / 1.376 GB, free: 3.094 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.4699, allocations: 63.97 kB / 1.376 GB, free: 3.031 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007618/0.4775, allocations: 2.473 MB / 1.379 GB, free: 0.5547 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.465e-06/0.4775, allocations: 0 / 1.379 GB, free: 0.5547 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.294e-06/0.4776, allocations: 0 / 1.379 GB, free: 0.5547 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005942/0.4782, allocations: 400.9 kB / 1.379 GB, free: 112 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.4782, allocations: 8.562 kB / 1.379 GB, free: 104 kB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.333e-05/0.4783, allocations: 34.55 kB / 1.379 GB, free: 60 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.016e-05/0.4783, allocations: 15.91 kB / 1.379 GB, free: 44 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.4785, allocations: 167 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.4785, allocations: 4 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.962e-05/0.4786, allocations: 12 kB / 1.379 GB, free: 15.82 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.4788, allocations: 77.58 kB / 1.379 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.4788, allocations: 0 / 1.379 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.4788, allocations: 0 / 1.379 GB, free: 15.74 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.4789, allocations: 7.875 kB / 1.379 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001666/0.479, allocations: 47.95 kB / 1.379 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005251/0.4796, allocations: 320.8 kB / 1.38 GB, free: 15.32 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002161/0.4798, allocations: 74.48 kB / 1.38 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.4798, allocations: 0 / 1.38 GB, free: 15.24 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003/0.4801, allocations: 115.4 kB / 1.38 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=9): time 1.503e-06/0.4801, allocations: 0 / 1.38 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9): time 0.0005414/0.4807, allocations: 181.5 kB / 1.38 GB, free: 14.93 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/0.4807, allocations: 59.36 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.349e-05/0.4808, allocations: 108.8 kB / 1.38 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.998e-05/0.4809, allocations: 33.7 kB / 1.38 GB, free: 14.71 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.544e-05/0.481, allocations: 88.33 kB / 1.38 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.46e-05/0.481, allocations: 15.81 kB / 1.38 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.473e-05/0.481, allocations: 4 kB / 1.38 GB, free: 14.6 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001281/0.4812, allocations: 318.8 kB / 1.381 GB, free: 14.28 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.4813, allocations: 48.03 kB / 1.381 GB, free: 14.23 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.4815, allocations: 81.73 kB / 1.381 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001641/0.4817, allocations: 85.67 kB / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.4817, allocations: 0.75 kB / 1.381 GB, free: 14.05 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004364/0.4821, allocations: 191.1 kB / 1.381 GB, free: 13.86 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.265e-05/0.4822, allocations: 43.72 kB / 1.381 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.4822, allocations: 0 / 1.381 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.4822, allocations: 8.062 kB / 1.381 GB, free: 13.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001146/0.4823, allocations: 15.92 kB / 1.381 GB, free: 13.79 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.4824, allocations: 4 kB / 1.381 GB, free: 13.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.4826, allocations: 47.95 kB / 1.381 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.4826, allocations: 11.94 kB / 1.381 GB, free: 13.72 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition2,$whenCondition4,$whenCondition3,$PRE.booPul.y,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.0001117/0.4827, allocations: 124.1 kB / 1.381 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.842e-05/0.4827, allocations: 7.906 kB / 1.381 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.868e-05/0.4828, allocations: 8.375 kB / 1.381 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.4828, allocations: 0 / 1.381 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.4828, allocations: 0 / 1.381 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.4828, allocations: 0 / 1.381 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005384/0.4834, allocations: 414.4 kB / 1.382 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.4834, allocations: 0 / 1.382 GB, free: 13.11 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.916e-05/0.4834, allocations: 11.94 kB / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.4834, allocations: 0 / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.4834, allocations: 4 kB / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.4834, allocations: 0 / 1.382 GB, free: 13.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.4835, allocations: 7.938 kB / 1.382 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003822/0.4838, allocations: 247.3 kB / 1.382 GB, free: 12.83 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.022e-05/0.4839, allocations: 85.02 kB / 1.382 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.555e-05/0.4839, allocations: 4 kB / 1.382 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.484, allocations: 7.969 kB / 1.382 GB, free: 12.72 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.696e-05/0.4841, allocations: 4 kB / 1.382 GB, free: 12.71 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.802e-05/0.4841, allocations: 11.94 kB / 1.382 GB, free: 12.7 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 4.711e-05/0.4842, allocations: 87.47 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4842, allocations: 4.281 kB / 1.382 GB, free: 12.61 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002733/0.4845, allocations: 35.98 kB / 1.382 GB, free: 12.58 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: 8 ($whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 1 (triggeredTrapezoid1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.00073/0.4852, allocations: 0.7881 MB / 1.383 GB, free: 11.77 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000368/0.4856, allocations: 183.3 kB / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.4856, allocations: 0 / 1.383 GB, free: 11.57 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.4857, allocations: 55.91 kB / 1.383 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001965/0.4859, allocations: 15.98 kB / 1.383 GB, free: 11.5 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007993/0.4867, allocations: 0.6954 MB / 1.384 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.4871, allocations: 0.6965 MB / 1.384 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.692e-05/0.4871, allocations: 4.656 kB / 1.384 GB, free: 10.02 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.4872, allocations: 19.44 kB / 1.384 GB, free: 9.996 MB / 0.8855 GB Notification: Performance of SimCode: time 1.973e-06/0.4872, allocations: 0 / 1.384 GB, free: 9.996 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01395/0.5011, allocations: 2.384 MB / 1.387 GB, free: 7.797 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001974/0.5014, allocations: 196.6 kB / 1.387 GB, free: 7.559 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.536/2.037, allocations: 2.938 kB / 1.387 GB, free: 7.559 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat does not exist to compare? outputFormat=mat