Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 105.3 kB / 16.27 MB, free: 6.414 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.002005/0.002005, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.368/1.368, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.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.278/2.278, allocations: 390.3 MB / 0.6653 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 63.83 kB / 0.8132 GB, free: 32.99 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2741, allocations: 140.4 MB / 0.9503 GB, free: 8.906 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005195/0.2794, allocations: 4.13 MB / 0.9543 GB, free: 4.746 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002568/0.282, allocations: 1.317 MB / 0.9556 GB, free: 3.422 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004823/0.2825, allocations: 27.88 kB / 0.9556 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003422/0.2828, allocations: 126.7 kB / 0.9557 GB, free: 3.27 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003563/0.2832, allocations: 178.4 kB / 0.9559 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008324/0.2841, allocations: 418.8 kB / 0.9563 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0008179/0.2849, allocations: 0.9554 MB / 0.9572 GB, free: 1.73 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005987/0.2855, allocations: 466.1 kB / 0.9577 GB, free: 1.254 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003415/0.2859, allocations: 322.8 kB / 0.958 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00033/0.2862, allocations: 338.4 kB / 0.9583 GB, free: 0.6055 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.2863, allocations: 96 kB / 0.9584 GB, free: 0.5117 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001073/0.2864, allocations: 88 kB / 0.9585 GB, free: 436 kB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.2866, allocations: 179.3 kB / 0.9587 GB, free: 256 kB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003086/0.2869, allocations: 394.1 kB / 0.959 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0008223/0.2877, allocations: 1.036 MB / 0.96 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2877, allocations: 0 / 0.96 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.633e-06/0.2877, allocations: 0 / 0.96 GB, free: 14.82 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.175e-05/0.2878, allocations: 0 / 0.96 GB, free: 14.82 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001706/0.2895, allocations: 1.077 MB / 0.9611 GB, free: 13.69 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.2895, allocations: 8.031 kB / 0.9611 GB, free: 13.68 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001278/0.2897, allocations: 87.91 kB / 0.9612 GB, free: 13.6 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007634/0.2904, allocations: 0.5456 MB / 0.9617 GB, free: 13.01 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.491e-05/0.2905, allocations: 45.69 kB / 0.9618 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.912e-05/0.2906, allocations: 60.38 kB / 0.9618 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009694/0.2915, allocations: 0.6039 MB / 0.9624 GB, free: 12.28 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.2916, allocations: 4 kB / 0.9624 GB, free: 12.27 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.212e-05/0.2916, allocations: 24 kB / 0.9624 GB, free: 12.25 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.2917, allocations: 16 kB / 0.9624 GB, free: 12.23 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009106/0.2926, allocations: 461 kB / 0.9629 GB, free: 11.79 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002559/0.2951, allocations: 2.012 MB / 0.9649 GB, free: 9.703 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008447/0.296, allocations: 445 kB / 0.9653 GB, free: 9.262 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004144/0.2964, allocations: 234.6 kB / 0.9655 GB, free: 9.027 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 4.045e-05/0.2965, allocations: 12.38 kB / 0.9655 GB, free: 9.016 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005316/0.297, allocations: 265.2 kB / 0.9658 GB, free: 8.746 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=49): time 4.037e-06/0.297, allocations: 0 / 0.9658 GB, free: 8.746 MB / 0.7481 GB Notification: Performance of matching and sorting (n=49): time 0.001214/0.2982, allocations: 0.585 MB / 0.9663 GB, free: 8.152 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.2983, allocations: 67.78 kB / 0.9664 GB, free: 8.074 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004409/0.2987, allocations: 445.9 kB / 0.9668 GB, free: 7.629 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.433e-05/0.2988, allocations: 37.7 kB / 0.9669 GB, free: 7.586 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002108/0.299, allocations: 324.3 kB / 0.9672 GB, free: 7.266 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.2991, allocations: 165.6 kB / 0.9673 GB, free: 7.102 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001398/0.2993, allocations: 94.16 kB / 0.9674 GB, free: 7.004 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.2994, allocations: 362.8 kB / 0.9678 GB, free: 6.641 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003687/0.2998, allocations: 173 kB / 0.9679 GB, free: 6.473 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003998/0.3002, allocations: 245.8 kB / 0.9682 GB, free: 6.203 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007587/0.301, allocations: 456 kB / 0.9686 GB, free: 5.727 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.301, allocations: 0 / 0.9686 GB, free: 5.727 MB / 0.7481 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009715/0.302, allocations: 0.5548 MB / 0.9691 GB, free: 5.16 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.676e-05/0.302, allocations: 41.64 kB / 0.9692 GB, free: 5.113 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.302, allocations: 4 kB / 0.9692 GB, free: 5.109 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.3021, allocations: 4 kB / 0.9692 GB, free: 5.105 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004713/0.3025, allocations: 111.8 kB / 0.9693 GB, free: 4.996 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.544e-05/0.3026, allocations: 7.984 kB / 0.9693 GB, free: 4.988 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003222/0.3029, allocations: 59.52 kB / 0.9694 GB, free: 4.93 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.3029, allocations: 16 kB / 0.9694 GB, free: 4.914 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * 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.0002547/0.3032, allocations: 215 kB / 0.9696 GB, free: 4.695 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.145e-05/0.3033, allocations: 59.28 kB / 0.9696 GB, free: 4.637 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001321/0.3034, allocations: 61.59 kB / 0.9697 GB, free: 4.574 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.3034, allocations: 8 kB / 0.9697 GB, free: 4.566 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.3034, allocations: 0 / 0.9697 GB, free: 4.566 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.3034, allocations: 3.984 kB / 0.9697 GB, free: 4.562 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001663/0.3051, allocations: 1.181 MB / 0.9709 GB, free: 3.324 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.3051, allocations: 0 / 0.9709 GB, free: 3.324 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004433/0.3056, allocations: 91.88 kB / 0.9709 GB, free: 3.234 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.372e-06/0.3056, allocations: 4 kB / 0.971 GB, free: 3.23 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.3056, allocations: 8 kB / 0.971 GB, free: 3.223 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.3056, allocations: 4 kB / 0.971 GB, free: 3.219 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.3056, allocations: 0 / 0.971 GB, free: 3.219 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.3069, allocations: 0.7639 MB / 0.9717 GB, free: 2.438 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001739/0.3071, allocations: 168.4 kB / 0.9719 GB, free: 2.254 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.396e-05/0.3071, allocations: 19.92 kB / 0.9719 GB, free: 2.234 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002719/0.3074, allocations: 19.98 kB / 0.9719 GB, free: 2.215 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.616e-05/0.3075, allocations: 40.39 kB / 0.9719 GB, free: 2.176 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.529e-05/0.3076, allocations: 11.98 kB / 0.972 GB, free: 2.164 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003148/0.3079, allocations: 314.8 kB / 0.9723 GB, free: 1.859 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3079, allocations: 0 / 0.9723 GB, free: 1.859 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004269/0.3083, allocations: 143.4 kB / 0.9724 GB, free: 1.719 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * 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.0001351/0.3085, allocations: 123.1 kB / 0.9725 GB, free: 1.59 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001013/0.3095, allocations: 0.4892 MB / 0.973 GB, free: 1.09 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3095, allocations: 0 / 0.973 GB, free: 1.09 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003863/0.3099, allocations: 218.4 kB / 0.9732 GB, free: 0.875 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007232/0.3106, allocations: 171.2 kB / 0.9734 GB, free: 0.7227 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.3132, allocations: 1.378 MB / 0.9747 GB, free: 15.31 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.3136, allocations: 0.8936 MB / 0.9756 GB, free: 14.39 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.3137, allocations: 47.42 kB / 0.9756 GB, free: 14.34 MB / 0.7637 GB Notification: Performance of SimCode: time 2.7e-07/0.3138, allocations: 0 / 0.9756 GB, free: 14.34 MB / 0.7637 GB Notification: Performance of Templates: time 0.0102/0.324, allocations: 7.58 MB / 0.983 GB, free: 6.797 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches