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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001713/0.001713, allocations: 113.8 kB / 17.61 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001921/0.001921, allocations: 186 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.567/1.567, allocations: 225.6 MB / 249.4 MB, free: 3.156 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.753/2.753, allocations: 443.4 MB / 0.7304 GB, free: 13.91 MB / 0.5762 GB " [Timeout remaining time 176] 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=2500,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=2500,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 71.88 kB / 1.059 GB, free: 360 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4334/0.4354, allocations: 160.7 MB / 1.216 GB, free: 15.32 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002436/0.4378, allocations: 0.8154 MB / 1.217 GB, free: 14.49 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001928/0.4398, allocations: 1.219 MB / 1.218 GB, free: 13.26 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.952e-05/0.4399, allocations: 0 / 1.218 GB, free: 13.26 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.7e-05/0.4399, allocations: 3.938 kB / 1.218 GB, free: 13.25 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001113/0.44, allocations: 19.86 kB / 1.218 GB, free: 13.23 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006238/0.4406, allocations: 155.2 kB / 1.218 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002466/0.4409, allocations: 151.7 kB / 1.218 GB, free: 12.94 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.441, allocations: 20.22 kB / 1.218 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.4411, allocations: 59.83 kB / 1.219 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.4412, allocations: 63.78 kB / 1.219 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.355e-05/0.4413, allocations: 16 kB / 1.219 GB, free: 12.78 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.4414, allocations: 27.98 kB / 1.219 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.546e-05/0.4414, allocations: 19.92 kB / 1.219 GB, free: 12.73 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.883e-05/0.4415, allocations: 63.75 kB / 1.219 GB, free: 12.67 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003125/0.4418, allocations: 151.4 kB / 1.219 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.4418, allocations: 0 / 1.219 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.193e-06/0.4418, allocations: 4 kB / 1.219 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.96e-06/0.4418, allocations: 0 / 1.219 GB, free: 12.52 MB / 0.9669 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.000761/0.4426, allocations: 444.8 kB / 1.219 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.4426, allocations: 12.03 kB / 1.219 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.491e-05/0.4427, allocations: 8.891 kB / 1.219 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/0.4428, allocations: 180.3 kB / 1.219 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.4429, allocations: 4.375 kB / 1.219 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.221e-05/0.4429, allocations: 12.38 kB / 1.219 GB, free: 11.78 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002922/0.4432, allocations: 98.12 kB / 1.22 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.4432, allocations: 192 / 1.22 GB, free: 11.68 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.499e-05/0.4432, allocations: 11.92 kB / 1.22 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.4432, allocations: 4 kB / 1.22 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003382/0.4436, allocations: 83.91 kB / 1.22 GB, free: 11.58 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006853/0.4443, allocations: 384.6 kB / 1.22 GB, free: 11.15 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002887/0.4445, allocations: 86.64 kB / 1.22 GB, free: 11.06 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001946/0.4447, allocations: 64.8 kB / 1.22 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.4448, allocations: 0 / 1.22 GB, free: 10.99 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004214/0.4452, allocations: 127.2 kB / 1.22 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/0.4452, allocations: 0 / 1.22 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0007247/0.4459, allocations: 213.4 kB / 1.221 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.446, allocations: 55.41 kB / 1.221 GB, free: 10.57 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.4461, allocations: 129.6 kB / 1.221 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.197e-05/0.4461, allocations: 33.7 kB / 1.221 GB, free: 10.4 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 8.76e-05/0.4462, allocations: 104.1 kB / 1.221 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.931e-05/0.4463, allocations: 31.8 kB / 1.221 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001041/0.4464, allocations: 49.7 kB / 1.221 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001633/0.4465, allocations: 326.7 kB / 1.221 GB, free: 9.883 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002522/0.4468, allocations: 83.94 kB / 1.221 GB, free: 9.801 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002774/0.4471, allocations: 116.2 kB / 1.221 GB, free: 9.672 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004347/0.4475, allocations: 177.9 kB / 1.222 GB, free: 9.477 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4475, allocations: 4 kB / 1.222 GB, free: 9.473 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006522/0.4482, allocations: 271 kB / 1.222 GB, free: 9.195 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.576e-05/0.4482, allocations: 37.69 kB / 1.222 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.4482, allocations: 0 / 1.222 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.4482, allocations: 0 / 1.222 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.4484, allocations: 28.11 kB / 1.222 GB, free: 9.125 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.4484, allocations: 0 / 1.222 GB, free: 9.125 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000245/0.4486, allocations: 43.84 kB / 1.222 GB, free: 9.082 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/0.4487, allocations: 15.98 kB / 1.222 GB, free: 9.066 MB / 0.9669 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.0001244/0.4488, allocations: 129.7 kB / 1.222 GB, free: 8.93 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.905e-05/0.4488, allocations: 7.953 kB / 1.222 GB, free: 8.922 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005124/0.4493, allocations: 170 kB / 1.222 GB, free: 8.75 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.4493, allocations: 0 / 1.222 GB, free: 8.75 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4493, allocations: 0 / 1.222 GB, free: 8.75 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.4493, allocations: 3.938 kB / 1.222 GB, free: 8.746 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008033/0.4501, allocations: 458.2 kB / 1.223 GB, free: 8.242 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.4501, allocations: 0 / 1.223 GB, free: 8.242 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001104/0.4502, allocations: 27.91 kB / 1.223 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.4502, allocations: 0 / 1.223 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.4502, allocations: 0 / 1.223 GB, free: 8.215 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.4503, allocations: 4 kB / 1.223 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4503, allocations: 3.938 kB / 1.223 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005331/0.4508, allocations: 259.3 kB / 1.223 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.02e-05/0.4508, allocations: 81.06 kB / 1.223 GB, free: 7.84 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.851e-05/0.4509, allocations: 4 kB / 1.223 GB, free: 7.836 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.451, allocations: 23.91 kB / 1.223 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.5e-05/0.4511, allocations: 11.98 kB / 1.223 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.4511, allocations: 8 kB / 1.223 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 7.657e-05/0.4512, allocations: 98.89 kB / 1.223 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4512, allocations: 3.938 kB / 1.223 GB, free: 7.695 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003055/0.4515, allocations: 31.98 kB / 1.223 GB, free: 7.664 MB / 0.9669 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.0002752/0.4518, allocations: 121.6 kB / 1.223 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0006283/0.4524, allocations: 215.2 kB / 1.224 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.4524, allocations: 3.938 kB / 1.224 GB, free: 7.312 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0002043/0.4526, allocations: 63.89 kB / 1.224 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003474/0.4529, allocations: 21.3 kB / 1.224 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006334/0.4536, allocations: 227.4 kB / 1.224 GB, free: 6.98 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00053/0.4541, allocations: 0.6924 MB / 1.225 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.987e-05/0.4542, allocations: 12.55 kB / 1.225 GB, free: 6.25 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.627e-05/0.4542, allocations: 11.44 kB / 1.225 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of SimCode: time 1.423e-06/0.4542, allocations: 0 / 1.225 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of Templates: time 0.005672/0.4599, allocations: 1.941 MB / 1.226 GB, free: 4.312 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile [Timeout 300] (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=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) [Timeout 400] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.834965548478067]