Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.25/2.25, allocations: 387.1 MB / 399.7 MB, free: 9.434 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.0009704/0.0009702, allocations: 180.9 kB / 492.3 MB, free: 0.5898 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.489/1.489, allocations: 221.3 MB / 0.7871 GB, free: 12.88 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.000862/0.0008623, allocations: 103.9 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.748e-05/3.753e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.2997, allocations: 142.3 MB / 1.212 GB, free: 38.46 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.044/1.344, allocations: 151.2 MB / 1.36 GB, free: 18.92 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002348/1.344, allocations: 71.97 kB / 1.36 GB, free: 18.92 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.02736/1.372, allocations: 10.81 MB / 1.371 GB, free: 33.98 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.833e-06/1.372, allocations: 3.938 kB / 1.371 GB, free: 33.97 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.62e-05/1.372, allocations: 15.5 kB / 1.371 GB, free: 33.97 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.001422/1.373, allocations: 0.8083 MB / 1.372 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.535e-05/1.373, allocations: 7.812 kB / 1.372 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/1.373, allocations: 73.53 kB / 1.372 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006879/1.374, allocations: 405.3 kB / 1.372 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.096e-05/1.374, allocations: 48.11 kB / 1.372 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/1.374, allocations: 63.75 kB / 1.372 GB, free: 33.1 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009307/1.375, allocations: 499.2 kB / 1.373 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/1.375, allocations: 4 kB / 1.373 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.998e-05/1.375, allocations: 25.12 kB / 1.373 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.719e-05/1.375, allocations: 11.72 kB / 1.373 GB, free: 33.02 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005378/1.376, allocations: 321.2 kB / 1.373 GB, free: 33 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003026/1.379, allocations: 1.705 MB / 1.375 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007427/1.38, allocations: 0.8376 MB / 1.375 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002823/1.38, allocations: 223 kB / 1.376 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 5.065e-05/1.38, allocations: 10.64 kB / 1.376 GB, free: 31.8 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004123/1.38, allocations: 254.9 kB / 1.376 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=53): time 2.575e-06/1.38, allocations: 0 / 1.376 GB, free: 31.74 MB / 0.8386 GB Notification: Performance of matching and sorting (n=53): time 0.0006613/1.381, allocations: 395.6 kB / 1.376 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.965e-05/1.381, allocations: 114.9 kB / 1.376 GB, free: 31.55 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003755/1.382, allocations: 350.4 kB / 1.377 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.623e-05/1.382, allocations: 46.03 kB / 1.377 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002166/1.382, allocations: 259.6 kB / 1.377 GB, free: 31.28 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001386/1.382, allocations: 168.5 kB / 1.377 GB, free: 31.17 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.604e-05/1.382, allocations: 17.66 kB / 1.377 GB, free: 31.16 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0002008/1.382, allocations: 358 kB / 1.377 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003316/1.383, allocations: 181.5 kB / 1.378 GB, free: 30.85 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003358/1.383, allocations: 276 kB / 1.378 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003297/1.383, allocations: 256.5 kB / 1.378 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/1.383, allocations: 3.953 kB / 1.378 GB, free: 30.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0008194/1.384, allocations: 0.6093 MB / 1.379 GB, free: 30.53 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002942/1.384, allocations: 0.6768 MB / 1.379 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/1.384, allocations: 3.688 kB / 1.379 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/1.384, allocations: 3.656 kB / 1.379 GB, free: 29.83 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004422/1.385, allocations: 101.7 kB / 1.38 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.38e-05/1.385, allocations: 11.8 kB / 1.38 GB, free: 29.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005365/1.386, allocations: 127.6 kB / 1.38 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.499e-05/1.386, allocations: 28.36 kB / 1.38 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.774e-06/1.386, allocations: 7.625 kB / 1.38 GB, free: 29.79 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007551/1.386, allocations: 0.5692 MB / 1.38 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.525e-06/1.386, allocations: 0 / 1.38 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.17e-06/1.386, allocations: 7.562 kB / 1.38 GB, free: 29.69 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/1.387, allocations: 83.59 kB / 1.38 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.63e-06/1.387, allocations: 7.844 kB / 1.38 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00045/1.387, allocations: 128.3 kB / 1.38 GB, free: 29.65 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.026e-05/1.387, allocations: 22.42 kB / 1.381 GB, free: 29.65 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.0001417/1.387, allocations: 139.5 kB / 1.381 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.976e-05/1.387, allocations: 49.81 kB / 1.381 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005858/1.388, allocations: 429.1 kB / 1.381 GB, free: 29.46 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/1.388, allocations: 11.55 kB / 1.381 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/1.388, allocations: 0 / 1.381 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/1.388, allocations: 2.859 kB / 1.381 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001782/1.39, allocations: 1.168 MB / 1.382 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/1.39, allocations: 0 / 1.382 GB, free: 29.06 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00058/1.39, allocations: 95.31 kB / 1.382 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.166e-05/1.39, allocations: 10.03 kB / 1.382 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.707e-05/1.391, allocations: 14.34 kB / 1.382 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.315e-06/1.391, allocations: 5.719 kB / 1.382 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.391, allocations: 0 / 1.382 GB, free: 29.05 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008669/1.391, allocations: 0.7946 MB / 1.383 GB, free: 28.71 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 7.88e-05/1.392, allocations: 137.6 kB / 1.383 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.868e-05/1.392, allocations: 11.53 kB / 1.383 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/1.392, allocations: 31.22 kB / 1.383 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.443e-05/1.392, allocations: 36.77 kB / 1.383 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.933e-05/1.392, allocations: 22.38 kB / 1.383 GB, free: 28.58 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.000263/1.392, allocations: 281.2 kB / 1.384 GB, free: 28.49 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.392, allocations: 3.875 kB / 1.384 GB, free: 28.49 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0006697/1.393, allocations: 228.9 kB / 1.384 GB, free: 28.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.0002618/1.393, allocations: 136.2 kB / 1.384 GB, free: 28.35 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001107/1.394, allocations: 0.9642 MB / 1.385 GB, free: 28.06 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/1.394, allocations: 0 / 1.385 GB, free: 28.06 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002217/1.394, allocations: 193.5 kB / 1.385 GB, free: 28.05 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005256/1.395, allocations: 90.7 kB / 1.385 GB, free: 28.04 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/1.396, allocations: 0.7515 MB / 1.386 GB, free: 27.72 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000389/1.397, allocations: 0.8718 MB / 1.387 GB, free: 27.02 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003196/1.397, allocations: 80.42 kB / 1.387 GB, free: 26.98 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.851e-05/1.397, allocations: 41.55 kB / 1.387 GB, free: 26.97 MB / 0.8386 GB Notification: Performance of SimCode: time 5.91e-07/1.397, allocations: 3.938 kB / 1.387 GB, free: 26.97 MB / 0.8386 GB Notification: Performance of Templates: time 0.01094/1.408, allocations: 7.258 MB / 1.394 GB, free: 23.46 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDWithResetScale.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches