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: 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_9_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_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.178/2.178, allocations: 387.4 MB / 394.9 MB, free: 13.43 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.0009707/0.0009707, allocations: 176.9 kB / 487.4 MB, free: 5.051 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.538/1.538, allocations: 221.5 MB / 0.7824 GB, free: 1.059 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009651/0.0009647, allocations: 95.89 kB / 0.9219 GB, free: 2.293 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.102e-05/2.105e-05, allocations: 8 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.299, allocations: 142.4 MB / 1.206 GB, free: 44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.116/1.415, allocations: 149.2 MB / 1.352 GB, free: 18.56 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/1.415, allocations: 71.22 kB / 1.352 GB, free: 18.56 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00796/1.423, allocations: 2.481 MB / 1.354 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.563e-06/1.423, allocations: 0 / 1.354 GB, free: 34.14 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.095e-06/1.423, allocations: 0 / 1.354 GB, free: 34.14 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.000611/1.424, allocations: 426.9 kB / 1.355 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/1.424, allocations: 7.719 kB / 1.355 GB, free: 33.74 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.779e-05/1.424, allocations: 15.44 kB / 1.355 GB, free: 33.73 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001144/1.424, allocations: 187.2 kB / 1.355 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/1.424, allocations: 4.453 kB / 1.355 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.177e-05/1.424, allocations: 8.891 kB / 1.355 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001276/1.424, allocations: 35.8 kB / 1.355 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001251/1.425, allocations: 63.88 kB / 1.355 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/1.425, allocations: 0 / 1.355 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/1.425, allocations: 0.7969 kB / 1.355 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.568e-06/1.425, allocations: 0 / 1.355 GB, free: 33.49 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005849/1.425, allocations: 360.2 kB / 1.355 GB, free: 33.25 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001177/1.425, allocations: 64.64 kB / 1.355 GB, free: 33.22 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.929e-05/1.425, allocations: 32.06 kB / 1.355 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.867e-05/1.425, allocations: 8.375 kB / 1.355 GB, free: 33.2 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001609/1.426, allocations: 88.25 kB / 1.355 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.422e-06/1.426, allocations: 0 / 1.355 GB, free: 33.15 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0002256/1.426, allocations: 105.8 kB / 1.355 GB, free: 33.11 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.67e-05/1.426, allocations: 60 kB / 1.356 GB, free: 33.05 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.461e-05/1.426, allocations: 112.5 kB / 1.356 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/1.426, allocations: 30.19 kB / 1.356 GB, free: 32.93 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.386e-05/1.426, allocations: 101 kB / 1.356 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.803e-05/1.426, allocations: 32.48 kB / 1.356 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.582e-05/1.426, allocations: 3.875 kB / 1.356 GB, free: 32.82 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001198/1.426, allocations: 325.3 kB / 1.356 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.586e-05/1.426, allocations: 45.2 kB / 1.356 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/1.426, allocations: 78.59 kB / 1.356 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002033/1.427, allocations: 60.12 kB / 1.356 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/1.427, allocations: 0 / 1.356 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000364/1.427, allocations: 183.9 kB / 1.356 GB, free: 32.41 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 3.369e-05/1.427, allocations: 38.83 kB / 1.356 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/1.427, allocations: 0 / 1.356 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/1.427, allocations: 11.95 kB / 1.356 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/1.427, allocations: 22.06 kB / 1.357 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/1.427, allocations: 4.406 kB / 1.357 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002628/1.428, allocations: 62.92 kB / 1.357 GB, free: 32.36 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.759e-05/1.428, allocations: 12.55 kB / 1.357 GB, free: 32.36 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 0.0001321/1.428, allocations: 114.6 kB / 1.357 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.959e-05/1.428, allocations: 11.3 kB / 1.357 GB, free: 32.25 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002038/1.428, allocations: 113.5 kB / 1.357 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/1.428, allocations: 3.844 kB / 1.357 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/1.428, allocations: 4 kB / 1.357 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/1.428, allocations: 0.7031 kB / 1.357 GB, free: 32.2 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003571/1.428, allocations: 371.1 kB / 1.357 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/1.428, allocations: 0 / 1.357 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/1.429, allocations: 25.03 kB / 1.357 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/1.429, allocations: 0 / 1.357 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/1.429, allocations: 9.219 kB / 1.357 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/1.429, allocations: 7.922 kB / 1.357 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/1.429, allocations: 0.6562 kB / 1.357 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001897/1.429, allocations: 202.2 kB / 1.357 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.495e-05/1.429, allocations: 85.52 kB / 1.358 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.617e-05/1.429, allocations: 4.547 kB / 1.358 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/1.429, allocations: 25.28 kB / 1.358 GB, free: 31.67 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.778e-05/1.429, allocations: 19.23 kB / 1.358 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/1.429, allocations: 4.547 kB / 1.358 GB, free: 31.66 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 5.697e-05/1.429, allocations: 95.22 kB / 1.358 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.5e-07/1.429, allocations: 3.844 kB / 1.358 GB, free: 31.59 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002693/1.429, allocations: 32.19 kB / 1.358 GB, free: 31.58 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.000182/1.43, allocations: 112.6 kB / 1.358 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002526/1.43, allocations: 174.4 kB / 1.358 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/1.43, allocations: 0 / 1.358 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.669e-05/1.43, allocations: 37.42 kB / 1.358 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/1.43, allocations: 14.88 kB / 1.358 GB, free: 31.42 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000301/1.43, allocations: 132.3 kB / 1.358 GB, free: 31.33 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/1.431, allocations: 0.7071 MB / 1.359 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 5.519e-05/1.431, allocations: 7.266 kB / 1.359 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.793e-05/1.431, allocations: 12.42 kB / 1.359 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of SimCode: time 2.7e-07/1.431, allocations: 3.906 kB / 1.359 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of Templates: time 0.003792/1.435, allocations: 1.539 MB / 1.36 GB, free: 30.49 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches