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.001056/0.001056, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001388/0.001388, allocations: 172.7 kB / 15.95 MB, free: 208 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.521/1.521, allocations: 223.3 MB / 240 MB, free: 5.43 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.542/2.542, allocations: 390.9 MB / 0.666 GB, free: 2.488 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003687/0.0003688, allocations: 8 kB / 0.8154 GB, free: 13.65 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9155/0.9158, allocations: 142.4 MB / 0.9544 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.0009394/0.9168, allocations: 0.5047 MB / 0.9549 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001502/0.9183, allocations: 1.178 MB / 0.9561 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.394e-05/0.9184, allocations: 1.375 kB / 0.9561 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.835e-05/0.9185, allocations: 3.938 kB / 0.9561 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.004e-05/0.9185, allocations: 9.609 kB / 0.9561 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000499/0.9191, allocations: 136.3 kB / 0.9562 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001442/0.9192, allocations: 121.5 kB / 0.9564 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.444e-05/0.9193, allocations: 16.47 kB / 0.9564 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001095/0.9194, allocations: 56.3 kB / 0.9564 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.616e-05/0.9195, allocations: 50.41 kB / 0.9565 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.872e-05/0.9196, allocations: 10.69 kB / 0.9565 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.877e-05/0.9196, allocations: 17.08 kB / 0.9565 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.439e-05/0.9197, allocations: 23.16 kB / 0.9565 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.979e-05/0.9197, allocations: 38.95 kB / 0.9566 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001308/0.9199, allocations: 103 kB / 0.9567 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.9199, allocations: 0 / 0.9567 GB, free: 6.055 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.443e-06/0.9199, allocations: 3.938 kB / 0.9567 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.419e-06/0.9199, allocations: 0 / 0.9567 GB, free: 6.051 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.0005688/0.9205, allocations: 434.2 kB / 0.9571 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.9205, allocations: 8.031 kB / 0.9571 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.207e-05/0.9206, allocations: 15.48 kB / 0.9571 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001051/0.9207, allocations: 175.3 kB / 0.9573 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.9207, allocations: 8.219 kB / 0.9573 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.77e-05/0.9207, allocations: 9.562 kB / 0.9573 GB, free: 5.402 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002918/0.921, allocations: 113.2 kB / 0.9574 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.9211, allocations: 0 / 0.9574 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/0.9211, allocations: 1.469 kB / 0.9574 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.9211, allocations: 9.453 kB / 0.9574 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003481/0.9214, allocations: 115 kB / 0.9575 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006126/0.9221, allocations: 379.3 kB / 0.9579 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002646/0.9223, allocations: 107.8 kB / 0.958 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001766/0.9225, allocations: 70.78 kB / 0.958 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.9226, allocations: 1.219 kB / 0.958 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003142/0.9229, allocations: 142.9 kB / 0.9582 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.884e-06/0.9229, allocations: 0 / 0.9582 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006602/0.9236, allocations: 245.7 kB / 0.9584 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.9236, allocations: 55.12 kB / 0.9585 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.661e-05/0.9237, allocations: 129.2 kB / 0.9586 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.9237, allocations: 31.17 kB / 0.9586 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.379e-05/0.9238, allocations: 95.28 kB / 0.9587 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.352e-05/0.9238, allocations: 36.7 kB / 0.9587 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.647e-05/0.9239, allocations: 2.531 kB / 0.9587 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.354e-05/0.9239, allocations: 317.4 kB / 0.959 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002302/0.9242, allocations: 89.53 kB / 0.9591 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002356/0.9244, allocations: 133.3 kB / 0.9593 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000228/0.9246, allocations: 114.7 kB / 0.9594 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.9247, allocations: 0 / 0.9594 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005786/0.9252, allocations: 291.2 kB / 0.9596 GB, free: 3.562 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.99e-05/0.9253, allocations: 32.58 kB / 0.9597 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.9253, allocations: 1.375 kB / 0.9597 GB, free: 3.531 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.9253, allocations: 6.688 kB / 0.9597 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.9255, allocations: 31.31 kB / 0.9597 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.9255, allocations: 1.375 kB / 0.9597 GB, free: 3.516 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.9257, allocations: 66.3 kB / 0.9598 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.422e-05/0.9258, allocations: 10.86 kB / 0.9598 GB, free: 3.484 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 8.775e-05/0.9259, allocations: 127.4 kB / 0.9599 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.383e-05/0.9259, allocations: 11.98 kB / 0.9599 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004329/0.9263, allocations: 192.4 kB / 0.9601 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.9263, allocations: 0.9375 kB / 0.9601 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.9264, allocations: 0.9062 kB / 0.9601 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.9264, allocations: 0 / 0.9601 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005717/0.9269, allocations: 477 kB / 0.9606 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.927, allocations: 0 / 0.9606 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.9271, allocations: 28.95 kB / 0.9606 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.9271, allocations: 3.984 kB / 0.9606 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.9271, allocations: 2.031 kB / 0.9606 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.9271, allocations: 0 / 0.9606 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.9271, allocations: 1.094 kB / 0.9606 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004223/0.9275, allocations: 277.4 kB / 0.9609 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.593e-05/0.9276, allocations: 91.75 kB / 0.9609 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.537e-05/0.9276, allocations: 2 kB / 0.961 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.9277, allocations: 15.64 kB / 0.961 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.294e-05/0.9278, allocations: 26.92 kB / 0.961 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.9278, allocations: 3.125 kB / 0.961 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.622e-05/0.9279, allocations: 102.4 kB / 0.9611 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.9279, allocations: 0 / 0.9611 GB, free: 2.406 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.00033/0.9282, allocations: 38.47 kB / 0.9611 GB, free: 2.395 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.0002055/0.9284, allocations: 117.2 kB / 0.9612 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006563/0.9291, allocations: 250.5 kB / 0.9615 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.9291, allocations: 0 / 0.9615 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002612/0.9294, allocations: 82.39 kB / 0.9616 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003377/0.9298, allocations: 17.27 kB / 0.9616 GB, free: 2.109 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005053/0.9303, allocations: 229.1 kB / 0.9618 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.9305, allocations: 0.6934 MB / 0.9625 GB, free: 1.215 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.943e-05/0.9306, allocations: 9.828 kB / 0.9625 GB, free: 1.207 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.209e-05/0.9306, allocations: 17 kB / 0.9625 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of SimCode: time 4.51e-07/0.9306, allocations: 1 kB / 0.9625 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of Templates: time 0.00474/0.9354, allocations: 1.647 MB / 0.9641 GB, free: 376 kB / 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches