Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.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.Integers.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pul.y|pul1.y|pul2.y|pul3.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse") translateModel(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pul.y|pul1.y|pul2.y|pul3.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001361/0.001361, allocations: 168.7 kB / 15.95 MB, free: 204 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.677/1.677, allocations: 223.3 MB / 240 MB, free: 5.422 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.65/2.65, allocations: 390.9 MB / 0.666 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005364/0.0005364, allocations: 16 kB / 0.8154 GB, free: 13.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9185/0.9191, allocations: 142.4 MB / 0.9545 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse): time 0.0009135/0.9201, allocations: 0.6445 MB / 0.9551 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001379/0.9214, allocations: 1.417 MB / 0.9565 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6e-05/0.9215, allocations: 1.438 kB / 0.9565 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.557e-05/0.9216, allocations: 7.875 kB / 0.9565 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.9217, allocations: 36.11 kB / 0.9565 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008573/0.9225, allocations: 382 kB / 0.9569 GB, free: 5.859 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003195/0.9229, allocations: 385.5 kB / 0.9573 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.923, allocations: 36.31 kB / 0.9573 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.9231, allocations: 150 kB / 0.9574 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001573/0.9233, allocations: 112.9 kB / 0.9575 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.266e-05/0.9234, allocations: 18.94 kB / 0.9576 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.141e-05/0.9235, allocations: 40.11 kB / 0.9576 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.796e-05/0.9235, allocations: 32.27 kB / 0.9576 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.069e-05/0.9236, allocations: 67.7 kB / 0.9577 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002672/0.9239, allocations: 370.8 kB / 0.958 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.9239, allocations: 0 / 0.958 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of FrontEnd: time 9.92e-07/0.9239, allocations: 0 / 0.958 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.919e-06/0.9239, allocations: 0 / 0.958 GB, free: 5.078 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005216/0.9244, allocations: 0.573 MB / 0.9586 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.9245, allocations: 9.062 kB / 0.9586 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.946e-05/0.9246, allocations: 34.3 kB / 0.9586 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.9247, allocations: 217.6 kB / 0.9589 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.033e-05/0.9248, allocations: 11.34 kB / 0.9589 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.652e-05/0.9249, allocations: 21.94 kB / 0.9589 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.925, allocations: 122.7 kB / 0.959 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.9251, allocations: 7.938 kB / 0.959 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.9251, allocations: 5.859 kB / 0.959 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.9251, allocations: 5.922 kB / 0.959 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000107/0.9252, allocations: 53.64 kB / 0.9591 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000785/0.926, allocations: 0.8766 MB / 0.9599 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.9261, allocations: 119.1 kB / 0.96 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.901e-05/0.9262, allocations: 46.56 kB / 0.9601 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.329e-05/0.9262, allocations: 1.375 kB / 0.9601 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002686/0.9265, allocations: 185.5 kB / 0.9603 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.563e-06/0.9265, allocations: 0 / 0.9603 GB, free: 2.934 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0004137/0.9269, allocations: 219.3 kB / 0.9605 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.457e-05/0.927, allocations: 136.6 kB / 0.9606 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002081/0.9272, allocations: 233.3 kB / 0.9608 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 4.405e-05/0.9272, allocations: 42 kB / 0.9609 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.9274, allocations: 138 kB / 0.961 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.389e-05/0.9274, allocations: 41.06 kB / 0.961 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.9274, allocations: 6.938 kB / 0.961 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.445e-05/0.9275, allocations: 332.3 kB / 0.9614 GB, free: 1.961 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002881/0.9278, allocations: 149.9 kB / 0.9615 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002932/0.9281, allocations: 222.8 kB / 0.9617 GB, free: 1.707 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.9284, allocations: 253.8 kB / 0.962 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.9285, allocations: 5.062 kB / 0.962 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009234/0.9294, allocations: 0.5455 MB / 0.9625 GB, free: 1.145 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.716e-05/0.9295, allocations: 137.9 kB / 0.9626 GB, free: 1 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.9295, allocations: 2.438 kB / 0.9626 GB, free: 1 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.9295, allocations: 3.969 kB / 0.9626 GB, free: 1 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.634e-05/0.9296, allocations: 9.438 kB / 0.9626 GB, free: 1 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/0.9296, allocations: 8.312 kB / 0.9626 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007345/0.9303, allocations: 161.4 kB / 0.9628 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.732e-05/0.9304, allocations: 35.41 kB / 0.9628 GB, free: 0.9219 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition7,$whenCondition8,pul3.y,$PRE.pul3.booPul.y,pul3.booPul.y,$whenCondition5,$whenCondition6,pul1.y,$PRE.pul1.booPul.y,pul1.booPul.y,$whenCondition3,$whenCondition4,pul2.y,$PRE.pul2.booPul.y,pul2.booPul.y,$whenCondition1,$whenCondition2,pul.y,$PRE.pul.booPul.y,pul.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 4 * 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 0.0001329/0.9306, allocations: 142.4 kB / 0.963 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.444e-05/0.9306, allocations: 25.88 kB / 0.963 GB, free: 0.7773 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.494e-05/0.9306, allocations: 22.95 kB / 0.963 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.9307, allocations: 2.031 kB / 0.963 GB, free: 0.7617 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.9307, allocations: 9.984 kB / 0.963 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.9307, allocations: 0.7812 kB / 0.963 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/0.9309, allocations: 264.8 kB / 0.9633 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.9309, allocations: 1.031 kB / 0.9633 GB, free: 496 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.132e-05/0.9309, allocations: 15.86 kB / 0.9633 GB, free: 488 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.9309, allocations: 2.031 kB / 0.9633 GB, free: 488 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.226e-05/0.931, allocations: 3.219 kB / 0.9633 GB, free: 488 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.931, allocations: 1.094 kB / 0.9633 GB, free: 488 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.931, allocations: 1.125 kB / 0.9633 GB, free: 488 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002648/0.9312, allocations: 228.3 kB / 0.9635 GB, free: 312 kB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.9313, allocations: 99.44 kB / 0.9636 GB, free: 200 kB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.931e-05/0.9313, allocations: 2.875 kB / 0.9636 GB, free: 200 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.186e-05/0.9314, allocations: 5.25 kB / 0.9636 GB, free: 196 kB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.218e-05/0.9314, allocations: 10.02 kB / 0.9636 GB, free: 192 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.9315, allocations: 14.95 kB / 0.9637 GB, free: 184 kB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001236/0.9316, allocations: 160.3 kB / 0.9638 GB, free: 72 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9316, allocations: 4 kB / 0.9638 GB, free: 68 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0003541/0.932, allocations: 80.17 kB / 0.9639 GB, free: 48 kB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition7,$whenCondition8,pul3.y,pul3.booPul.y,$whenCondition5,$whenCondition6,pul1.y,pul1.booPul.y,$whenCondition3,$whenCondition4,pul2.y,pul2.booPul.y,$whenCondition1,$whenCondition2,pul.y,pul.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002199/0.9322, allocations: 117.6 kB / 0.964 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0008847/0.9331, allocations: 0.5253 MB / 0.9645 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.9331, allocations: 1.656 kB / 0.9645 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.9332, allocations: 69.55 kB / 0.9646 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000451/0.9337, allocations: 70.27 kB / 0.9646 GB, free: 15.46 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006546/0.9343, allocations: 376.1 kB / 0.965 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003718/0.9347, allocations: 0.7298 MB / 0.9657 GB, free: 14.44 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 8.496e-05/0.9348, allocations: 19.42 kB / 0.9657 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.58e-05/0.9349, allocations: 17.38 kB / 0.9658 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of SimCode: time 2.1e-07/0.9349, allocations: 0 / 0.9658 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of Templates: time 0.01097/0.9459, allocations: 4.174 MB / 0.9698 GB, free: 12.34 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches