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.472/2.472, allocations: 390.3 MB / 402.8 MB, free: 6.652 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.0009714/0.0009714, allocations: 172.8 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.684/1.684, allocations: 221.3 MB / 0.7915 GB, free: 5.363 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.0009783/0.0009781, allocations: 99.88 kB / 0.9318 GB, free: 5.676 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.317e-05/3.319e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3144, allocations: 143 MB / 1.219 GB, free: 13.46 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.047/1.361, allocations: 152.1 MB / 1.367 GB, free: 2.02 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003044/1.362, allocations: 75.64 kB / 1.367 GB, free: 1.98 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.03082/1.393, allocations: 10.81 MB / 1.378 GB, free: 8.746 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.196e-06/1.393, allocations: 0 / 1.378 GB, free: 8.746 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.116e-05/1.393, allocations: 15.94 kB / 1.378 GB, free: 8.73 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.00154/1.394, allocations: 0.8001 MB / 1.379 GB, free: 7.91 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/1.394, allocations: 12.03 kB / 1.379 GB, free: 7.898 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002853/1.395, allocations: 74.2 kB / 1.379 GB, free: 7.828 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007142/1.395, allocations: 401.2 kB / 1.379 GB, free: 7.457 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.937e-05/1.395, allocations: 52.75 kB / 1.379 GB, free: 7.426 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/1.396, allocations: 61.25 kB / 1.379 GB, free: 7.383 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008651/1.396, allocations: 0.4911 MB / 1.38 GB, free: 7.035 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.479e-05/1.396, allocations: 0 / 1.38 GB, free: 7.035 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.424e-05/1.396, allocations: 24.67 kB / 1.38 GB, free: 7.027 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/1.396, allocations: 16 kB / 1.38 GB, free: 7.012 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005553/1.397, allocations: 322.3 kB / 1.38 GB, free: 6.812 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002762/1.4, allocations: 1.704 MB / 1.382 GB, free: 5.438 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008136/1.401, allocations: 0.8428 MB / 1.383 GB, free: 4.609 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003096/1.401, allocations: 220 kB / 1.383 GB, free: 4.473 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.473e-05/1.401, allocations: 8.422 kB / 1.383 GB, free: 4.465 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004324/1.401, allocations: 246.9 kB / 1.383 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=53): time 2.134e-06/1.401, allocations: 0 / 1.383 GB, free: 4.277 MB / 0.8386 GB Notification: Performance of matching and sorting (n=53): time 0.0008044/1.402, allocations: 396.1 kB / 1.383 GB, free: 3.977 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.703e-05/1.402, allocations: 122 kB / 1.384 GB, free: 3.832 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000487/1.403, allocations: 354 kB / 1.384 GB, free: 3.555 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.759e-05/1.403, allocations: 38.89 kB / 1.384 GB, free: 3.52 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002462/1.403, allocations: 258.8 kB / 1.384 GB, free: 3.332 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/1.403, allocations: 171.2 kB / 1.384 GB, free: 3.188 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.591e-05/1.403, allocations: 10.31 kB / 1.384 GB, free: 3.184 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001964/1.404, allocations: 363.7 kB / 1.385 GB, free: 2.84 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003645/1.404, allocations: 183.4 kB / 1.385 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003933/1.404, allocations: 279.3 kB / 1.385 GB, free: 2.504 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004048/1.405, allocations: 253.6 kB / 1.385 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/1.405, allocations: 0 / 1.385 GB, free: 2.316 MB / 0.8386 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00102/1.406, allocations: 0.6183 MB / 1.386 GB, free: 1.832 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004872/1.406, allocations: 0.6732 MB / 1.387 GB, free: 1.113 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/1.406, allocations: 4 kB / 1.387 GB, free: 1.109 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.607e-05/1.406, allocations: 4 kB / 1.387 GB, free: 1.105 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004537/1.407, allocations: 103.3 kB / 1.387 GB, free: 1.008 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/1.407, allocations: 4 kB / 1.387 GB, free: 1.004 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005844/1.408, allocations: 134.5 kB / 1.387 GB, free: 0.8789 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.213e-05/1.408, allocations: 31.44 kB / 1.387 GB, free: 0.8516 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/1.408, allocations: 4 kB / 1.387 GB, free: 0.8477 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008738/1.408, allocations: 0.5626 MB / 1.387 GB, free: 448 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/1.409, allocations: 0 / 1.387 GB, free: 448 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.695e-06/1.409, allocations: 4 kB / 1.387 GB, free: 444 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003285/1.409, allocations: 83.09 kB / 1.388 GB, free: 364 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/1.409, allocations: 7.938 kB / 1.388 GB, free: 356 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005212/1.409, allocations: 126 kB / 1.388 GB, free: 240 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.778e-05/1.409, allocations: 23.3 kB / 1.388 GB, free: 220 kB / 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.0001573/1.41, allocations: 134.1 kB / 1.388 GB, free: 96 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.145e-05/1.41, allocations: 59.28 kB / 1.388 GB, free: 36 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007265/1.41, allocations: 427.6 kB / 1.388 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/1.41, allocations: 4 kB / 1.388 GB, free: 15.75 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/1.41, allocations: 4 kB / 1.388 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/1.41, allocations: 3.984 kB / 1.388 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001637/1.412, allocations: 1.177 MB / 1.389 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/1.412, allocations: 0 / 1.389 GB, free: 14.77 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003718/1.413, allocations: 90.95 kB / 1.389 GB, free: 14.69 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/1.413, allocations: 4 kB / 1.39 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.381e-05/1.413, allocations: 14.62 kB / 1.39 GB, free: 14.68 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/1.413, allocations: 4 kB / 1.39 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/1.413, allocations: 4.188 kB / 1.39 GB, free: 14.67 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009621/1.414, allocations: 0.7891 MB / 1.39 GB, free: 14 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/1.414, allocations: 136 kB / 1.39 GB, free: 13.86 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.776e-05/1.414, allocations: 14.48 kB / 1.39 GB, free: 13.85 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/1.414, allocations: 30.67 kB / 1.39 GB, free: 13.82 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.865e-05/1.414, allocations: 38.91 kB / 1.391 GB, free: 13.79 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-05/1.414, allocations: 19.81 kB / 1.391 GB, free: 13.77 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.0003064/1.414, allocations: 278.7 kB / 1.391 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.81e-07/1.414, allocations: 0 / 1.391 GB, free: 13.56 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0007209/1.415, allocations: 231.8 kB / 1.391 GB, free: 13.36 MB / 0.8542 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.0002912/1.416, allocations: 145.3 kB / 1.391 GB, free: 13.22 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.001415/1.417, allocations: 0.9558 MB / 1.392 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/1.417, allocations: 0 / 1.392 GB, free: 12.46 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003017/1.417, allocations: 198.6 kB / 1.392 GB, free: 12.32 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005811/1.418, allocations: 83.88 kB / 1.392 GB, free: 12.27 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001387/1.419, allocations: 0.7596 MB / 1.393 GB, free: 11.57 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/1.42, allocations: 0.8721 MB / 1.394 GB, free: 10.68 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0003542/1.42, allocations: 82.09 kB / 1.394 GB, free: 10.59 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/1.42, allocations: 43.17 kB / 1.394 GB, free: 10.55 MB / 0.8542 GB Notification: Performance of SimCode: time 5.51e-07/1.42, allocations: 0 / 1.394 GB, free: 10.55 MB / 0.8542 GB Notification: Performance of Templates: time 0.01425/1.434, allocations: 7.273 MB / 1.401 GB, free: 3.355 MB / 0.8542 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