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.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.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.001483/0.001483, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001672/0.001672, allocations: 192.3 kB / 16.25 MB, free: 6.637 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.467/1.467, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.589/2.589, allocations: 390.2 MB / 0.6643 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 64.12 kB / 0.8121 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8296/0.8311, allocations: 140.4 MB / 0.9491 GB, free: 9.059 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse): time 0.002562/0.8337, allocations: 1.024 MB / 0.9501 GB, free: 8.266 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001672/0.8354, allocations: 1.424 MB / 0.9515 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.397e-05/0.8355, allocations: 2.5 kB / 0.9515 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.907e-05/0.8356, allocations: 11.88 kB / 0.9515 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.8358, allocations: 44.88 kB / 0.9516 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.8368, allocations: 408.4 kB / 0.952 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004707/0.8372, allocations: 0.5098 MB / 0.9525 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001462/0.8374, allocations: 46.22 kB / 0.9525 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.8376, allocations: 183.8 kB / 0.9527 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/0.8378, allocations: 146.4 kB / 0.9528 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 7.514e-05/0.8378, allocations: 56.97 kB / 0.9529 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.838, allocations: 58.95 kB / 0.9529 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.87e-05/0.838, allocations: 40.33 kB / 0.953 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000151/0.8382, allocations: 164.9 kB / 0.9531 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003693/0.8385, allocations: 498.7 kB / 0.9536 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.8386, allocations: 0 / 0.9536 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.803e-06/0.8386, allocations: 0 / 0.9536 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.573e-06/0.8386, allocations: 0 / 0.9536 GB, free: 5.707 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.0007127/0.8393, allocations: 0.6349 MB / 0.9542 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.8393, allocations: 9.438 kB / 0.9542 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.337e-05/0.8394, allocations: 34.84 kB / 0.9543 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.8396, allocations: 228 kB / 0.9545 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.8396, allocations: 22.3 kB / 0.9545 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.857e-05/0.8397, allocations: 18.78 kB / 0.9545 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000187/0.8399, allocations: 121.4 kB / 0.9546 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.8399, allocations: 3.938 kB / 0.9546 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.8399, allocations: 4.969 kB / 0.9546 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.8399, allocations: 7.594 kB / 0.9546 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001031/0.84, allocations: 53.72 kB / 0.9547 GB, free: 4.676 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007672/0.8408, allocations: 0.8712 MB / 0.9556 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.841, allocations: 115.6 kB / 0.9557 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.291e-05/0.841, allocations: 54.89 kB / 0.9557 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.841, allocations: 1.188 kB / 0.9557 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.8413, allocations: 177.3 kB / 0.9559 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.8413, allocations: 0 / 0.9559 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of matching and sorting (n=16): time 0.0004291/0.8417, allocations: 231.7 kB / 0.9561 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.809e-05/0.8418, allocations: 140.5 kB / 0.9562 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002056/0.842, allocations: 240 kB / 0.9565 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.168e-05/0.842, allocations: 37.86 kB / 0.9565 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.64e-05/0.8421, allocations: 121.9 kB / 0.9566 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.43e-05/0.8422, allocations: 45.28 kB / 0.9567 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.8424, allocations: 95.98 kB / 0.9568 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.028e-05/0.8425, allocations: 335.7 kB / 0.9571 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002711/0.8427, allocations: 147.1 kB / 0.9572 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002898/0.843, allocations: 223.8 kB / 0.9574 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003445/0.8434, allocations: 367.1 kB / 0.9578 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.8434, allocations: 1.344 kB / 0.9578 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007984/0.8442, allocations: 0.5452 MB / 0.9583 GB, free: 1.559 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 6.909e-05/0.8443, allocations: 138.2 kB / 0.9584 GB, free: 1.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/0.8443, allocations: 6.75 kB / 0.9585 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.8443, allocations: 4.125 kB / 0.9585 GB, free: 1.41 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.202e-05/0.8444, allocations: 17.61 kB / 0.9585 GB, free: 1.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.8444, allocations: 15.94 kB / 0.9585 GB, free: 1.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006474/0.8451, allocations: 114.9 kB / 0.9586 GB, free: 1.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.419e-05/0.8451, allocations: 27.23 kB / 0.9586 GB, free: 1.332 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.booPul.y,$PRE.pul3.booPul.y,pul3.y,$whenCondition5,$whenCondition6,pul1.booPul.y,$PRE.pul1.booPul.y,pul1.y,$whenCondition3,$whenCondition4,pul2.booPul.y,$PRE.pul2.booPul.y,pul2.y,$whenCondition1,$whenCondition2,pul.booPul.y,$PRE.pul.booPul.y,pul.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001284/0.8453, allocations: 143 kB / 0.9588 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.343e-05/0.8453, allocations: 21.14 kB / 0.9588 GB, free: 1.191 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.035e-05/0.8454, allocations: 22.62 kB / 0.9588 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.8454, allocations: 3.625 kB / 0.9588 GB, free: 1.176 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.436e-06/0.8454, allocations: 9.188 kB / 0.9588 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.8454, allocations: 8.891 kB / 0.9588 GB, free: 1.16 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001793/0.8456, allocations: 256.7 kB / 0.9591 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.8456, allocations: 1.031 kB / 0.9591 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.724e-05/0.8456, allocations: 7.219 kB / 0.9591 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.8456, allocations: 2.969 kB / 0.9591 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.382e-05/0.8457, allocations: 6.516 kB / 0.9591 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.8457, allocations: 1.375 kB / 0.9591 GB, free: 0.8945 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.8457, allocations: 5.812 kB / 0.9591 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002641/0.8459, allocations: 220.3 kB / 0.9593 GB, free: 0.7266 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.994e-05/0.846, allocations: 99.72 kB / 0.9594 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.846, allocations: 3.188 kB / 0.9594 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.503e-05/0.8461, allocations: 10.17 kB / 0.9594 GB, free: 0.6094 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.026e-05/0.8462, allocations: 22.02 kB / 0.9594 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.8462, allocations: 6.125 kB / 0.9594 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001452/0.8463, allocations: 174.3 kB / 0.9596 GB, free: 480 kB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8463, allocations: 0 / 0.9596 GB, free: 480 kB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000341/0.8467, allocations: 67.94 kB / 0.9597 GB, free: 472 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 (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.0001673/0.8469, allocations: 114.3 kB / 0.9598 GB, free: 372 kB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006501/0.8475, allocations: 0.5311 MB / 0.9603 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.137e-06/0.8475, allocations: 4.062 kB / 0.9603 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001221/0.8477, allocations: 74.86 kB / 0.9604 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004637/0.8481, allocations: 67.39 kB / 0.9604 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006931/0.8488, allocations: 384.3 kB / 0.9608 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004344/0.8493, allocations: 0.7331 MB / 0.9615 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.598e-05/0.8493, allocations: 17.33 kB / 0.9615 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.934e-05/0.8494, allocations: 18.47 kB / 0.9615 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.8494, allocations: 0 / 0.9615 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of Templates: time 0.008752/0.8582, allocations: 4.544 MB / 0.966 GB, free: 12.55 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