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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.31/2.31, allocations: 390.5 MB / 398 MB, free: 11.01 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.001155/0.001155, allocations: 168.9 kB / 491.2 MB, free: 1.637 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.73/1.73, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.001225/0.001224, allocations: 95.89 kB / 0.9269 GB, free: 13.82 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.688e-05/2.689e-05, allocations: 6.5 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3315/0.3316, allocations: 143 MB / 1.212 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.134/1.465, allocations: 149.9 MB / 1.359 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001964/1.465, allocations: 71.27 kB / 1.359 GB, free: 17.54 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.007534/1.473, allocations: 2.478 MB / 1.361 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.753e-06/1.473, allocations: 3.875 kB / 1.361 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.873e-06/1.473, allocations: 3.938 kB / 1.361 GB, free: 33.11 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.0005746/1.474, allocations: 432.9 kB / 1.362 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/1.474, allocations: 7.625 kB / 1.362 GB, free: 32.71 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.289e-05/1.474, allocations: 13.45 kB / 1.362 GB, free: 32.7 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/1.474, allocations: 179.9 kB / 1.362 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/1.474, allocations: 3.844 kB / 1.362 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.843e-05/1.474, allocations: 9.062 kB / 1.362 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001261/1.474, allocations: 38.67 kB / 1.362 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001106/1.474, allocations: 63 kB / 1.362 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/1.474, allocations: 1.547 kB / 1.362 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/1.474, allocations: 7.531 kB / 1.362 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/1.474, allocations: 4 kB / 1.362 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005253/1.475, allocations: 347.8 kB / 1.362 GB, free: 32.22 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/1.475, allocations: 67.52 kB / 1.362 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.786e-05/1.475, allocations: 33.58 kB / 1.362 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/1.475, allocations: 3.938 kB / 1.362 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001497/1.475, allocations: 90.06 kB / 1.362 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.543e-06/1.475, allocations: 3.844 kB / 1.363 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0002169/1.475, allocations: 106.8 kB / 1.363 GB, free: 32.09 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.645e-05/1.475, allocations: 55.36 kB / 1.363 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.387e-05/1.475, allocations: 119.9 kB / 1.363 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/1.475, allocations: 31.12 kB / 1.363 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.801e-05/1.476, allocations: 92.78 kB / 1.363 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.651e-05/1.476, allocations: 40.69 kB / 1.363 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.513e-05/1.476, allocations: 3.875 kB / 1.363 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.388e-05/1.476, allocations: 318.7 kB / 1.363 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.268e-05/1.476, allocations: 45.78 kB / 1.363 GB, free: 31.48 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.466e-05/1.476, allocations: 87.66 kB / 1.363 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/1.476, allocations: 52.08 kB / 1.363 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/1.476, allocations: 3.875 kB / 1.363 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003489/1.476, allocations: 175 kB / 1.364 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.154e-05/1.477, allocations: 44.67 kB / 1.364 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/1.477, allocations: 0 / 1.364 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/1.477, allocations: 7.781 kB / 1.364 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/1.477, allocations: 26.02 kB / 1.364 GB, free: 31.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/1.477, allocations: 7.797 kB / 1.364 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/1.477, allocations: 59.5 kB / 1.364 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.224e-05/1.477, allocations: 9.406 kB / 1.364 GB, free: 31.34 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.067e-05/1.477, allocations: 115.8 kB / 1.364 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.727e-05/1.477, allocations: 8.734 kB / 1.364 GB, free: 31.22 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001865/1.477, allocations: 116.5 kB / 1.364 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/1.477, allocations: 0 / 1.364 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/1.477, allocations: 0 / 1.364 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/1.477, allocations: 3.953 kB / 1.364 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003073/1.478, allocations: 363.3 kB / 1.364 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/1.478, allocations: 5.469 kB / 1.364 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/1.478, allocations: 25.14 kB / 1.364 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/1.478, allocations: 0 / 1.364 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/1.478, allocations: 0 / 1.364 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/1.478, allocations: 3.969 kB / 1.364 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/1.478, allocations: 5.547 kB / 1.364 GB, free: 30.89 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001615/1.478, allocations: 206.4 kB / 1.365 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.897e-05/1.478, allocations: 90.2 kB / 1.365 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/1.478, allocations: 1.453 kB / 1.365 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/1.478, allocations: 19.53 kB / 1.365 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.375e-05/1.478, allocations: 25.17 kB / 1.365 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/1.478, allocations: 0 / 1.365 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.191e-05/1.478, allocations: 103.5 kB / 1.365 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.478, allocations: 0 / 1.365 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002619/1.479, allocations: 32.06 kB / 1.365 GB, free: 30.56 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.000154/1.479, allocations: 108.8 kB / 1.365 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002349/1.479, allocations: 174.3 kB / 1.365 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/1.479, allocations: 3.938 kB / 1.365 GB, free: 30.4 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.29e-05/1.479, allocations: 42.41 kB / 1.365 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/1.479, allocations: 13.66 kB / 1.365 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002757/1.48, allocations: 129.2 kB / 1.365 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/1.48, allocations: 0.6999 MB / 1.366 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.523e-05/1.48, allocations: 9.391 kB / 1.366 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.267e-05/1.48, allocations: 11.28 kB / 1.366 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of SimCode: time 7.92e-07/1.48, allocations: 3.844 kB / 1.366 GB, free: 29.61 MB / 0.8386 GB Notification: Performance of Templates: time 0.003667/1.484, allocations: 1.535 MB / 1.367 GB, free: 29.48 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (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 & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches