Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.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.Continuous.Validation.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s|pidSca.trigger",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.21/2.21, allocations: 390.5 MB / 398 MB, free: 10.95 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.0009711/0.0009715, allocations: 183.8 kB / 491.2 MB, free: 1.555 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.555/1.555, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001147/0.001147, allocations: 97.92 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.856e-05/1.854e-05, allocations: 12 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.3318, allocations: 143 MB / 1.212 GB, free: 39.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.122/1.453, allocations: 151.4 MB / 1.36 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/1.454, allocations: 80.09 kB / 1.36 GB, free: 17.59 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02788/1.482, allocations: 10.73 MB / 1.371 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.597e-06/1.482, allocations: 0 / 1.371 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 6.737e-05/1.482, allocations: 19.5 kB / 1.371 GB, free: 32.65 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001799/1.484, allocations: 0.8095 MB / 1.372 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/1.484, allocations: 7.719 kB / 1.372 GB, free: 32.08 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003255/1.484, allocations: 73.58 kB / 1.372 GB, free: 32.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007825/1.485, allocations: 402.9 kB / 1.372 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.702e-05/1.485, allocations: 19.28 kB / 1.372 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/1.485, allocations: 45.28 kB / 1.372 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006707/1.486, allocations: 287.7 kB / 1.372 GB, free: 31.79 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007306/1.486, allocations: 427.9 kB / 1.373 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/1.486, allocations: 3.984 kB / 1.373 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.91e-05/1.487, allocations: 0 / 1.373 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/1.487, allocations: 15.44 kB / 1.373 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/1.489, allocations: 1.59 MB / 1.374 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005964/1.49, allocations: 0.8208 MB / 1.375 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002312/1.49, allocations: 203 kB / 1.375 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.013e-05/1.49, allocations: 6.703 kB / 1.375 GB, free: 30.56 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003558/1.49, allocations: 238.7 kB / 1.376 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=53): time 2.144e-06/1.49, allocations: 0 / 1.376 GB, free: 30.5 MB / 0.8386 GB Notification: Performance of matching and sorting (n=53): time 0.0005862/1.491, allocations: 364.5 kB / 1.376 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.197e-05/1.491, allocations: 115.1 kB / 1.376 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003046/1.491, allocations: 288.1 kB / 1.376 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.565e-05/1.491, allocations: 36.61 kB / 1.376 GB, free: 30.17 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/1.492, allocations: 260.2 kB / 1.377 GB, free: 30.03 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/1.492, allocations: 163.2 kB / 1.377 GB, free: 29.92 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.335e-05/1.492, allocations: 7.812 kB / 1.377 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001275/1.492, allocations: 353.2 kB / 1.377 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002415/1.492, allocations: 165 kB / 1.377 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000286/1.492, allocations: 256.6 kB / 1.377 GB, free: 29.5 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000466/1.493, allocations: 208.7 kB / 1.378 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/1.493, allocations: 0 / 1.378 GB, free: 29.49 MB / 0.8386 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0008864/1.494, allocations: 0.5269 MB / 1.378 GB, free: 29.42 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002733/1.494, allocations: 0.6739 MB / 1.379 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/1.494, allocations: 0 / 1.379 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/1.494, allocations: 7.688 kB / 1.379 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004031/1.495, allocations: 107.5 kB / 1.379 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/1.495, allocations: 7.781 kB / 1.379 GB, free: 28.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005292/1.495, allocations: 119.2 kB / 1.379 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.303e-05/1.495, allocations: 26.86 kB / 1.379 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 9.698e-06/1.495, allocations: 5.219 kB / 1.379 GB, free: 28.68 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008146/1.496, allocations: 473.6 kB / 1.38 GB, free: 28.65 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/1.496, allocations: 7.734 kB / 1.38 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.022e-06/1.496, allocations: 3.875 kB / 1.38 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002988/1.496, allocations: 87.75 kB / 1.38 GB, free: 28.64 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/1.496, allocations: 10.41 kB / 1.38 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004514/1.497, allocations: 103.5 kB / 1.38 GB, free: 28.61 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.21e-05/1.497, allocations: 24.95 kB / 1.38 GB, free: 28.61 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition6,$whenCondition5,$PRE.booPul.y,booPul.y,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 2 * 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.0001596/1.497, allocations: 124.7 kB / 1.38 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.338e-05/1.497, allocations: 46.66 kB / 1.38 GB, free: 28.47 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006243/1.498, allocations: 381.2 kB / 1.38 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/1.498, allocations: 3.875 kB / 1.38 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-06/1.498, allocations: 2.156 kB / 1.38 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/1.498, allocations: 2.625 kB / 1.38 GB, free: 28.42 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001335/1.499, allocations: 1.057 MB / 1.381 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/1.499, allocations: 4.188 kB / 1.381 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003481/1.499, allocations: 95.12 kB / 1.381 GB, free: 28.04 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.911e-06/1.499, allocations: 3.875 kB / 1.381 GB, free: 28.04 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.59e-05/1.5, allocations: 6.812 kB / 1.381 GB, free: 28.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/1.5, allocations: 3.812 kB / 1.381 GB, free: 28.04 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/1.5, allocations: 0 / 1.381 GB, free: 28.04 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007393/1.5, allocations: 0.7483 MB / 1.382 GB, free: 27.71 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.729e-05/1.5, allocations: 129.7 kB / 1.382 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.189e-05/1.5, allocations: 6.344 kB / 1.382 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002185/1.501, allocations: 19.91 kB / 1.382 GB, free: 27.59 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.22e-05/1.501, allocations: 38.17 kB / 1.382 GB, free: 27.58 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.548e-05/1.501, allocations: 17.27 kB / 1.382 GB, free: 27.58 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002223/1.501, allocations: 233 kB / 1.383 GB, free: 27.49 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.501, allocations: 0 / 1.383 GB, free: 27.49 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006937/1.502, allocations: 208 kB / 1.383 GB, free: 27.45 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 8 ($whenCondition6,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0002245/1.502, allocations: 125.8 kB / 1.383 GB, free: 27.35 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001007/1.503, allocations: 0.9108 MB / 1.384 GB, free: 27.06 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/1.503, allocations: 3.875 kB / 1.384 GB, free: 27.06 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.000198/1.503, allocations: 180.6 kB / 1.384 GB, free: 27.05 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005242/1.504, allocations: 77.72 kB / 1.384 GB, free: 27.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001121/1.505, allocations: 0.7301 MB / 1.385 GB, free: 26.72 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005176/1.505, allocations: 0.8713 MB / 1.386 GB, free: 26.01 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002993/1.506, allocations: 75.83 kB / 1.386 GB, free: 25.99 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.552e-05/1.506, allocations: 37.41 kB / 1.386 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of SimCode: time 4.9e-07/1.506, allocations: 0 / 1.386 GB, free: 25.98 MB / 0.8386 GB Notification: Performance of Templates: time 0.01102/1.517, allocations: 6.47 MB / 1.392 GB, free: 23.16 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches