Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale") translateModel(Buildings.Controls.OBC.CDL.Reals.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_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009556/0.0009556, allocations: 98.88 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001048/0.001048, allocations: 186.9 kB / 16.92 MB, free: 6.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.76/2.76, allocations: 437.8 MB / 0.7128 GB, free: 6.93 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004838/0.0004839, allocations: 8 kB / 0.8735 GB, free: 3.277 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7021/0.7026, allocations: 153.8 MB / 1.024 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale): time 0.002429/0.7051, allocations: 1.79 MB / 1.025 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002493/0.7076, allocations: 1.681 MB / 1.027 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000228/0.7078, allocations: 8 kB / 1.027 GB, free: 12.36 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002244/0.7081, allocations: 63.38 kB / 1.027 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001978/0.7083, allocations: 59.56 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000916/0.7092, allocations: 383 kB / 1.028 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.000636/0.7098, allocations: 0.6997 MB / 1.028 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005131/0.7103, allocations: 357.8 kB / 1.029 GB, free: 10.81 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002234/0.7106, allocations: 210.9 kB / 1.029 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002592/0.7108, allocations: 222.6 kB / 1.029 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.864e-05/0.7109, allocations: 28 kB / 1.029 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.711, allocations: 35.98 kB / 1.029 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.474e-05/0.7111, allocations: 91.47 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002316/0.7114, allocations: 280 kB / 1.029 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005946/0.712, allocations: 0.6681 MB / 1.03 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.712, allocations: 0 / 1.03 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.404e-06/0.712, allocations: 0 / 1.03 GB, free: 9.281 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.247e-06/0.712, allocations: 0 / 1.03 GB, free: 9.281 MB / 0.7794 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.001515/0.7135, allocations: 0.878 MB / 1.031 GB, free: 8.336 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.7136, allocations: 8.031 kB / 1.031 GB, free: 8.328 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.7137, allocations: 72.19 kB / 1.031 GB, free: 8.258 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005037/0.7142, allocations: 417.9 kB / 1.031 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.698e-05/0.7143, allocations: 41.69 kB / 1.031 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.7144, allocations: 68.38 kB / 1.032 GB, free: 7.703 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008962/0.7153, allocations: 0.5275 MB / 1.032 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.7153, allocations: 192 / 1.032 GB, free: 7.16 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.742e-05/0.7154, allocations: 31.88 kB / 1.032 GB, free: 7.129 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.7154, allocations: 16 kB / 1.032 GB, free: 7.113 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007375/0.7161, allocations: 381 kB / 1.032 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/0.7186, allocations: 1.693 MB / 1.034 GB, free: 4.988 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009937/0.7196, allocations: 0.9117 MB / 1.035 GB, free: 3.961 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000399/0.72, allocations: 257.5 kB / 1.035 GB, free: 3.707 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.518e-05/0.7201, allocations: 12.42 kB / 1.035 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005241/0.7206, allocations: 277.3 kB / 1.036 GB, free: 3.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=53): time 1.943e-06/0.7206, allocations: 0 / 1.036 GB, free: 3.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=53): time 0.001152/0.7218, allocations: 0.6116 MB / 1.036 GB, free: 2.793 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.326e-05/0.7219, allocations: 111.2 kB / 1.036 GB, free: 2.66 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004225/0.7223, allocations: 397.6 kB / 1.037 GB, free: 2.262 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 5.789e-05/0.7224, allocations: 49.64 kB / 1.037 GB, free: 2.207 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001853/0.7225, allocations: 261 kB / 1.037 GB, free: 1.949 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.7227, allocations: 173.5 kB / 1.037 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.476e-05/0.7228, allocations: 53.69 kB / 1.037 GB, free: 1.719 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.7229, allocations: 370.7 kB / 1.037 GB, free: 1.348 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004678/0.7234, allocations: 213 kB / 1.038 GB, free: 1.137 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005344/0.7239, allocations: 311.4 kB / 1.038 GB, free: 0.8047 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008178/0.7248, allocations: 0.5112 MB / 1.038 GB, free: 264 kB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.7248, allocations: 0 / 1.038 GB, free: 264 kB / 0.7794 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001358/0.7261, allocations: 0.6808 MB / 1.039 GB, free: 15.55 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/0.7263, allocations: 203.5 kB / 1.039 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.7263, allocations: 0 / 1.039 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.7263, allocations: 4 kB / 1.039 GB, free: 15.32 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004059/0.7267, allocations: 103.8 kB / 1.039 GB, free: 15.21 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.7267, allocations: 7.938 kB / 1.039 GB, free: 15.21 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006042/0.7273, allocations: 144.8 kB / 1.04 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.584e-05/0.7274, allocations: 31.98 kB / 1.04 GB, free: 15.04 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.382e-06/0.7274, allocations: 4 kB / 1.04 GB, free: 15.03 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009685/0.7284, allocations: 0.5779 MB / 1.04 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.7284, allocations: 0 / 1.04 GB, free: 14.44 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.777e-06/0.7284, allocations: 8.156 kB / 1.04 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003179/0.7288, allocations: 83.91 kB / 1.04 GB, free: 14.35 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.7288, allocations: 7.938 kB / 1.04 GB, free: 14.34 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005556/0.7293, allocations: 129.8 kB / 1.04 GB, free: 14.22 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.866e-05/0.7294, allocations: 27.98 kB / 1.04 GB, free: 14.19 MB / 0.795 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,booPul.y,$PRE.booPul.y,$whenCondition5,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002641/0.7297, allocations: 257.5 kB / 1.041 GB, free: 13.93 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.798e-05/0.7297, allocations: 47.44 kB / 1.041 GB, free: 13.88 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008687/0.7306, allocations: 489.5 kB / 1.041 GB, free: 13.39 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.7306, allocations: 12 kB / 1.041 GB, free: 13.38 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.7306, allocations: 0 / 1.041 GB, free: 13.38 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.7307, allocations: 3.984 kB / 1.041 GB, free: 13.38 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001734/0.7324, allocations: 1.241 MB / 1.042 GB, free: 12.06 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.7324, allocations: 7.984 kB / 1.042 GB, free: 12.05 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003684/0.7328, allocations: 95.77 kB / 1.043 GB, free: 11.96 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.7328, allocations: 4 kB / 1.043 GB, free: 11.96 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-05/0.7328, allocations: 15.98 kB / 1.043 GB, free: 11.94 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.344e-06/0.7329, allocations: 8 kB / 1.043 GB, free: 11.93 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.7329, allocations: 4 kB / 1.043 GB, free: 11.93 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00122/0.7341, allocations: 0.811 MB / 1.043 GB, free: 11.09 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.7342, allocations: 140.3 kB / 1.043 GB, free: 10.93 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.654e-05/0.7343, allocations: 12 kB / 1.043 GB, free: 10.92 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002492/0.7345, allocations: 35.97 kB / 1.044 GB, free: 10.88 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.95e-05/0.7346, allocations: 36.28 kB / 1.044 GB, free: 10.85 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.064e-05/0.7347, allocations: 19.98 kB / 1.044 GB, free: 10.83 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002971/0.735, allocations: 287.2 kB / 1.044 GB, free: 10.55 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.603e-06/0.735, allocations: 0 / 1.044 GB, free: 10.55 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006762/0.7356, allocations: 223.2 kB / 1.044 GB, free: 10.33 MB / 0.795 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002259/0.7359, allocations: 127.1 kB / 1.044 GB, free: 10.2 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001754/0.7376, allocations: 1.024 MB / 1.045 GB, free: 9.125 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.7377, allocations: 0.625 kB / 1.045 GB, free: 9.125 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004272/0.7381, allocations: 246.3 kB / 1.045 GB, free: 8.887 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007546/0.7389, allocations: 95.7 kB / 1.045 GB, free: 8.793 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.7406, allocations: 1.263 MB / 1.047 GB, free: 7.477 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.7411, allocations: 0.8596 MB / 1.048 GB, free: 6.59 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.7413, allocations: 47.44 kB / 1.048 GB, free: 6.543 MB / 0.795 GB Notification: Performance of SimCode: time 6.01e-07/0.7413, allocations: 0 / 1.048 GB, free: 6.543 MB / 0.795 GB Notification: Performance of Templates: time 0.009517/0.7508, allocations: 6.432 MB / 1.054 GB, free: 132 kB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithResetScale.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches