Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.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.ZeroCrossing,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.374/2.374, allocations: 390.5 MB / 398 MB, free: 10.96 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.00184/0.00184, allocations: 184.5 kB / 491.2 MB, free: 1.613 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.58/1.58, allocations: 221.5 MB / 0.7868 GB, free: 13.27 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.001028/0.001028, allocations: 87.95 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.448e-05/2.442e-05, allocations: 8 kB / 1.073 GB, free: 181.9 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3452, allocations: 143 MB / 1.212 GB, free: 39.41 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.193/1.539, allocations: 149.9 MB / 1.359 GB, free: 17.77 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/1.539, allocations: 74.42 kB / 1.359 GB, free: 17.76 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007209/1.546, allocations: 2.477 MB / 1.361 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.116e-06/1.546, allocations: 0 / 1.361 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 7.644e-06/1.546, allocations: 11.78 kB / 1.361 GB, free: 33.34 MB / 0.8386 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.0005244/1.547, allocations: 429.5 kB / 1.362 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/1.547, allocations: 7.688 kB / 1.362 GB, free: 32.94 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.475e-05/1.547, allocations: 15.73 kB / 1.362 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/1.547, allocations: 181.2 kB / 1.362 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/1.547, allocations: 9.25 kB / 1.362 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/1.547, allocations: 7.469 kB / 1.362 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001209/1.547, allocations: 34.66 kB / 1.362 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/1.547, allocations: 62.45 kB / 1.362 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/1.547, allocations: 5.953 kB / 1.362 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/1.547, allocations: 0 / 1.362 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/1.547, allocations: 0 / 1.362 GB, free: 32.69 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005319/1.548, allocations: 355.3 kB / 1.362 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/1.548, allocations: 64.53 kB / 1.362 GB, free: 32.42 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.891e-05/1.548, allocations: 34.7 kB / 1.363 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/1.548, allocations: 1.5 kB / 1.363 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/1.548, allocations: 93.77 kB / 1.363 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/1.548, allocations: 0 / 1.363 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0002556/1.548, allocations: 107.6 kB / 1.363 GB, free: 32.32 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.69e-05/1.549, allocations: 55.36 kB / 1.363 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.8e-05/1.549, allocations: 113.3 kB / 1.363 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.751e-05/1.549, allocations: 32.83 kB / 1.363 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.791e-05/1.549, allocations: 96.77 kB / 1.363 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.655e-05/1.549, allocations: 36.28 kB / 1.363 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.697e-05/1.549, allocations: 3.938 kB / 1.363 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001043/1.549, allocations: 322.2 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.367e-05/1.549, allocations: 47.67 kB / 1.363 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.745e-05/1.549, allocations: 84.7 kB / 1.363 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001996/1.549, allocations: 64.17 kB / 1.364 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/1.549, allocations: 0 / 1.364 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003446/1.55, allocations: 173.4 kB / 1.364 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.245e-05/1.55, allocations: 39.38 kB / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/1.55, allocations: 0 / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/1.55, allocations: 3.875 kB / 1.364 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/1.55, allocations: 38.72 kB / 1.364 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/1.55, allocations: 3.953 kB / 1.364 GB, free: 31.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000239/1.55, allocations: 60.05 kB / 1.364 GB, free: 31.56 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/1.55, allocations: 12.67 kB / 1.364 GB, free: 31.56 MB / 0.8386 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 () * 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 9.547e-05/1.55, allocations: 108.8 kB / 1.364 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001328/1.55, allocations: 100.8 kB / 1.364 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.35e-05/1.55, allocations: 9.109 kB / 1.364 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001791/1.551, allocations: 121.6 kB / 1.364 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/1.551, allocations: 3.906 kB / 1.364 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/1.551, allocations: 1.453 kB / 1.364 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/1.551, allocations: 4 kB / 1.364 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003085/1.551, allocations: 362.2 kB / 1.365 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/1.551, allocations: 0.8125 kB / 1.365 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/1.551, allocations: 26.45 kB / 1.365 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/1.551, allocations: 7.891 kB / 1.365 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/1.551, allocations: 1.5 kB / 1.365 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/1.551, allocations: 7.344 kB / 1.365 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/1.551, allocations: 4 kB / 1.365 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001746/1.551, allocations: 195 kB / 1.365 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.732e-05/1.551, allocations: 89.94 kB / 1.365 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/1.551, allocations: 7.391 kB / 1.365 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/1.551, allocations: 16.31 kB / 1.365 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.76e-05/1.552, allocations: 22.8 kB / 1.365 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/1.552, allocations: 5.094 kB / 1.365 GB, free: 30.83 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.73e-05/1.552, allocations: 90.72 kB / 1.365 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.552, allocations: 0 / 1.365 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002564/1.552, allocations: 35.64 kB / 1.365 GB, free: 30.75 MB / 0.8386 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) * 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.000478/1.552, allocations: 0.7499 MB / 1.366 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002527/1.553, allocations: 178.2 kB / 1.366 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.073e-06/1.553, allocations: 0 / 1.366 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.393e-05/1.553, allocations: 43.42 kB / 1.366 GB, free: 30.01 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000226/1.553, allocations: 20.34 kB / 1.366 GB, free: 30 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000438/1.553, allocations: 170.5 kB / 1.366 GB, free: 29.87 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/1.554, allocations: 0.703 MB / 1.367 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.265e-05/1.554, allocations: 7.188 kB / 1.367 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.692e-05/1.554, allocations: 28.94 kB / 1.367 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of SimCode: time 2.4e-07/1.554, allocations: 0 / 1.367 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.024/1.578, allocations: 2.334 MB / 1.369 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001792/1.578, allocations: 151.8 kB / 1.369 GB, free: 28.83 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/3.268, allocations: 2 kB / 1.369 GB, free: 28.83 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat does not exist to compare? outputFormat=mat