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.001624/0.001624, allocations: 108.9 kB / 16.37 MB, free: 6.465 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.001991/0.001991, allocations: 193.1 kB / 17.31 MB, free: 5.816 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.449/1.449, allocations: 222.9 MB / 241 MB, free: 15.18 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.34/2.34, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 62.42 kB / 0.814 GB, free: 32.62 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2945, allocations: 140.4 MB / 0.9511 GB, free: 8.078 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005634/0.3002, allocations: 4.133 MB / 0.9551 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002739/0.3029, allocations: 1.325 MB / 0.9564 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005602/0.3035, allocations: 19.94 kB / 0.9565 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003699/0.3039, allocations: 130.7 kB / 0.9566 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0004046/0.3044, allocations: 174.4 kB / 0.9568 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009258/0.3053, allocations: 427.2 kB / 0.9572 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001034/0.3063, allocations: 0.9592 MB / 0.9581 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006563/0.307, allocations: 458.1 kB / 0.9585 GB, free: 432 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003908/0.3074, allocations: 330.7 kB / 0.9588 GB, free: 100 kB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000363/0.3078, allocations: 338.5 kB / 0.9592 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.3079, allocations: 88 kB / 0.9593 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001091/0.308, allocations: 95.94 kB / 0.9593 GB, free: 15.58 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001343/0.3082, allocations: 175.5 kB / 0.9595 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003421/0.3085, allocations: 390 kB / 0.9599 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.000928/0.3094, allocations: 1.067 MB / 0.9609 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3095, allocations: 0 / 0.9609 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.542e-06/0.3095, allocations: 0 / 0.9609 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.183e-05/0.3095, allocations: 0 / 0.9609 GB, free: 13.96 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.001821/0.3113, allocations: 1.077 MB / 0.962 GB, free: 12.83 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3114, allocations: 12.03 kB / 0.962 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.3115, allocations: 87.91 kB / 0.9621 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00102/0.3125, allocations: 0.5534 MB / 0.9626 GB, free: 12.14 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.733e-05/0.3126, allocations: 45.69 kB / 0.9627 GB, free: 12.09 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.617e-05/0.3127, allocations: 68.3 kB / 0.9627 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.3137, allocations: 0.604 MB / 0.9633 GB, free: 11.39 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.3138, allocations: 0 / 0.9633 GB, free: 11.39 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.136e-05/0.3138, allocations: 24 kB / 0.9633 GB, free: 11.37 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.3138, allocations: 16 kB / 0.9634 GB, free: 11.36 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009502/0.3148, allocations: 460.9 kB / 0.9638 GB, free: 10.9 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002925/0.3177, allocations: 1.997 MB / 0.9657 GB, free: 8.836 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009133/0.3187, allocations: 441 kB / 0.9662 GB, free: 8.398 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004395/0.3191, allocations: 238.6 kB / 0.9664 GB, free: 8.164 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 4.925e-05/0.3192, allocations: 4.438 kB / 0.9664 GB, free: 8.16 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005349/0.3197, allocations: 269.2 kB / 0.9666 GB, free: 7.883 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=49): time 3.426e-06/0.3197, allocations: 0 / 0.9666 GB, free: 7.883 MB / 0.7481 GB Notification: Performance of matching and sorting (n=49): time 0.001337/0.3211, allocations: 0.5811 MB / 0.9672 GB, free: 7.297 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.834e-05/0.3211, allocations: 59.84 kB / 0.9673 GB, free: 7.227 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005953/0.3217, allocations: 453.8 kB / 0.9677 GB, free: 6.773 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.204e-05/0.3218, allocations: 33.69 kB / 0.9677 GB, free: 6.734 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003077/0.3221, allocations: 320.3 kB / 0.968 GB, free: 6.418 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.3223, allocations: 165.6 kB / 0.9682 GB, free: 6.254 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001529/0.3224, allocations: 98.16 kB / 0.9683 GB, free: 6.152 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.3226, allocations: 362.8 kB / 0.9686 GB, free: 5.789 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00037/0.3229, allocations: 169 kB / 0.9688 GB, free: 5.625 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000411/0.3234, allocations: 249.8 kB / 0.969 GB, free: 5.352 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008175/0.3242, allocations: 455.9 kB / 0.9695 GB, free: 4.875 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3242, allocations: 4 kB / 0.9695 GB, free: 4.871 MB / 0.7481 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001155/0.3254, allocations: 0.5585 MB / 0.97 GB, free: 4.301 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.602e-05/0.3254, allocations: 37.89 kB / 0.9701 GB, free: 4.258 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.3254, allocations: 4 kB / 0.9701 GB, free: 4.254 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.3255, allocations: 4 kB / 0.9701 GB, free: 4.25 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004991/0.326, allocations: 111.8 kB / 0.9702 GB, free: 4.141 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.389e-05/0.326, allocations: 8 kB / 0.9702 GB, free: 4.133 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003412/0.3263, allocations: 55.5 kB / 0.9702 GB, free: 4.078 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.925e-05/0.3264, allocations: 20 kB / 0.9703 GB, free: 4.059 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.0002886/0.3267, allocations: 213.9 kB / 0.9705 GB, free: 3.844 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.487e-05/0.3268, allocations: 59.28 kB / 0.9705 GB, free: 3.785 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001378/0.3269, allocations: 65.58 kB / 0.9706 GB, free: 3.719 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3269, allocations: 4 kB / 0.9706 GB, free: 3.715 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.3269, allocations: 0 / 0.9706 GB, free: 3.715 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.3269, allocations: 3.984 kB / 0.9706 GB, free: 3.711 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001887/0.3288, allocations: 1.182 MB / 0.9717 GB, free: 2.469 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.3289, allocations: 0 / 0.9717 GB, free: 2.469 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004645/0.3293, allocations: 95.88 kB / 0.9718 GB, free: 2.375 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.3293, allocations: 4 kB / 0.9718 GB, free: 2.371 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.351e-05/0.3294, allocations: 12 kB / 0.9718 GB, free: 2.359 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.3294, allocations: 0 / 0.9718 GB, free: 2.359 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.3294, allocations: 0 / 0.9718 GB, free: 2.359 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.3307, allocations: 0.7651 MB / 0.9726 GB, free: 1.574 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/0.3309, allocations: 168.4 kB / 0.9728 GB, free: 1.391 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.36e-05/0.331, allocations: 12 kB / 0.9728 GB, free: 1.379 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003581/0.3314, allocations: 23.97 kB / 0.9728 GB, free: 1.355 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.3315, allocations: 40.39 kB / 0.9728 GB, free: 1.316 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.445e-05/0.3315, allocations: 15.94 kB / 0.9728 GB, free: 1.301 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003726/0.3319, allocations: 310.9 kB / 0.9731 GB, free: 1 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3319, allocations: 0 / 0.9731 GB, free: 1 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005148/0.3324, allocations: 143.4 kB / 0.9733 GB, free: 0.8594 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.0001463/0.3326, allocations: 119.1 kB / 0.9734 GB, free: 0.7344 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0009405/0.3335, allocations: 492.9 kB / 0.9739 GB, free: 252 kB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3335, allocations: 0 / 0.9739 GB, free: 252 kB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004159/0.334, allocations: 214.4 kB / 0.9741 GB, free: 36 kB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008245/0.3348, allocations: 159.8 kB / 0.9742 GB, free: 15.89 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002766/0.3376, allocations: 1.342 MB / 0.9755 GB, free: 14.52 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004765/0.3381, allocations: 0.8937 MB / 0.9764 GB, free: 13.6 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002804/0.3384, allocations: 60.59 kB / 0.9765 GB, free: 13.54 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.3385, allocations: 39.44 kB / 0.9765 GB, free: 13.5 MB / 0.7637 GB Notification: Performance of SimCode: time 6.21e-07/0.3385, allocations: 0 / 0.9765 GB, free: 13.5 MB / 0.7637 GB Notification: Performance of Templates: time 0.0119/0.3504, allocations: 5.903 MB / 0.9823 GB, free: 7.668 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 cvode -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