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/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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01063/0.01063, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.482/1.482, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.624/2.624, allocations: 390.9 MB / 0.6663 GB, free: 2.363 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004408/0.0004408, allocations: 12 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8427/0.8432, allocations: 142.4 MB / 0.9551 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale): time 0.002233/0.8454, allocations: 1.79 MB / 0.9568 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002538/0.848, allocations: 1.671 MB / 0.9584 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002869/0.8483, allocations: 12.75 kB / 0.9585 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002312/0.8486, allocations: 59.66 kB / 0.9585 GB, free: 4.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000194/0.8488, allocations: 61.59 kB / 0.9586 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009457/0.8497, allocations: 374.4 kB / 0.9589 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0005817/0.8503, allocations: 0.7066 MB / 0.9596 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005374/0.8508, allocations: 359.4 kB / 0.96 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002585/0.8511, allocations: 207.2 kB / 0.9602 GB, free: 3.859 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002995/0.8514, allocations: 234.3 kB / 0.9604 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.773e-05/0.8515, allocations: 24.44 kB / 0.9604 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001519/0.8517, allocations: 37.77 kB / 0.9604 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001022/0.8518, allocations: 90.91 kB / 0.9605 GB, free: 3.602 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000292/0.8521, allocations: 269.1 kB / 0.9608 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0008327/0.8529, allocations: 0.8195 MB / 0.9616 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.373e-06/0.8529, allocations: 0 / 0.9616 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.505e-06/0.853, allocations: 0.9688 kB / 0.9616 GB, free: 2.719 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.08e-05/0.853, allocations: 0 / 0.9616 GB, free: 2.719 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.001783/0.8548, allocations: 0.8707 MB / 0.9624 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.759e-05/0.8548, allocations: 9.562 kB / 0.9624 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.855, allocations: 70.5 kB / 0.9625 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005567/0.8556, allocations: 418.8 kB / 0.9629 GB, free: 1.562 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.056e-05/0.8557, allocations: 47.31 kB / 0.963 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/0.8558, allocations: 63.64 kB / 0.963 GB, free: 1.52 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.8569, allocations: 0.5322 MB / 0.9635 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.857, allocations: 1.312 kB / 0.9635 GB, free: 1.195 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.633e-05/0.857, allocations: 28.62 kB / 0.9636 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.414e-05/0.857, allocations: 12.81 kB / 0.9636 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008062/0.8579, allocations: 385.2 kB / 0.9639 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002588/0.8605, allocations: 1.69 MB / 0.9656 GB, free: 15.68 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.8618, allocations: 0.9141 MB / 0.9665 GB, free: 14.88 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005654/0.8624, allocations: 262.5 kB / 0.9667 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 5.447e-05/0.8624, allocations: 5.469 kB / 0.9667 GB, free: 14.75 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006479/0.8631, allocations: 285.3 kB / 0.967 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=53): time 2.786e-06/0.8631, allocations: 3.938 kB / 0.967 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of matching and sorting (n=53): time 0.001384/0.8645, allocations: 0.5999 MB / 0.9676 GB, free: 14.29 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.456e-05/0.8646, allocations: 113.3 kB / 0.9677 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006083/0.8652, allocations: 405.4 kB / 0.9681 GB, free: 13.9 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.631e-05/0.8653, allocations: 39.92 kB / 0.9681 GB, free: 13.86 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002252/0.8655, allocations: 260.7 kB / 0.9684 GB, free: 13.64 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000163/0.8657, allocations: 177.1 kB / 0.9686 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.8658, allocations: 58.44 kB / 0.9686 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001765/0.866, allocations: 361.8 kB / 0.969 GB, free: 13.09 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005645/0.8666, allocations: 217.5 kB / 0.9692 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006062/0.8672, allocations: 316.4 kB / 0.9695 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009436/0.8682, allocations: 0.4983 MB / 0.97 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.8682, allocations: 0.9375 kB / 0.97 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001495/0.8697, allocations: 0.6865 MB / 0.9706 GB, free: 12.08 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001475/0.8698, allocations: 200.8 kB / 0.9708 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.8699, allocations: 1.875 kB / 0.9708 GB, free: 11.86 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.469e-05/0.8699, allocations: 8.328 kB / 0.9708 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000447/0.8703, allocations: 104.2 kB / 0.9709 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.702e-05/0.8704, allocations: 7.531 kB / 0.9709 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007156/0.8711, allocations: 140.9 kB / 0.9711 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.425e-05/0.8712, allocations: 30.45 kB / 0.9711 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.907e-06/0.8712, allocations: 3.812 kB / 0.9711 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001162/0.8723, allocations: 0.5814 MB / 0.9717 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.8724, allocations: 5.906 kB / 0.9717 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.415e-06/0.8724, allocations: 3.969 kB / 0.9717 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00036/0.8727, allocations: 91.17 kB / 0.9718 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.764e-06/0.8728, allocations: 3.594 kB / 0.9718 GB, free: 11.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006001/0.8734, allocations: 125.6 kB / 0.9719 GB, free: 11.35 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.261e-05/0.8734, allocations: 25.73 kB / 0.9719 GB, free: 11.34 MB / 0.7325 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.0004405/0.8739, allocations: 269.3 kB / 0.9722 GB, free: 11.1 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.193e-05/0.874, allocations: 50.14 kB / 0.9722 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000983/0.875, allocations: 486.6 kB / 0.9727 GB, free: 10.82 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.875, allocations: 8.938 kB / 0.9727 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.875, allocations: 1.062 kB / 0.9727 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.875, allocations: 0 / 0.9727 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002063/0.8771, allocations: 1.236 MB / 0.9739 GB, free: 9.902 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.8771, allocations: 1.188 kB / 0.9739 GB, free: 9.902 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000394/0.8775, allocations: 96.8 kB / 0.974 GB, free: 9.875 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.646e-06/0.8775, allocations: 8.328 kB / 0.974 GB, free: 9.871 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.352e-05/0.8775, allocations: 12.88 kB / 0.974 GB, free: 9.863 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.723e-06/0.8776, allocations: 7 kB / 0.974 GB, free: 9.859 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.8776, allocations: 6.922 kB / 0.974 GB, free: 9.855 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.879, allocations: 0.8126 MB / 0.9748 GB, free: 9.355 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.8791, allocations: 134.1 kB / 0.9749 GB, free: 9.219 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.801e-05/0.8792, allocations: 13.06 kB / 0.975 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.8794, allocations: 33.88 kB / 0.975 GB, free: 9.195 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.682e-05/0.8795, allocations: 36.55 kB / 0.975 GB, free: 9.172 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.278e-05/0.8795, allocations: 18.28 kB / 0.975 GB, free: 9.168 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003599/0.8799, allocations: 285.5 kB / 0.9753 GB, free: 8.992 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8799, allocations: 0 / 0.9753 GB, free: 8.992 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000813/0.8807, allocations: 224.8 kB / 0.9755 GB, free: 8.93 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: 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.0002598/0.881, allocations: 127.2 kB / 0.9757 GB, free: 8.82 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001809/0.8828, allocations: 1.029 MB / 0.9767 GB, free: 8.207 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.8828, allocations: 1.281 kB / 0.9767 GB, free: 8.207 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003753/0.8832, allocations: 225.2 kB / 0.9769 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007383/0.884, allocations: 98.72 kB / 0.977 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.8857, allocations: 1.242 MB / 0.9782 GB, free: 6.871 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004352/0.8862, allocations: 0.8635 MB / 0.979 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002328/0.8864, allocations: 56.16 kB / 0.9791 GB, free: 5.926 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.8865, allocations: 43.42 kB / 0.9791 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of SimCode: time 3.61e-07/0.8866, allocations: 4 kB / 0.9791 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of Templates: time 0.01276/0.8993, allocations: 7.032 MB / 0.986 GB, free: 14.91 MB / 0.7481 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDWithResetScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches