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.008776/0.008776, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.002193/0.002193, allocations: 189.4 kB / 16.67 MB, free: 5.934 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.477/1.477, allocations: 222.9 MB / 240.4 MB, free: 15.07 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.595/2.595, allocations: 437 MB / 0.7105 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 63.91 kB / 1.019 GB, free: 9.371 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.082/1.083, allocations: 151.6 MB / 1.167 GB, free: 3.859 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002295/1.085, allocations: 0.8209 MB / 1.167 GB, free: 3.039 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001695/1.087, allocations: 1.208 MB / 1.169 GB, free: 1.816 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.305e-05/1.087, allocations: 4 kB / 1.169 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.98e-05/1.087, allocations: 3.938 kB / 1.169 GB, free: 1.809 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.882e-05/1.087, allocations: 15.81 kB / 1.169 GB, free: 1.793 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006075/1.088, allocations: 146.4 kB / 1.169 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002163/1.088, allocations: 159.7 kB / 1.169 GB, free: 1.496 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/1.088, allocations: 36.2 kB / 1.169 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001058/1.088, allocations: 51.91 kB / 1.169 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/1.088, allocations: 67.72 kB / 1.169 GB, free: 1.344 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 3.22e-05/1.088, allocations: 12 kB / 1.169 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 8.503e-05/1.089, allocations: 27.98 kB / 1.169 GB, free: 1.305 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.049e-05/1.089, allocations: 15.98 kB / 1.169 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 8.537e-05/1.089, allocations: 59.77 kB / 1.169 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002274/1.089, allocations: 152 kB / 1.169 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/1.089, allocations: 0 / 1.169 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.814e-06/1.089, allocations: 0 / 1.169 GB, free: 1.086 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.341e-05/1.089, allocations: 0 / 1.169 GB, free: 1.086 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.0009744/1.09, allocations: 448.8 kB / 1.17 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/1.09, allocations: 8.922 kB / 1.17 GB, free: 0.582 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.889e-05/1.09, allocations: 16.88 kB / 1.17 GB, free: 0.5664 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001595/1.09, allocations: 177.8 kB / 1.17 GB, free: 364 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/1.09, allocations: 8.375 kB / 1.17 GB, free: 356 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.773e-05/1.09, allocations: 16.31 kB / 1.17 GB, free: 340 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/1.091, allocations: 98.12 kB / 1.17 GB, free: 236 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/1.091, allocations: 192 / 1.17 GB, free: 236 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.333e-05/1.091, allocations: 11.92 kB / 1.17 GB, free: 224 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/1.091, allocations: 0 / 1.17 GB, free: 224 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000327/1.091, allocations: 83.92 kB / 1.17 GB, free: 140 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000658/1.092, allocations: 388.7 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002698/1.092, allocations: 94.64 kB / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001823/1.092, allocations: 64.8 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/1.092, allocations: 3.938 kB / 1.171 GB, free: 15.53 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002877/1.092, allocations: 127.1 kB / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=12): time 1.402e-06/1.092, allocations: 0 / 1.171 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of matching and sorting (n=12): time 0.0006625/1.093, allocations: 209.5 kB / 1.171 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/1.093, allocations: 55.41 kB / 1.171 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/1.093, allocations: 127.3 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/1.093, allocations: 37.64 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.598e-05/1.093, allocations: 104.1 kB / 1.171 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.289e-05/1.093, allocations: 31.73 kB / 1.171 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.713e-05/1.094, allocations: 45.7 kB / 1.171 GB, free: 14.75 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001435/1.094, allocations: 326.8 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/1.094, allocations: 75.94 kB / 1.172 GB, free: 14.35 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000266/1.094, allocations: 118.5 kB / 1.172 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/1.095, allocations: 187.1 kB / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.095, allocations: 0 / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005954/1.095, allocations: 260.1 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.766e-05/1.095, allocations: 37.7 kB / 1.172 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/1.095, allocations: 8.125 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/1.095, allocations: 0 / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/1.095, allocations: 23.97 kB / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/1.095, allocations: 0 / 1.172 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002297/1.096, allocations: 47.84 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-05/1.096, allocations: 11.98 kB / 1.172 GB, free: 13.62 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.0001243/1.096, allocations: 133.7 kB / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.755e-05/1.096, allocations: 7.953 kB / 1.173 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004708/1.096, allocations: 173.8 kB / 1.173 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/1.096, allocations: 4 kB / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/1.096, allocations: 0 / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/1.096, allocations: 0 / 1.173 GB, free: 13.29 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006646/1.097, allocations: 450.3 kB / 1.173 GB, free: 12.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/1.097, allocations: 3.938 kB / 1.173 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.944e-05/1.097, allocations: 31.84 kB / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/1.097, allocations: 0 / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/1.097, allocations: 4 kB / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/1.097, allocations: 0 / 1.173 GB, free: 12.76 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/1.097, allocations: 7.938 kB / 1.173 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004491/1.098, allocations: 247.4 kB / 1.173 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.661e-05/1.098, allocations: 85.06 kB / 1.174 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.57e-05/1.098, allocations: 4 kB / 1.174 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/1.098, allocations: 23.91 kB / 1.174 GB, free: 12.36 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.864e-05/1.098, allocations: 15.98 kB / 1.174 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.123e-05/1.098, allocations: 4 kB / 1.174 GB, free: 12.34 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.1e-05/1.098, allocations: 95.77 kB / 1.174 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.3e-07/1.098, allocations: 3.938 kB / 1.174 GB, free: 12.25 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002774/1.098, allocations: 35.94 kB / 1.174 GB, free: 12.21 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.0002123/1.099, allocations: 111.2 kB / 1.174 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005757/1.099, allocations: 236.1 kB / 1.174 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.099, allocations: 0 / 1.174 GB, free: 11.85 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0002023/1.099, allocations: 67.89 kB / 1.174 GB, free: 11.79 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/1.1, allocations: 20.23 kB / 1.174 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004799/1.1, allocations: 203.5 kB / 1.174 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/1.101, allocations: 0.6963 MB / 1.175 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.421e-05/1.101, allocations: 8.547 kB / 1.175 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.3e-05/1.101, allocations: 19.44 kB / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of SimCode: time 2.3e-07/1.101, allocations: 0 / 1.175 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of Templates: time 0.005224/1.106, allocations: 1.935 MB / 1.177 GB, free: 8.875 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/jenkins/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