Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.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.Edge,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.Edge,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge",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.173/2.173, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001106/0.001106, allocations: 182.8 kB / 498.1 MB, free: 5.742 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.448/1.448, allocations: 223.2 MB / 0.7948 GB, free: 18.89 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.0008892/0.0008891, allocations: 103.9 kB / 0.9346 GB, free: 7.18 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003045/0.0003045, allocations: 9.625 kB / 1.084 GB, free: 212.5 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2297/0.23, allocations: 142.4 MB / 1.223 GB, free: 89.5 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1677/0.3977, allocations: 149.6 MB / 1.369 GB, free: 3.668 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002043/0.398, allocations: 71.95 kB / 1.369 GB, free: 3.598 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.006008/0.404, allocations: 2.099 MB / 1.371 GB, free: 1.492 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.983e-06/0.404, allocations: 4 kB / 1.371 GB, free: 1.488 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.147e-06/0.404, allocations: 4 kB / 1.371 GB, free: 1.484 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.0004835/0.4045, allocations: 416.6 kB / 1.372 GB, free: 1.023 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/0.4046, allocations: 12.03 kB / 1.372 GB, free: 1.012 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.001e-05/0.4046, allocations: 34.56 kB / 1.372 GB, free: 0.9688 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.119e-05/0.4047, allocations: 4 kB / 1.372 GB, free: 0.9648 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.4048, allocations: 170.9 kB / 1.372 GB, free: 0.7578 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.4048, allocations: 11.98 kB / 1.372 GB, free: 0.7461 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.749e-05/0.4049, allocations: 12 kB / 1.372 GB, free: 0.7344 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.4051, allocations: 57.67 kB / 1.372 GB, free: 0.6719 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.4051, allocations: 0 / 1.372 GB, free: 0.6719 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.4051, allocations: 7.984 kB / 1.372 GB, free: 0.6641 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.4051, allocations: 4 kB / 1.372 GB, free: 0.6602 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/0.4053, allocations: 51.91 kB / 1.372 GB, free: 0.6094 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005232/0.4058, allocations: 332.7 kB / 1.372 GB, free: 240 kB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001872/0.406, allocations: 66.61 kB / 1.372 GB, free: 164 kB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.531e-05/0.4061, allocations: 0 / 1.372 GB, free: 164 kB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002706/0.4063, allocations: 99.48 kB / 1.372 GB, free: 52 kB / 0.8698 GB Notification: Performance of pre-optimization done (n=8): time 1.373e-06/0.4063, allocations: 0 / 1.372 GB, free: 52 kB / 0.8698 GB Notification: Performance of matching and sorting (n=8): time 0.0005013/0.4068, allocations: 157.6 kB / 1.373 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.806e-05/0.4069, allocations: 59.36 kB / 1.373 GB, free: 15.82 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.407, allocations: 120.8 kB / 1.373 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.19e-05/0.4071, allocations: 25.7 kB / 1.373 GB, free: 15.66 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.213e-05/0.4071, allocations: 95.98 kB / 1.373 GB, free: 15.56 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.168e-05/0.4072, allocations: 19.72 kB / 1.373 GB, free: 15.55 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.595e-05/0.4072, allocations: 8 kB / 1.373 GB, free: 15.54 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.4074, allocations: 314.8 kB / 1.373 GB, free: 15.22 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.4075, allocations: 67.95 kB / 1.373 GB, free: 15.16 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.4077, allocations: 88.25 kB / 1.373 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/0.4079, allocations: 81.69 kB / 1.373 GB, free: 14.97 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.4079, allocations: 4 kB / 1.373 GB, free: 14.96 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004273/0.4083, allocations: 215.2 kB / 1.374 GB, free: 14.74 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.542e-05/0.4084, allocations: 41.69 kB / 1.374 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.499e-06/0.4084, allocations: 0 / 1.374 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.261e-05/0.4084, allocations: 4 kB / 1.374 GB, free: 14.69 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.357e-05/0.4085, allocations: 15.98 kB / 1.374 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.4085, allocations: 0 / 1.374 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002105/0.4087, allocations: 55.89 kB / 1.374 GB, free: 14.62 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.568e-05/0.4088, allocations: 11.98 kB / 1.374 GB, free: 14.61 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul.y,booPul.y,$PRE.edge1.u,edge1.u,edge1.y) * 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 9.743e-05/0.4089, allocations: 119.9 kB / 1.374 GB, free: 14.48 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.535e-05/0.4089, allocations: 11.91 kB / 1.374 GB, free: 14.47 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.864e-05/0.4089, allocations: 12.38 kB / 1.374 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.4089, allocations: 0 / 1.374 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.409, allocations: 4.062 kB / 1.374 GB, free: 14.46 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.409, allocations: 7.969 kB / 1.374 GB, free: 14.45 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004794/0.4095, allocations: 386.4 kB / 1.374 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4095, allocations: 0 / 1.374 GB, free: 14.02 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.012e-05/0.4095, allocations: 11.98 kB / 1.374 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.4095, allocations: 0 / 1.374 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.4096, allocations: 4 kB / 1.374 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.4096, allocations: 0 / 1.374 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.4096, allocations: 3.953 kB / 1.374 GB, free: 14 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002993/0.4099, allocations: 223.3 kB / 1.375 GB, free: 13.76 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.281e-05/0.4099, allocations: 92.88 kB / 1.375 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.86e-05/0.41, allocations: 4 kB / 1.375 GB, free: 13.65 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.027e-05/0.41, allocations: 12 kB / 1.375 GB, free: 13.64 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.271e-05/0.4101, allocations: 11.94 kB / 1.375 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.764e-06/0.4101, allocations: 4 kB / 1.375 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.017e-05/0.4102, allocations: 91.27 kB / 1.375 GB, free: 13.53 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4102, allocations: 0 / 1.375 GB, free: 13.53 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002474/0.4104, allocations: 24 kB / 1.375 GB, free: 13.51 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: 7 (edge1.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,edge1.u,triggeredSampler.y) * Number of discrete states: 1 (edge1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0006032/0.411, allocations: 0.763 MB / 1.375 GB, free: 12.72 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003694/0.4114, allocations: 187.8 kB / 1.376 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.4114, allocations: 0 / 1.376 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001241/0.4116, allocations: 47.91 kB / 1.376 GB, free: 12.48 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001787/0.4117, allocations: 12.25 kB / 1.376 GB, free: 12.46 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007715/0.4125, allocations: 1.018 MB / 1.377 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002397/0.4128, allocations: 0.6926 MB / 1.377 GB, free: 10.66 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.622e-05/0.4128, allocations: 11.78 kB / 1.377 GB, free: 10.64 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.137e-05/0.4129, allocations: 23.42 kB / 1.377 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of SimCode: time 2.8e-07/0.4129, allocations: 0 / 1.377 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01246/0.4253, allocations: 2.16 MB / 1.38 GB, free: 8.59 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001797/0.4256, allocations: 180.4 kB / 1.38 GB, free: 8.348 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.531/1.957, allocations: 4 kB / 1.38 GB, free: 8.344 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_Edge.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.Edge_res.mat does not exist to compare? outputFormat=mat