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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001646/0.001646, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002004/0.002004, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.465/1.465, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.575/2.575, allocations: 390.2 MB / 0.6643 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 63.89 kB / 0.812 GB, free: 14.76 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8128/0.8143, allocations: 140.3 MB / 0.9491 GB, free: 9.023 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.00236/0.8167, allocations: 0.8654 MB / 0.9499 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001523/0.8182, allocations: 1.194 MB / 0.9511 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.103e-05/0.8183, allocations: 5.125 kB / 0.9511 GB, free: 7.391 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.116e-05/0.8184, allocations: 3.938 kB / 0.9511 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.815e-05/0.8185, allocations: 17.25 kB / 0.9511 GB, free: 7.371 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005408/0.819, allocations: 135 kB / 0.9513 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.8192, allocations: 149.9 kB / 0.9514 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.8193, allocations: 23.16 kB / 0.9514 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001043/0.8194, allocations: 72.84 kB / 0.9515 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.048e-05/0.8195, allocations: 54.91 kB / 0.9516 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.089e-05/0.8196, allocations: 12.81 kB / 0.9516 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.085e-05/0.8197, allocations: 33.23 kB / 0.9516 GB, free: 7.094 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.74e-05/0.8197, allocations: 23.03 kB / 0.9516 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.536e-05/0.8198, allocations: 55.5 kB / 0.9517 GB, free: 7.035 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001974/0.82, allocations: 144.5 kB / 0.9518 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.82, allocations: 4 kB / 0.9518 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.583e-06/0.82, allocations: 0 / 0.9518 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.366e-06/0.82, allocations: 0 / 0.9518 GB, free: 6.922 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.0006356/0.8207, allocations: 448.3 kB / 0.9522 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.8207, allocations: 9.062 kB / 0.9523 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.161e-05/0.8208, allocations: 15.12 kB / 0.9523 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.228e-05/0.8209, allocations: 181.5 kB / 0.9524 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.8209, allocations: 8.094 kB / 0.9524 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.923e-05/0.8209, allocations: 13.12 kB / 0.9525 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/0.8212, allocations: 99.66 kB / 0.9526 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.8212, allocations: 192 / 0.9526 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.51e-05/0.8213, allocations: 5.312 kB / 0.9526 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.8213, allocations: 1.375 kB / 0.9526 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003125/0.8216, allocations: 91.62 kB / 0.9526 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005497/0.8221, allocations: 387.3 kB / 0.953 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002509/0.8224, allocations: 93.91 kB / 0.9531 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.8226, allocations: 57.59 kB / 0.9532 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.437e-05/0.8226, allocations: 1.562 kB / 0.9532 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003232/0.8229, allocations: 121.1 kB / 0.9533 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.413e-06/0.823, allocations: 0 / 0.9533 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006452/0.8236, allocations: 214.4 kB / 0.9535 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.016e-05/0.8236, allocations: 54.41 kB / 0.9535 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.8237, allocations: 136.1 kB / 0.9537 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.413e-05/0.8238, allocations: 38.23 kB / 0.9537 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.673e-05/0.8239, allocations: 95.97 kB / 0.9538 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.841e-05/0.8239, allocations: 31.77 kB / 0.9538 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.299e-05/0.824, allocations: 45.5 kB / 0.9539 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.714e-05/0.824, allocations: 329.7 kB / 0.9542 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002262/0.8243, allocations: 72.69 kB / 0.9543 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002375/0.8245, allocations: 115.2 kB / 0.9544 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003871/0.8249, allocations: 184.3 kB / 0.9545 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.8249, allocations: 0 / 0.9545 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005977/0.8255, allocations: 270.4 kB / 0.9548 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.556e-05/0.8256, allocations: 41.5 kB / 0.9548 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.8256, allocations: 1.5 kB / 0.9548 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.8256, allocations: 5.25 kB / 0.9548 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.8257, allocations: 26.12 kB / 0.9549 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.8258, allocations: 2.625 kB / 0.9549 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.826, allocations: 43.86 kB / 0.9549 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.716e-05/0.8261, allocations: 14.88 kB / 0.9549 GB, free: 4.254 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 (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 9.945e-05/0.8262, allocations: 130.1 kB / 0.955 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.989e-05/0.8262, allocations: 8.844 kB / 0.9551 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004395/0.8266, allocations: 169.1 kB / 0.9552 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.8266, allocations: 2.812 kB / 0.9552 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.8267, allocations: 4 kB / 0.9552 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.8267, allocations: 0 / 0.9552 GB, free: 4.016 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005765/0.8272, allocations: 445.4 kB / 0.9557 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.8273, allocations: 0.8438 kB / 0.9557 GB, free: 3.617 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.8274, allocations: 27.55 kB / 0.9557 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.8274, allocations: 0 / 0.9557 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.8274, allocations: 9.484 kB / 0.9557 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.8274, allocations: 1.438 kB / 0.9557 GB, free: 3.594 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.8274, allocations: 3.938 kB / 0.9557 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004069/0.8278, allocations: 259 kB / 0.9559 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.569e-05/0.8279, allocations: 84.45 kB / 0.956 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.8279, allocations: 1.031 kB / 0.956 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.828, allocations: 14.8 kB / 0.956 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.832e-05/0.8281, allocations: 22.62 kB / 0.9561 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.8281, allocations: 3.406 kB / 0.9561 GB, free: 3.273 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.638e-05/0.8282, allocations: 95.27 kB / 0.9561 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8282, allocations: 3.938 kB / 0.9562 GB, free: 3.188 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002833/0.8285, allocations: 34.38 kB / 0.9562 GB, free: 3.18 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 (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.0001653/0.8286, allocations: 123.6 kB / 0.9563 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005396/0.8292, allocations: 239.4 kB / 0.9565 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.8292, allocations: 0 / 0.9565 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001961/0.8294, allocations: 76.58 kB / 0.9566 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002997/0.8297, allocations: 13.86 kB / 0.9566 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004097/0.8301, allocations: 233 kB / 0.9568 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001299/0.8303, allocations: 0.6944 MB / 0.9575 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.456e-05/0.8303, allocations: 10.52 kB / 0.9575 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.827e-05/0.8304, allocations: 13.12 kB / 0.9575 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of SimCode: time 2.1e-07/0.8304, allocations: 0 / 0.9575 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of Templates: time 0.004243/0.8346, allocations: 1.806 MB / 0.9593 GB, free: 1.051 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","/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