Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.000924/0.0009239, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 177.5 kB / 16.92 MB, free: 6.652 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.4/1.4, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.746/2.746, allocations: 437.8 MB / 0.7128 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003755/0.0003756, allocations: 12 kB / 0.8735 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7481/0.7485, allocations: 153.8 MB / 1.024 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse): time 0.001212/0.7498, allocations: 0.675 MB / 1.024 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002168/0.752, allocations: 1.487 MB / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.7521, allocations: 3.938 kB / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 4.215e-05/0.7522, allocations: 3.938 kB / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000197/0.7524, allocations: 47.62 kB / 1.026 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.001086/0.7535, allocations: 406.5 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004784/0.754, allocations: 431 kB / 1.027 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.7541, allocations: 45.66 kB / 1.027 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002373/0.7543, allocations: 147.6 kB / 1.027 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002051/0.7546, allocations: 115.5 kB / 1.027 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 8.023e-05/0.7547, allocations: 23.94 kB / 1.027 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001042/0.7548, allocations: 39.92 kB / 1.027 GB, free: 12.41 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 3.641e-05/0.7548, allocations: 27.84 kB / 1.027 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.755, allocations: 161.1 kB / 1.027 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003519/0.7554, allocations: 376.9 kB / 1.028 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.7554, allocations: 7.938 kB / 1.028 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.774e-06/0.7554, allocations: 0 / 1.028 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.967e-06/0.7554, allocations: 0 / 1.028 GB, free: 11.85 MB / 0.7794 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.0007888/0.7562, allocations: 0.5656 MB / 1.028 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.7562, allocations: 8.031 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.7564, allocations: 28.75 kB / 1.028 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002139/0.7566, allocations: 226.9 kB / 1.028 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.379e-05/0.7566, allocations: 12.31 kB / 1.028 GB, free: 10.9 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.345e-05/0.7567, allocations: 24.38 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002192/0.7569, allocations: 121.6 kB / 1.029 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.7569, allocations: 4.188 kB / 1.029 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.049e-05/0.757, allocations: 7.922 kB / 1.029 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.757, allocations: 4 kB / 1.029 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001133/0.7571, allocations: 51.92 kB / 1.029 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001015/0.7581, allocations: 0.8756 MB / 1.029 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.7583, allocations: 122.4 kB / 1.03 GB, free: 9.582 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.405e-05/0.7584, allocations: 55.42 kB / 1.03 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.249e-05/0.7584, allocations: 0 / 1.03 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002783/0.7587, allocations: 184.8 kB / 1.03 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=16): time 1.322e-06/0.7587, allocations: 0 / 1.03 GB, free: 9.312 MB / 0.7794 GB Notification: Performance of matching and sorting (n=16): time 0.0004687/0.7592, allocations: 221.4 kB / 1.03 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.247e-05/0.7593, allocations: 140.5 kB / 1.03 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002502/0.7595, allocations: 232.9 kB / 1.03 GB, free: 8.684 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.512e-05/0.7596, allocations: 37.7 kB / 1.03 GB, free: 8.641 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.7597, allocations: 136.5 kB / 1.031 GB, free: 8.504 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.893e-05/0.7598, allocations: 35.55 kB / 1.031 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.828e-05/0.7599, allocations: 45.69 kB / 1.031 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.76, allocations: 330.8 kB / 1.031 GB, free: 8.086 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003153/0.7603, allocations: 152.1 kB / 1.031 GB, free: 7.938 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003369/0.7607, allocations: 218.7 kB / 1.031 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004611/0.7611, allocations: 368.9 kB / 1.032 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.7611, allocations: 0 / 1.032 GB, free: 7.266 MB / 0.7794 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0009357/0.7621, allocations: 0.5586 MB / 1.032 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.7622, allocations: 134.8 kB / 1.032 GB, free: 6.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.7622, allocations: 3.984 kB / 1.032 GB, free: 6.516 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.7622, allocations: 4 kB / 1.032 GB, free: 6.512 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.749e-05/0.7623, allocations: 15.94 kB / 1.032 GB, free: 6.496 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.7623, allocations: 7.938 kB / 1.032 GB, free: 6.488 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007886/0.7631, allocations: 161.7 kB / 1.032 GB, free: 6.332 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.892e-05/0.7632, allocations: 27.98 kB / 1.033 GB, free: 6.305 MB / 0.7794 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.0001784/0.7634, allocations: 147.8 kB / 1.033 GB, free: 6.152 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.59e-05/0.7634, allocations: 27.72 kB / 1.033 GB, free: 6.125 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.527e-05/0.7635, allocations: 21.23 kB / 1.033 GB, free: 6.105 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.7635, allocations: 4 kB / 1.033 GB, free: 6.102 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.7635, allocations: 0 / 1.033 GB, free: 6.102 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.7635, allocations: 3.938 kB / 1.033 GB, free: 6.098 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002783/0.7638, allocations: 257.5 kB / 1.033 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.7638, allocations: 0 / 1.033 GB, free: 5.797 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.708e-05/0.7639, allocations: 15.92 kB / 1.033 GB, free: 5.781 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.7639, allocations: 4 kB / 1.033 GB, free: 5.777 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.7639, allocations: 8 kB / 1.033 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.7639, allocations: 4 kB / 1.033 GB, free: 5.766 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.7639, allocations: 0 / 1.033 GB, free: 5.766 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003022/0.7642, allocations: 220.2 kB / 1.033 GB, free: 5.523 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.299e-05/0.7643, allocations: 92.92 kB / 1.033 GB, free: 5.414 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/0.7644, allocations: 7.984 kB / 1.033 GB, free: 5.406 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.06e-05/0.7644, allocations: 4 kB / 1.033 GB, free: 5.402 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.621e-05/0.7645, allocations: 23.86 kB / 1.033 GB, free: 5.379 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/0.7645, allocations: 11.98 kB / 1.033 GB, free: 5.367 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001724/0.7647, allocations: 164.5 kB / 1.033 GB, free: 5.207 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2e-07/0.7647, allocations: 3.938 kB / 1.033 GB, free: 5.203 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003457/0.765, allocations: 71.92 kB / 1.034 GB, free: 5.133 MB / 0.7794 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.0001939/0.7652, allocations: 111.2 kB / 1.034 GB, free: 5.012 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0007172/0.7659, allocations: 0.5286 MB / 1.034 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.766, allocations: 0 / 1.034 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.7661, allocations: 83.92 kB / 1.034 GB, free: 4.352 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004832/0.7666, allocations: 68.81 kB / 1.034 GB, free: 4.285 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006544/0.7673, allocations: 413.1 kB / 1.035 GB, free: 3.84 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002956/0.7676, allocations: 0.7323 MB / 1.035 GB, free: 3.082 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.158e-05/0.7676, allocations: 15.44 kB / 1.035 GB, free: 3.066 MB / 0.7794 GB Notification: Performance of SimCode: time 5.21e-07/0.7676, allocations: 0 / 1.035 GB, free: 3.066 MB / 0.7794 GB Notification: Performance of Templates: time 0.008263/0.7759, allocations: 3.469 MB / 1.039 GB, free: 15.64 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Integers_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches