Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.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.ZeroCrossing,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",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.344/2.344, allocations: 390.3 MB / 405.3 MB, free: 13.49 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.001655/0.001655, allocations: 186.9 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.524/1.524, allocations: 223.2 MB / 0.7948 GB, free: 18.92 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.001052/0.001052, allocations: 102.4 kB / 0.9346 GB, free: 7.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.00041/0.00041, allocations: 11.92 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2871/0.2875, allocations: 142.4 MB / 1.223 GB, free: 89.52 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1889/0.4765, allocations: 149.9 MB / 1.369 GB, free: 3.449 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002009/0.4767, allocations: 75.89 kB / 1.369 GB, free: 3.375 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007409/0.4842, allocations: 2.497 MB / 1.372 GB, free: 0.875 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.052e-06/0.4842, allocations: 0 / 1.372 GB, free: 0.875 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 7.785e-06/0.4842, allocations: 4 kB / 1.372 GB, free: 0.8711 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006315/0.4848, allocations: 449.4 kB / 1.372 GB, free: 388 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.4849, allocations: 8.031 kB / 1.372 GB, free: 380 kB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.131e-05/0.4849, allocations: 34.56 kB / 1.372 GB, free: 336 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.761e-05/0.485, allocations: 15.89 kB / 1.372 GB, free: 320 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.4852, allocations: 186.8 kB / 1.372 GB, free: 92 kB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.4852, allocations: 8 kB / 1.373 GB, free: 84 kB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.4852, allocations: 12 kB / 1.373 GB, free: 72 kB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003142/0.4856, allocations: 105.2 kB / 1.373 GB, free: 15.96 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.4856, allocations: 0 / 1.373 GB, free: 15.96 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.48e-05/0.4856, allocations: 11.94 kB / 1.373 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.4856, allocations: 0 / 1.373 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003501/0.486, allocations: 103.9 kB / 1.373 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006002/0.4866, allocations: 384.5 kB / 1.373 GB, free: 15.43 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.4869, allocations: 106.6 kB / 1.373 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.554e-05/0.4869, allocations: 0 / 1.373 GB, free: 15.31 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003345/0.4872, allocations: 135.2 kB / 1.373 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=12): time 1.313e-06/0.4873, allocations: 0 / 1.373 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of matching and sorting (n=12): time 0.0006788/0.4879, allocations: 245.9 kB / 1.374 GB, free: 14.92 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.671e-05/0.488, allocations: 55.41 kB / 1.374 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.398e-05/0.4881, allocations: 117 kB / 1.374 GB, free: 14.73 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.405e-05/0.4881, allocations: 33.7 kB / 1.374 GB, free: 14.7 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.558e-05/0.4882, allocations: 104 kB / 1.374 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.016e-05/0.4882, allocations: 23.66 kB / 1.374 GB, free: 14.57 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.546e-05/0.4883, allocations: 4 kB / 1.374 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.4884, allocations: 322.8 kB / 1.374 GB, free: 14.24 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002504/0.4886, allocations: 87.94 kB / 1.374 GB, free: 14.15 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002568/0.4889, allocations: 134 kB / 1.374 GB, free: 14.01 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002642/0.4892, allocations: 117.7 kB / 1.375 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.4892, allocations: 0 / 1.375 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006318/0.4898, allocations: 287 kB / 1.375 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.54e-05/0.4899, allocations: 42.62 kB / 1.375 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.4899, allocations: 0 / 1.375 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.4899, allocations: 3.953 kB / 1.375 GB, free: 13.54 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.4901, allocations: 35.98 kB / 1.375 GB, free: 13.51 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.4901, allocations: 4 kB / 1.375 GB, free: 13.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.4904, allocations: 59.94 kB / 1.375 GB, free: 13.45 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.695e-05/0.4904, allocations: 8 kB / 1.375 GB, free: 13.44 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: 14 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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.0001134/0.4905, allocations: 125.8 kB / 1.375 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.189e-05/0.4905, allocations: 7.906 kB / 1.375 GB, free: 13.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004793/0.491, allocations: 202 kB / 1.375 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.491, allocations: 3.953 kB / 1.375 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.752e-06/0.4911, allocations: 3.984 kB / 1.375 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.4911, allocations: 0 / 1.375 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006566/0.4917, allocations: 470.3 kB / 1.376 GB, free: 12.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.4917, allocations: 3.984 kB / 1.376 GB, free: 12.56 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.4919, allocations: 19.98 kB / 1.376 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.4919, allocations: 3.953 kB / 1.376 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.4919, allocations: 8 kB / 1.376 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.4919, allocations: 0 / 1.376 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4919, allocations: 0 / 1.376 GB, free: 12.53 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004462/0.4924, allocations: 287.2 kB / 1.376 GB, free: 12.23 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 3.888e-05/0.4924, allocations: 88.94 kB / 1.376 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.984e-05/0.4925, allocations: 11.95 kB / 1.376 GB, free: 12.12 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001327/0.4926, allocations: 15.98 kB / 1.376 GB, free: 12.1 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.415e-05/0.4927, allocations: 15.97 kB / 1.376 GB, free: 12.09 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.144e-05/0.4927, allocations: 4 kB / 1.376 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.27e-05/0.4927, allocations: 103.1 kB / 1.376 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4927, allocations: 0 / 1.376 GB, free: 11.98 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002684/0.493, allocations: 39.98 kB / 1.376 GB, free: 11.95 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: 9 (triggeredSampler.trigger,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.0008135/0.4938, allocations: 0.8214 MB / 1.377 GB, free: 11.1 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0005637/0.4944, allocations: 259.2 kB / 1.377 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4944, allocations: 256 / 1.377 GB, free: 10.83 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0002053/0.4946, allocations: 75.95 kB / 1.377 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002019/0.4949, allocations: 28.69 kB / 1.377 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008748/0.4957, allocations: 1.05 MB / 1.378 GB, free: 9.609 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002472/0.496, allocations: 0.6965 MB / 1.379 GB, free: 8.887 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 5.963e-05/0.4961, allocations: 16.55 kB / 1.379 GB, free: 8.867 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.952e-05/0.4961, allocations: 27.42 kB / 1.379 GB, free: 8.84 MB / 0.8855 GB Notification: Performance of SimCode: time 3.988e-06/0.4961, allocations: 0 / 1.379 GB, free: 8.84 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01297/0.5091, allocations: 2.695 MB / 1.382 GB, free: 6.289 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001816/0.5093, allocations: 193.6 kB / 1.382 GB, free: 6.043 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.598/2.107, allocations: 0 / 1.382 GB, free: 6.043 MB / 0.8855 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat does not exist to compare? outputFormat=mat