Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.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.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.295/2.295, 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.001207/0.001207, allocations: 192.5 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.738/1.738, allocations: 221.5 MB / 0.7868 GB, free: 13.31 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.00104/0.00104, allocations: 91.12 kB / 0.9269 GB, free: 13.81 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.517e-05/2.52e-05, allocations: 8 kB / 1.073 GB, free: 182 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3273/0.3273, allocations: 143 MB / 1.212 GB, free: 39.52 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.005/1.332, allocations: 151.3 MB / 1.36 GB, free: 17.62 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002453/1.332, allocations: 77.02 kB / 1.36 GB, free: 17.62 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0227/1.355, allocations: 9.448 MB / 1.369 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.302e-06/1.355, allocations: 0 / 1.369 GB, free: 32.74 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.64e-05/1.355, allocations: 11.59 kB / 1.369 GB, free: 32.74 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001116/1.356, allocations: 0.7464 MB / 1.37 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 6.955e-05/1.356, allocations: 11.69 kB / 1.37 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001138/1.356, allocations: 69.95 kB / 1.37 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004477/1.357, allocations: 391.5 kB / 1.371 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.969e-05/1.357, allocations: 15.38 kB / 1.371 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.529e-05/1.357, allocations: 37.91 kB / 1.371 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004714/1.357, allocations: 275.3 kB / 1.371 GB, free: 31.92 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005747/1.358, allocations: 396.8 kB / 1.371 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/1.358, allocations: 0 / 1.371 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.431e-05/1.358, allocations: 7.438 kB / 1.371 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/1.358, allocations: 15.5 kB / 1.371 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002149/1.36, allocations: 1.49 MB / 1.373 GB, free: 31.32 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005196/1.361, allocations: 0.8078 MB / 1.374 GB, free: 30.72 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00021/1.361, allocations: 194.9 kB / 1.374 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.28e-05/1.361, allocations: 3.844 kB / 1.374 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003152/1.361, allocations: 216.3 kB / 1.374 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 2.014e-06/1.361, allocations: 0 / 1.374 GB, free: 30.64 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0004944/1.362, allocations: 327.2 kB / 1.374 GB, free: 30.59 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.264e-05/1.362, allocations: 118.2 kB / 1.374 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002625/1.362, allocations: 278.1 kB / 1.375 GB, free: 30.36 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.881e-05/1.362, allocations: 25.7 kB / 1.375 GB, free: 30.32 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002036/1.362, allocations: 259.9 kB / 1.375 GB, free: 30.18 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.872e-05/1.363, allocations: 151.1 kB / 1.375 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.39e-05/1.363, allocations: 0 / 1.375 GB, free: 30.08 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001592/1.363, allocations: 351.4 kB / 1.375 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002007/1.363, allocations: 139.5 kB / 1.376 GB, free: 29.77 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002359/1.363, allocations: 224.7 kB / 1.376 GB, free: 29.68 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003543/1.364, allocations: 169.9 kB / 1.376 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/1.364, allocations: 3.953 kB / 1.376 GB, free: 29.67 MB / 0.8386 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006649/1.364, allocations: 446.3 kB / 1.376 GB, free: 29.6 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002314/1.364, allocations: 0.559 MB / 1.377 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/1.364, allocations: 0 / 1.377 GB, free: 29.02 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/1.364, allocations: 7.75 kB / 1.377 GB, free: 29.01 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003902/1.365, allocations: 103.1 kB / 1.377 GB, free: 29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.598e-06/1.365, allocations: 7.797 kB / 1.377 GB, free: 29 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000368/1.365, allocations: 86.8 kB / 1.377 GB, free: 28.98 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.12e-05/1.365, allocations: 19.12 kB / 1.377 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 7.344e-06/1.365, allocations: 3.812 kB / 1.377 GB, free: 28.97 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005857/1.366, allocations: 377.1 kB / 1.377 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-06/1.366, allocations: 4.031 kB / 1.377 GB, free: 28.96 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.008e-06/1.366, allocations: 7.875 kB / 1.377 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002791/1.366, allocations: 84.98 kB / 1.378 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.787e-06/1.366, allocations: 7.812 kB / 1.378 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002991/1.367, allocations: 70.33 kB / 1.378 GB, free: 28.92 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.91e-05/1.367, allocations: 22.59 kB / 1.378 GB, free: 28.92 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 1 * 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.0001118/1.367, allocations: 111.9 kB / 1.378 GB, free: 28.81 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.428e-05/1.367, allocations: 38.75 kB / 1.378 GB, free: 28.79 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004754/1.367, allocations: 352.2 kB / 1.378 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/1.367, allocations: 3.875 kB / 1.378 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/1.367, allocations: 7.891 kB / 1.378 GB, free: 28.73 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.774e-06/1.367, allocations: 15.05 kB / 1.378 GB, free: 28.72 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/1.368, allocations: 1.003 MB / 1.379 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/1.368, allocations: 3.875 kB / 1.379 GB, free: 28.36 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003293/1.369, allocations: 84.66 kB / 1.379 GB, free: 28.35 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/1.369, allocations: 3.875 kB / 1.379 GB, free: 28.35 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/1.369, allocations: 7.531 kB / 1.379 GB, free: 28.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/1.369, allocations: 6 kB / 1.379 GB, free: 28.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/1.369, allocations: 3.938 kB / 1.379 GB, free: 28.35 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006733/1.37, allocations: 0.6972 MB / 1.38 GB, free: 28.03 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.373e-05/1.37, allocations: 120.7 kB / 1.38 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.399e-05/1.37, allocations: 3.844 kB / 1.38 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/1.37, allocations: 20.91 kB / 1.38 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.192e-05/1.37, allocations: 37.53 kB / 1.38 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/1.37, allocations: 17.78 kB / 1.38 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001801/1.37, allocations: 215.8 kB / 1.38 GB, free: 27.82 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2.1e-07/1.37, allocations: 0 / 1.38 GB, free: 27.82 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005074/1.371, allocations: 181.4 kB / 1.38 GB, free: 27.78 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: 6 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0002508/1.371, allocations: 133.9 kB / 1.381 GB, free: 27.68 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008595/1.372, allocations: 0.6895 MB / 1.381 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/1.372, allocations: 3.969 kB / 1.381 GB, free: 27.52 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001961/1.372, allocations: 161.9 kB / 1.381 GB, free: 27.5 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005268/1.373, allocations: 84.66 kB / 1.382 GB, free: 27.48 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/1.374, allocations: 0.6849 MB / 1.382 GB, free: 27.18 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006008/1.374, allocations: 0.8587 MB / 1.383 GB, free: 26.47 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0003182/1.375, allocations: 71.73 kB / 1.383 GB, free: 26.46 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.556e-05/1.375, allocations: 30.5 kB / 1.383 GB, free: 26.45 MB / 0.8386 GB Notification: Performance of SimCode: time 8.02e-07/1.375, allocations: 0 / 1.383 GB, free: 26.45 MB / 0.8386 GB Notification: Performance of Templates: time 0.01027/1.385, allocations: 5.347 MB / 1.388 GB, free: 24.76 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches