Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.362/2.362, allocations: 390.5 MB / 398 MB, free: 10.89 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 176.8 kB / 491.2 MB, free: 1.551 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.704/1.704, allocations: 221.5 MB / 0.7868 GB, free: 13.27 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009459/0.0009458, allocations: 101.1 kB / 0.9269 GB, free: 13.77 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.012e-05/2.015e-05, allocations: 4 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3304, allocations: 143 MB / 1.212 GB, free: 39.47 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.073/1.403, allocations: 149.6 MB / 1.358 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/1.404, allocations: 75.62 kB / 1.358 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01653/1.42, allocations: 6.153 MB / 1.364 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.443e-06/1.42, allocations: 0 / 1.364 GB, free: 32.96 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.014e-05/1.42, allocations: 3.75 kB / 1.364 GB, free: 32.96 MB / 0.8386 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.000588/1.421, allocations: 0.5445 MB / 1.365 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/1.421, allocations: 7.688 kB / 1.365 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.306e-05/1.421, allocations: 27.22 kB / 1.365 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000173/1.421, allocations: 221.7 kB / 1.365 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/1.421, allocations: 3.906 kB / 1.365 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.212e-05/1.421, allocations: 26.84 kB / 1.365 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001103/1.421, allocations: 42.66 kB / 1.365 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001434/1.422, allocations: 108.3 kB / 1.365 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/1.422, allocations: 3.938 kB / 1.365 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/1.422, allocations: 6.219 kB / 1.365 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/1.422, allocations: 0 / 1.365 GB, free: 32.13 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001007/1.423, allocations: 0.8416 MB / 1.366 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001712/1.423, allocations: 119.2 kB / 1.366 GB, free: 31.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.346e-05/1.423, allocations: 45.81 kB / 1.366 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.805e-05/1.423, allocations: 7.922 kB / 1.366 GB, free: 31.5 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000297/1.423, allocations: 172.1 kB / 1.367 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=16): time 1.984e-06/1.423, allocations: 0 / 1.367 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of matching and sorting (n=16): time 0.0004614/1.424, allocations: 161.6 kB / 1.367 GB, free: 31.36 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.443e-05/1.424, allocations: 139.1 kB / 1.367 GB, free: 31.2 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002558/1.424, allocations: 205.6 kB / 1.367 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.862e-05/1.424, allocations: 29.55 kB / 1.367 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/1.424, allocations: 141.3 kB / 1.367 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.256e-05/1.424, allocations: 25.58 kB / 1.367 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/1.424, allocations: 7.375 kB / 1.367 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001389/1.425, allocations: 328.2 kB / 1.368 GB, free: 30.66 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003303/1.425, allocations: 136.6 kB / 1.368 GB, free: 30.65 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003319/1.425, allocations: 203 kB / 1.368 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007361/1.426, allocations: 164.4 kB / 1.368 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/1.426, allocations: 3.938 kB / 1.368 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001348/1.427, allocations: 438.8 kB / 1.369 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 8.657e-05/1.427, allocations: 138.6 kB / 1.369 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.838e-06/1.428, allocations: 7.797 kB / 1.369 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/1.428, allocations: 3.844 kB / 1.369 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.012e-05/1.428, allocations: 10.92 kB / 1.369 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/1.428, allocations: 7.781 kB / 1.369 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008524/1.429, allocations: 150.5 kB / 1.369 GB, free: 30.33 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.565e-05/1.429, allocations: 25.17 kB / 1.369 GB, free: 30.33 MB / 0.8386 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 () * 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.0001467/1.429, allocations: 130.8 kB / 1.369 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.87e-05/1.429, allocations: 15.38 kB / 1.369 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.129e-05/1.429, allocations: 22.92 kB / 1.369 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/1.429, allocations: 3.953 kB / 1.369 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/1.429, allocations: 7.812 kB / 1.369 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/1.429, allocations: 0 / 1.369 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002296/1.429, allocations: 231.8 kB / 1.369 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/1.429, allocations: 0 / 1.369 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.006e-05/1.429, allocations: 10.53 kB / 1.369 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/1.429, allocations: 7.844 kB / 1.369 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/1.429, allocations: 0 / 1.369 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/1.429, allocations: 10.7 kB / 1.369 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/1.429, allocations: 3.938 kB / 1.369 GB, free: 30.02 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003098/1.43, allocations: 239.2 kB / 1.369 GB, free: 29.86 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.07e-05/1.43, allocations: 104.2 kB / 1.37 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.988e-05/1.43, allocations: 3.094 kB / 1.37 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.762e-05/1.43, allocations: 3.812 kB / 1.37 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.095e-05/1.43, allocations: 9.891 kB / 1.37 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/1.43, allocations: 11.3 kB / 1.37 GB, free: 29.75 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001577/1.43, allocations: 155.5 kB / 1.37 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.31e-07/1.43, allocations: 4 kB / 1.37 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005208/1.431, allocations: 68.03 kB / 1.37 GB, free: 29.67 MB / 0.8386 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 () * 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.0001822/1.431, allocations: 115.4 kB / 1.37 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000708/1.431, allocations: 0.5033 MB / 1.37 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/1.431, allocations: 0 / 1.37 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/1.432, allocations: 61.36 kB / 1.37 GB, free: 29.3 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000507/1.432, allocations: 67.73 kB / 1.371 GB, free: 29.29 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005281/1.433, allocations: 229.4 kB / 1.371 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/1.433, allocations: 0.7318 MB / 1.371 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.829e-05/1.433, allocations: 22.69 kB / 1.372 GB, free: 28.46 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.611e-05/1.433, allocations: 22.91 kB / 1.372 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of SimCode: time 9.52e-07/1.433, allocations: 0 / 1.372 GB, free: 28.45 MB / 0.8386 GB Notification: Performance of Templates: time 0.009771/1.443, allocations: 3.805 MB / 1.375 GB, free: 28.14 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches