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.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.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.001137/0.001137, allocations: 103 kB / 16.36 MB, free: 6.336 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.001148/0.001148, allocations: 198.3 kB / 17.3 MB, free: 5.883 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.359/1.359, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.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.189/2.189, allocations: 390.3 MB / 0.6655 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 63.03 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2764, allocations: 140.4 MB / 0.9511 GB, free: 8.039 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006221/0.2827, allocations: 4.126 MB / 0.9551 GB, free: 3.891 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002509/0.2852, allocations: 1.309 MB / 0.9564 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004013/0.2856, allocations: 23.88 kB / 0.9564 GB, free: 2.551 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003807/0.286, allocations: 126.7 kB / 0.9566 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003498/0.2864, allocations: 186.4 kB / 0.9567 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009175/0.2874, allocations: 419.3 kB / 0.9571 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001039/0.2884, allocations: 0.9708 MB / 0.9581 GB, free: 0.8594 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007133/0.2891, allocations: 458.1 kB / 0.9585 GB, free: 400 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003724/0.2895, allocations: 326.8 kB / 0.9588 GB, free: 72 kB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005025/0.29, allocations: 334.3 kB / 0.9592 GB, free: 15.74 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0002027/0.2902, allocations: 92 kB / 0.9592 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.2904, allocations: 92 kB / 0.9593 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002273/0.2906, allocations: 183.4 kB / 0.9595 GB, free: 15.38 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0005002/0.2911, allocations: 386 kB / 0.9599 GB, free: 15 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001305/0.2924, allocations: 1.063 MB / 0.9609 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.2924, allocations: 0 / 0.9609 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of FrontEnd: time 4.098e-06/0.2924, allocations: 4 kB / 0.9609 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.325e-05/0.2925, allocations: 3.938 kB / 0.9609 GB, free: 13.93 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.002064/0.2945, allocations: 1.065 MB / 0.962 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.2946, allocations: 8.031 kB / 0.962 GB, free: 12.8 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001513/0.2947, allocations: 91.91 kB / 0.9621 GB, free: 12.71 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001086/0.2958, allocations: 0.5651 MB / 0.9626 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.697e-05/0.2959, allocations: 45.69 kB / 0.9627 GB, free: 12.06 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.751e-05/0.296, allocations: 64.36 kB / 0.9627 GB, free: 12 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.2972, allocations: 0.6078 MB / 0.9633 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.2972, allocations: 0 / 0.9633 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.766e-05/0.2973, allocations: 24 kB / 0.9633 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.2973, allocations: 16 kB / 0.9633 GB, free: 11.32 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009576/0.2982, allocations: 461 kB / 0.9638 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002815/0.3011, allocations: 1.989 MB / 0.9657 GB, free: 8.812 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008944/0.302, allocations: 445 kB / 0.9661 GB, free: 8.371 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004231/0.3024, allocations: 238.6 kB / 0.9664 GB, free: 8.137 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 4.068e-05/0.3025, allocations: 8.438 kB / 0.9664 GB, free: 8.129 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000512/0.303, allocations: 257.3 kB / 0.9666 GB, free: 7.863 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=49): time 2.164e-06/0.303, allocations: 0 / 0.9666 GB, free: 7.863 MB / 0.7481 GB Notification: Performance of matching and sorting (n=49): time 0.001251/0.3043, allocations: 0.5889 MB / 0.9672 GB, free: 7.27 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.3043, allocations: 63.83 kB / 0.9673 GB, free: 7.195 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000524/0.3049, allocations: 441.9 kB / 0.9677 GB, free: 6.754 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.963e-05/0.3049, allocations: 41.69 kB / 0.9677 GB, free: 6.707 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002302/0.3051, allocations: 320.3 kB / 0.968 GB, free: 6.391 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001202/0.3053, allocations: 165.6 kB / 0.9682 GB, free: 6.227 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001466/0.3054, allocations: 94.16 kB / 0.9683 GB, free: 6.129 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.3056, allocations: 366.8 kB / 0.9686 GB, free: 5.762 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003904/0.306, allocations: 169 kB / 0.9688 GB, free: 5.598 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004197/0.3064, allocations: 253.8 kB / 0.969 GB, free: 5.32 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007804/0.3072, allocations: 444 kB / 0.9695 GB, free: 4.855 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.3072, allocations: 3.938 kB / 0.9695 GB, free: 4.852 MB / 0.7481 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001111/0.3083, allocations: 0.5662 MB / 0.97 GB, free: 4.273 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.17e-05/0.3084, allocations: 37.64 kB / 0.97 GB, free: 4.23 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.3084, allocations: 7.938 kB / 0.9701 GB, free: 4.223 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.3084, allocations: 4 kB / 0.9701 GB, free: 4.219 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005434/0.309, allocations: 107.9 kB / 0.9702 GB, free: 4.113 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.309, allocations: 11.92 kB / 0.9702 GB, free: 4.102 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003301/0.3093, allocations: 63.75 kB / 0.9702 GB, free: 4.039 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.752e-05/0.3094, allocations: 16 kB / 0.9703 GB, free: 4.023 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.0002494/0.3096, allocations: 209.3 kB / 0.9705 GB, free: 3.812 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.785e-05/0.3097, allocations: 55.28 kB / 0.9705 GB, free: 3.758 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001368/0.3099, allocations: 65.58 kB / 0.9706 GB, free: 3.691 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.728e-06/0.3099, allocations: 8 kB / 0.9706 GB, free: 3.684 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.3099, allocations: 3.938 kB / 0.9706 GB, free: 3.68 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.3099, allocations: 3.984 kB / 0.9706 GB, free: 3.676 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/0.3116, allocations: 1.178 MB / 0.9717 GB, free: 2.438 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3116, allocations: 0 / 0.9717 GB, free: 2.438 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004745/0.3121, allocations: 91.88 kB / 0.9718 GB, free: 2.348 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.3121, allocations: 4 kB / 0.9718 GB, free: 2.344 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.361e-05/0.3122, allocations: 12 kB / 0.9718 GB, free: 2.332 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.3122, allocations: 11.94 kB / 0.9718 GB, free: 2.32 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3122, allocations: 0 / 0.9718 GB, free: 2.32 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/0.3135, allocations: 0.7573 MB / 0.9726 GB, free: 1.543 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.3137, allocations: 168.4 kB / 0.9727 GB, free: 1.359 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.107e-05/0.3138, allocations: 16 kB / 0.9728 GB, free: 1.344 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002808/0.3141, allocations: 23.97 kB / 0.9728 GB, free: 1.32 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.414e-05/0.3142, allocations: 36.39 kB / 0.9728 GB, free: 1.285 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.727e-05/0.3142, allocations: 11.98 kB / 0.9728 GB, free: 1.273 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003329/0.3145, allocations: 306.9 kB / 0.9731 GB, free: 0.9766 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3146, allocations: 0 / 0.9731 GB, free: 0.9766 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004541/0.315, allocations: 147.4 kB / 0.9733 GB, free: 0.832 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.0001412/0.3152, allocations: 130.5 kB / 0.9734 GB, free: 0.6992 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0009469/0.3161, allocations: 481 kB / 0.9738 GB, free: 228 kB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3161, allocations: 0 / 0.9738 GB, free: 228 kB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004034/0.3165, allocations: 218.9 kB / 0.9741 GB, free: 8 kB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007852/0.3173, allocations: 166 kB / 0.9742 GB, free: 15.86 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00264/0.32, allocations: 1.334 MB / 0.9755 GB, free: 14.49 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005236/0.3205, allocations: 0.8975 MB / 0.9764 GB, free: 13.57 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.000249/0.3208, allocations: 60.58 kB / 0.9765 GB, free: 13.5 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.3209, allocations: 39.44 kB / 0.9765 GB, free: 13.46 MB / 0.7637 GB Notification: Performance of SimCode: time 4.51e-07/0.3209, allocations: 0 / 0.9765 GB, free: 13.46 MB / 0.7637 GB Notification: Performance of Templates: time 0.01121/0.3321, allocations: 5.912 MB / 0.9823 GB, free: 7.633 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 -s gbode -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