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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009858/0.000986, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001013/0.001013, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.505/1.505, allocations: 223.2 MB / 239.9 MB, free: 5.223 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.57/2.57, allocations: 390.3 MB / 0.6653 GB, free: 2.938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003687/0.0003687, allocations: 8 kB / 0.8145 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9606/0.961, allocations: 142.3 MB / 0.9535 GB, free: 8.094 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001284/0.9623, allocations: 0.5121 MB / 0.954 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001727/0.9641, allocations: 1.157 MB / 0.9552 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.857e-05/0.9642, allocations: 1.469 kB / 0.9552 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.197e-05/0.9642, allocations: 0 / 0.9552 GB, free: 6.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.9643, allocations: 18.62 kB / 0.9552 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005616/0.9649, allocations: 135.3 kB / 0.9553 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001623/0.9651, allocations: 78.38 kB / 0.9554 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.9652, allocations: 15.81 kB / 0.9554 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.9653, allocations: 55.5 kB / 0.9554 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.9655, allocations: 50.94 kB / 0.9555 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.355e-05/0.9655, allocations: 6.938 kB / 0.9555 GB, free: 6.539 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.325e-05/0.9656, allocations: 15.97 kB / 0.9555 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.444e-05/0.9656, allocations: 19.81 kB / 0.9555 GB, free: 6.52 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.087e-05/0.9657, allocations: 43.94 kB / 0.9556 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.9659, allocations: 98.11 kB / 0.9557 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.9659, allocations: 0 / 0.9557 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.835e-06/0.9659, allocations: 0 / 0.9557 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.694e-06/0.9659, allocations: 0 / 0.9557 GB, free: 6.406 MB / 0.7169 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.0007644/0.9667, allocations: 435.9 kB / 0.9561 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.926e-05/0.9668, allocations: 8.562 kB / 0.9561 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.403e-05/0.9668, allocations: 19.16 kB / 0.9561 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.9669, allocations: 175.8 kB / 0.9563 GB, free: 5.754 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.967, allocations: 11.75 kB / 0.9563 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.984e-05/0.967, allocations: 8.5 kB / 0.9563 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000301/0.9673, allocations: 112.1 kB / 0.9564 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.9673, allocations: 0 / 0.9564 GB, free: 5.672 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.9673, allocations: 5.391 kB / 0.9564 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.9674, allocations: 1.406 kB / 0.9564 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003662/0.9677, allocations: 110.9 kB / 0.9565 GB, free: 5.625 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007109/0.9684, allocations: 387.2 kB / 0.9569 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.9688, allocations: 103.6 kB / 0.957 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.271e-05/0.9688, allocations: 5.062 kB / 0.957 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004315/0.9693, allocations: 127.2 kB / 0.9571 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.9693, allocations: 0 / 0.9571 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0008042/0.9701, allocations: 249.5 kB / 0.9574 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/0.9701, allocations: 54.38 kB / 0.9574 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001216/0.9703, allocations: 126.9 kB / 0.9575 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.508e-05/0.9703, allocations: 33.83 kB / 0.9576 GB, free: 4.754 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.84e-05/0.9704, allocations: 99.75 kB / 0.9577 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.459e-05/0.9705, allocations: 37.23 kB / 0.9577 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.644e-05/0.9705, allocations: 5.812 kB / 0.9577 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.9706, allocations: 320.8 kB / 0.958 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/0.9709, allocations: 86.28 kB / 0.9581 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003055/0.9712, allocations: 122.2 kB / 0.9582 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.9715, allocations: 113.1 kB / 0.9583 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.9715, allocations: 0 / 0.9583 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007084/0.9722, allocations: 294.7 kB / 0.9586 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.465e-05/0.9722, allocations: 32.58 kB / 0.9586 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.9723, allocations: 5.5 kB / 0.9586 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.9723, allocations: 2.75 kB / 0.9586 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.9725, allocations: 35.16 kB / 0.9587 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.203e-06/0.9725, allocations: 1.375 kB / 0.9587 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002875/0.9728, allocations: 62.3 kB / 0.9587 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.058e-05/0.9728, allocations: 14.86 kB / 0.9587 GB, free: 3.871 MB / 0.7169 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,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * 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.0001412/0.973, allocations: 131.4 kB / 0.9589 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.009e-05/0.973, allocations: 11.98 kB / 0.9589 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004886/0.9735, allocations: 187.8 kB / 0.959 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.9735, allocations: 1.781 kB / 0.9591 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.9735, allocations: 5.375 kB / 0.9591 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.9735, allocations: 3.938 kB / 0.9591 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006537/0.9742, allocations: 476.6 kB / 0.9595 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.9742, allocations: 0 / 0.9595 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001074/0.9743, allocations: 24.66 kB / 0.9595 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.9743, allocations: 0 / 0.9595 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.9743, allocations: 6.219 kB / 0.9595 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.9744, allocations: 4 kB / 0.9595 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.9744, allocations: 1.25 kB / 0.9595 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004579/0.9748, allocations: 277.3 kB / 0.9598 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.422e-05/0.9749, allocations: 91.53 kB / 0.9599 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.342e-05/0.9749, allocations: 5.938 kB / 0.9599 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.975, allocations: 28.16 kB / 0.9599 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.726e-05/0.9751, allocations: 18.06 kB / 0.96 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.145e-05/0.9751, allocations: 3.125 kB / 0.96 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.486e-05/0.9752, allocations: 94.95 kB / 0.96 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9752, allocations: 0.9688 kB / 0.96 GB, free: 2.785 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002742/0.9755, allocations: 33.94 kB / 0.9601 GB, free: 2.777 MB / 0.7169 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 (zeroCrossing.y,$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.0001753/0.9756, allocations: 109 kB / 0.9602 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005442/0.9762, allocations: 250.5 kB / 0.9604 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.9762, allocations: 8 kB / 0.9604 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.9764, allocations: 78.66 kB / 0.9605 GB, free: 2.504 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002049/0.9766, allocations: 10.94 kB / 0.9605 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003949/0.977, allocations: 224.1 kB / 0.9607 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/0.9772, allocations: 0.7034 MB / 0.9614 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.903e-05/0.9772, allocations: 9.375 kB / 0.9614 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.589e-05/0.9773, allocations: 17.42 kB / 0.9614 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of SimCode: time 2.3e-07/0.9773, allocations: 0 / 0.9614 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of Templates: time 0.004153/0.9814, allocations: 1.636 MB / 0.963 GB, free: 0.7617 MB / 0.7169 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