Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001708/0.001708, allocations: 104.2 kB / 16.4 MB, free: 6.465 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.001914/0.001914, allocations: 192.2 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.415/2.415, allocations: 437 MB / 0.7112 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 63.91 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9688/0.9704, allocations: 151.6 MB / 1.167 GB, free: 3.801 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002478/0.973, allocations: 0.812 MB / 1.168 GB, free: 2.992 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001932/0.9749, allocations: 1.212 MB / 1.169 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.29e-05/0.975, allocations: 0 / 1.169 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.726e-05/0.9751, allocations: 7.875 kB / 1.169 GB, free: 1.758 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.9752, allocations: 19.86 kB / 1.169 GB, free: 1.738 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006437/0.9759, allocations: 154 kB / 1.169 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002712/0.9762, allocations: 163.7 kB / 1.17 GB, free: 1.43 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00012/0.9763, allocations: 20.22 kB / 1.17 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.9764, allocations: 63.89 kB / 1.17 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001373/0.9766, allocations: 63.78 kB / 1.17 GB, free: 1.285 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.487e-05/0.9766, allocations: 16 kB / 1.17 GB, free: 1.27 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 9.658e-05/0.9767, allocations: 27.98 kB / 1.17 GB, free: 1.242 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.059e-05/0.9768, allocations: 19.92 kB / 1.17 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.339e-05/0.9768, allocations: 59.77 kB / 1.17 GB, free: 1.164 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002539/0.9771, allocations: 143.5 kB / 1.17 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.9771, allocations: 0 / 1.17 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.936e-06/0.9771, allocations: 0 / 1.17 GB, free: 1.023 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.316e-05/0.9772, allocations: 0 / 1.17 GB, free: 1.023 MB / 0.8887 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.0008052/0.978, allocations: 450.6 kB / 1.17 GB, free: 0.5312 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.978, allocations: 8.922 kB / 1.17 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.183e-05/0.9781, allocations: 16.75 kB / 1.17 GB, free: 0.5078 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.9783, allocations: 181.9 kB / 1.171 GB, free: 300 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.9783, allocations: 8.375 kB / 1.171 GB, free: 292 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.177e-05/0.9783, allocations: 12.38 kB / 1.171 GB, free: 280 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002986/0.9786, allocations: 94.19 kB / 1.171 GB, free: 180 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.9786, allocations: 192 / 1.171 GB, free: 180 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.789e-05/0.9787, allocations: 7.938 kB / 1.171 GB, free: 172 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.9787, allocations: 11.92 kB / 1.171 GB, free: 160 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000337/0.979, allocations: 79.92 kB / 1.171 GB, free: 80 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006914/0.9797, allocations: 380.7 kB / 1.171 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002783/0.98, allocations: 94.59 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.9802, allocations: 56.81 kB / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.739e-05/0.9802, allocations: 0 / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003609/0.9806, allocations: 135.1 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=12): time 2.104e-06/0.9806, allocations: 0 / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12): time 0.0006774/0.9813, allocations: 201.5 kB / 1.172 GB, free: 15.15 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.9814, allocations: 55.41 kB / 1.172 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000124/0.9815, allocations: 131.1 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.128e-05/0.9816, allocations: 33.7 kB / 1.172 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.443e-05/0.9816, allocations: 104 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.155e-05/0.9817, allocations: 27.69 kB / 1.172 GB, free: 14.77 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.9818, allocations: 49.64 kB / 1.172 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.9819, allocations: 322.8 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002542/0.9822, allocations: 83.94 kB / 1.172 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002654/0.9825, allocations: 112.2 kB / 1.173 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004377/0.9829, allocations: 187.2 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.9829, allocations: 0 / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006518/0.9836, allocations: 271.2 kB / 1.173 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.181e-05/0.9836, allocations: 37.7 kB / 1.173 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.9836, allocations: 4 kB / 1.173 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.9837, allocations: 3.938 kB / 1.173 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.9838, allocations: 23.97 kB / 1.173 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.9838, allocations: 0 / 1.173 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.9841, allocations: 47.92 kB / 1.173 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.657e-05/0.9841, allocations: 11.98 kB / 1.173 GB, free: 13.57 MB / 0.9044 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 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,booPul1.y,$PRE.booPul1.y,$whenCondition3) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001279/0.9843, allocations: 131.9 kB / 1.173 GB, free: 13.44 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.264e-05/0.9843, allocations: 7.906 kB / 1.173 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000459/0.9848, allocations: 169.9 kB / 1.173 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.9848, allocations: 8 kB / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.9848, allocations: 0 / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.9848, allocations: 0 / 1.173 GB, free: 13.25 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006944/0.9855, allocations: 458.1 kB / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.9855, allocations: 0 / 1.174 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001035/0.9856, allocations: 23.97 kB / 1.174 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.9856, allocations: 4 kB / 1.174 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.9857, allocations: 0 / 1.174 GB, free: 12.72 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.006e-06/0.9857, allocations: 7.875 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.9857, allocations: 3.938 kB / 1.174 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004569/0.9861, allocations: 256.1 kB / 1.174 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.631e-05/0.9862, allocations: 85.02 kB / 1.174 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.521e-05/0.9862, allocations: 4 kB / 1.174 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.9864, allocations: 15.92 kB / 1.174 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.536e-05/0.9864, allocations: 19.97 kB / 1.174 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.013e-05/0.9864, allocations: 4 kB / 1.174 GB, free: 12.3 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.012e-05/0.9865, allocations: 94.02 kB / 1.174 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9865, allocations: 0 / 1.174 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003031/0.9868, allocations: 32 kB / 1.174 GB, free: 12.18 MB / 0.9044 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002015/0.987, allocations: 115.2 kB / 1.174 GB, free: 12.05 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0006161/0.9877, allocations: 239.3 kB / 1.175 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.9877, allocations: 0 / 1.175 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002205/0.9879, allocations: 72.36 kB / 1.175 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.9882, allocations: 22.5 kB / 1.175 GB, free: 11.72 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005334/0.9888, allocations: 236.8 kB / 1.175 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.9891, allocations: 0.6963 MB / 1.176 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.072e-05/0.9892, allocations: 15.44 kB / 1.176 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of SimCode: time 4.51e-07/0.9892, allocations: 0 / 1.176 GB, free: 10.71 MB / 0.9044 GB Notification: Performance of Templates: time 0.003977/0.9932, allocations: 1.652 MB / 1.177 GB, free: 9.078 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches