Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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.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_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009459/0.0009458, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009612/0.0009613, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.324/2.324, allocations: 390.3 MB / 0.6653 GB, free: 2.883 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000331/0.0003311, allocations: 12 kB / 0.8146 GB, free: 14.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.677/0.6774, allocations: 142.3 MB / 0.9535 GB, free: 8.082 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale): time 0.001789/0.6792, allocations: 1.598 MB / 0.9551 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002128/0.6814, allocations: 1.538 MB / 0.9566 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000271/0.6817, allocations: 12.5 kB / 0.9566 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 7.477e-05/0.6817, allocations: 35.58 kB / 0.9566 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002569/0.682, allocations: 78.8 kB / 0.9567 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006589/0.6827, allocations: 233.7 kB / 0.9569 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004645/0.6831, allocations: 380.5 kB / 0.9573 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003528/0.6835, allocations: 232.4 kB / 0.9575 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.6837, allocations: 168 kB / 0.9577 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.6839, allocations: 195.7 kB / 0.9579 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.096e-05/0.6839, allocations: 19.84 kB / 0.9579 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.609e-05/0.684, allocations: 32.98 kB / 0.9579 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.421e-05/0.6841, allocations: 78.08 kB / 0.958 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.665e-05/0.6842, allocations: 110.7 kB / 0.9581 GB, free: 4.496 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004122/0.6846, allocations: 0.6073 MB / 0.9587 GB, free: 4 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.6846, allocations: 0 / 0.9587 GB, free: 4 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.214e-06/0.6846, allocations: 1.312 kB / 0.9587 GB, free: 4 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.969e-06/0.6846, allocations: 0 / 0.9587 GB, free: 4 MB / 0.7169 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.001244/0.6859, allocations: 0.8108 MB / 0.9595 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.686, allocations: 9.469 kB / 0.9595 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.6861, allocations: 73.22 kB / 0.9596 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.6865, allocations: 388.8 kB / 0.9599 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.516e-05/0.6866, allocations: 49.09 kB / 0.96 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.694e-05/0.6867, allocations: 61.34 kB / 0.96 GB, free: 2.883 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008093/0.6875, allocations: 499.4 kB / 0.9605 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.6875, allocations: 0 / 0.9605 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.136e-05/0.6876, allocations: 25.48 kB / 0.9605 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.6876, allocations: 15 kB / 0.9606 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006542/0.6882, allocations: 357.7 kB / 0.9609 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002137/0.6904, allocations: 1.583 MB / 0.9624 GB, free: 1.152 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008053/0.6912, allocations: 0.89 MB / 0.9633 GB, free: 376 kB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.6912, allocations: 5 kB / 0.9633 GB, free: 376 kB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004077/0.6917, allocations: 249.7 kB / 0.9636 GB, free: 216 kB / 0.7169 GB Notification: Performance of pre-optimization done (n=47): time 2.214e-06/0.6917, allocations: 1.312 kB / 0.9636 GB, free: 216 kB / 0.7169 GB Notification: Performance of matching and sorting (n=47): time 0.001041/0.6927, allocations: 0.5442 MB / 0.9641 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.375e-05/0.6928, allocations: 108.8 kB / 0.9642 GB, free: 15.82 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004632/0.6933, allocations: 390.3 kB / 0.9646 GB, free: 15.57 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.381e-05/0.6933, allocations: 37.55 kB / 0.9646 GB, free: 15.53 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000195/0.6935, allocations: 253.2 kB / 0.9648 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.6937, allocations: 158.3 kB / 0.965 GB, free: 15.17 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.949e-05/0.6937, allocations: 15.41 kB / 0.965 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000152/0.6939, allocations: 355.4 kB / 0.9654 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004467/0.6943, allocations: 179.7 kB / 0.9655 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005007/0.6948, allocations: 288.1 kB / 0.9658 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004772/0.6953, allocations: 231.5 kB / 0.966 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.6953, allocations: 4.969 kB / 0.966 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001151/0.6965, allocations: 0.5832 MB / 0.9666 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003239/0.6968, allocations: 0.7294 MB / 0.9673 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.6969, allocations: 2.031 kB / 0.9673 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.6969, allocations: 8.25 kB / 0.9673 GB, free: 13.29 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004213/0.6973, allocations: 104 kB / 0.9674 GB, free: 13.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.17e-05/0.6973, allocations: 8.188 kB / 0.9674 GB, free: 13.26 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004413/0.6978, allocations: 104.8 kB / 0.9675 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.7e-05/0.6978, allocations: 18.53 kB / 0.9675 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.175e-06/0.6978, allocations: 4.281 kB / 0.9675 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008237/0.6987, allocations: 479.3 kB / 0.968 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.6987, allocations: 2.062 kB / 0.968 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.182e-06/0.6987, allocations: 4.406 kB / 0.968 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003266/0.699, allocations: 83.09 kB / 0.9681 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.699, allocations: 3.375 kB / 0.9681 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003888/0.6994, allocations: 85.92 kB / 0.9682 GB, free: 12.9 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-05/0.6995, allocations: 26.8 kB / 0.9682 GB, free: 12.89 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y,pidNoSca.con1.y,pidSca.con1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * 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.0002844/0.6998, allocations: 256.5 kB / 0.9684 GB, free: 12.66 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.43e-05/0.6998, allocations: 44.66 kB / 0.9685 GB, free: 12.63 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008491/0.7007, allocations: 445.5 kB / 0.9689 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.7007, allocations: 7.906 kB / 0.9689 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.7007, allocations: 1 kB / 0.9689 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.7007, allocations: 7.984 kB / 0.9689 GB, free: 12.38 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.7024, allocations: 1.157 MB / 0.9701 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.7024, allocations: 7 kB / 0.9701 GB, free: 11.5 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003426/0.7027, allocations: 88.72 kB / 0.9701 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.288e-05/0.7028, allocations: 8.203 kB / 0.9702 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/0.7028, allocations: 11.94 kB / 0.9702 GB, free: 11.47 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/0.7028, allocations: 7.984 kB / 0.9702 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.7028, allocations: 1.375 kB / 0.9702 GB, free: 11.46 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.7039, allocations: 0.8154 MB / 0.971 GB, free: 10.89 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.601e-05/0.704, allocations: 134.7 kB / 0.9711 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.415e-05/0.7041, allocations: 8.875 kB / 0.9711 GB, free: 10.75 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002404/0.7043, allocations: 38.27 kB / 0.9711 GB, free: 10.73 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.684e-05/0.7044, allocations: 29.97 kB / 0.9712 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-05/0.7044, allocations: 19.36 kB / 0.9712 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002798/0.7047, allocations: 265.5 kB / 0.9714 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7047, allocations: 3.938 kB / 0.9714 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006746/0.7054, allocations: 199.9 kB / 0.9716 GB, free: 10.48 MB / 0.7325 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: 4 ($whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 46 * 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.0002053/0.7056, allocations: 125.9 kB / 0.9718 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001409/0.707, allocations: 0.798 MB / 0.9725 GB, free: 9.934 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.7071, allocations: 1.031 kB / 0.9725 GB, free: 9.934 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003558/0.7074, allocations: 197.6 kB / 0.9727 GB, free: 9.855 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005177/0.7079, allocations: 86.36 kB / 0.9728 GB, free: 9.809 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00156/0.7095, allocations: 1.104 MB / 0.9739 GB, free: 9 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003732/0.7099, allocations: 0.8587 MB / 0.9747 GB, free: 8.223 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002371/0.7101, allocations: 63.22 kB / 0.9748 GB, free: 8.188 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.7103, allocations: 37.09 kB / 0.9748 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of SimCode: time 7.11e-07/0.7103, allocations: 0 / 0.9748 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of Templates: time 0.01014/0.7204, allocations: 5.443 MB / 0.9801 GB, free: 4.188 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches