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.001334/0.001334, allocations: 105.1 kB / 15.98 MB, free: 6.355 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.001357/0.001357, allocations: 192.5 kB / 16.91 MB, free: 6.191 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.366/1.366, allocations: 222.9 MB / 240.6 MB, free: 15.42 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.28/2.28, allocations: 390.3 MB / 0.665 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 65.39 kB / 0.8127 GB, free: 33.23 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2887, allocations: 140.4 MB / 0.9498 GB, free: 9.238 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.006343/0.2951, allocations: 4.144 MB / 0.9538 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003113/0.2982, allocations: 1.274 MB / 0.9551 GB, free: 3.785 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008985/0.2992, allocations: 23.88 kB / 0.9551 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0005513/0.2997, allocations: 91.22 kB / 0.9552 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0007168/0.3005, allocations: 150.8 kB / 0.9553 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001131/0.3017, allocations: 381.8 kB / 0.9557 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001318/0.303, allocations: 0.9592 MB / 0.9566 GB, free: 2.191 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007654/0.3038, allocations: 458.1 kB / 0.957 GB, free: 1.723 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005451/0.3043, allocations: 330.7 kB / 0.9574 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004847/0.3048, allocations: 334.3 kB / 0.9577 GB, free: 1.07 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001761/0.305, allocations: 92 kB / 0.9578 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.3052, allocations: 88 kB / 0.9579 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001603/0.3053, allocations: 183.4 kB / 0.958 GB, free: 0.7148 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004453/0.3058, allocations: 394 kB / 0.9584 GB, free: 336 kB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000843/0.3066, allocations: 0.846 MB / 0.9592 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.3067, allocations: 4 kB / 0.9592 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3067, allocations: 0 / 0.9592 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 3.461e-05/0.3067, allocations: 0 / 0.9592 GB, free: 15.48 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.002297/0.309, allocations: 1.069 MB / 0.9603 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.3091, allocations: 15.97 kB / 0.9603 GB, free: 14.34 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001965/0.3093, allocations: 87.91 kB / 0.9604 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009287/0.3102, allocations: 0.5417 MB / 0.9609 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.815e-05/0.3103, allocations: 53.67 kB / 0.961 GB, free: 13.61 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.3104, allocations: 56.38 kB / 0.961 GB, free: 13.56 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001163/0.3116, allocations: 0.6117 MB / 0.9616 GB, free: 12.92 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.477e-05/0.3116, allocations: 4 kB / 0.9616 GB, free: 12.92 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.607e-05/0.3117, allocations: 24 kB / 0.9616 GB, free: 12.89 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.3117, allocations: 12 kB / 0.9616 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009749/0.3127, allocations: 457 kB / 0.9621 GB, free: 12.43 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002996/0.3157, allocations: 2.02 MB / 0.9641 GB, free: 10.34 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009063/0.3166, allocations: 449.5 kB / 0.9645 GB, free: 9.898 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004409/0.317, allocations: 238.1 kB / 0.9647 GB, free: 9.66 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 4.705e-05/0.3171, allocations: 8.375 kB / 0.9647 GB, free: 9.652 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006315/0.3177, allocations: 261.3 kB / 0.965 GB, free: 9.387 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=49): time 3.096e-06/0.3178, allocations: 0 / 0.965 GB, free: 9.387 MB / 0.7481 GB Notification: Performance of matching and sorting (n=49): time 0.001282/0.319, allocations: 0.5882 MB / 0.9655 GB, free: 8.789 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.3191, allocations: 55.84 kB / 0.9656 GB, free: 8.723 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004904/0.3196, allocations: 449.9 kB / 0.966 GB, free: 8.273 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.3197, allocations: 29.7 kB / 0.9661 GB, free: 8.238 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002347/0.3199, allocations: 332.2 kB / 0.9664 GB, free: 7.91 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.32, allocations: 165.7 kB / 0.9665 GB, free: 7.746 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.3202, allocations: 98.14 kB / 0.9666 GB, free: 7.645 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3203, allocations: 362.8 kB / 0.967 GB, free: 7.281 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003846/0.3207, allocations: 165 kB / 0.9671 GB, free: 7.121 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004315/0.3212, allocations: 253.8 kB / 0.9674 GB, free: 6.844 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008889/0.3221, allocations: 452 kB / 0.9678 GB, free: 6.371 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3221, allocations: 0 / 0.9678 GB, free: 6.371 MB / 0.7481 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001148/0.3232, allocations: 0.5624 MB / 0.9683 GB, free: 5.797 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 5.165e-05/0.3233, allocations: 37.64 kB / 0.9684 GB, free: 5.754 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.3233, allocations: 4 kB / 0.9684 GB, free: 5.75 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.169e-05/0.3234, allocations: 4 kB / 0.9684 GB, free: 5.746 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005424/0.3239, allocations: 116 kB / 0.9685 GB, free: 5.633 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.737e-05/0.3239, allocations: 8 kB / 0.9685 GB, free: 5.625 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004303/0.3244, allocations: 63.5 kB / 0.9686 GB, free: 5.562 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.985e-05/0.3244, allocations: 23.98 kB / 0.9686 GB, free: 5.539 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.0003935/0.3248, allocations: 217.2 kB / 0.9688 GB, free: 5.32 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.325, allocations: 55.28 kB / 0.9689 GB, free: 5.266 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001506/0.3252, allocations: 61.59 kB / 0.9689 GB, free: 5.203 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.155e-06/0.3252, allocations: 8 kB / 0.9689 GB, free: 5.195 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.3252, allocations: 0 / 0.9689 GB, free: 5.195 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.3252, allocations: 3.984 kB / 0.9689 GB, free: 5.191 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002108/0.3273, allocations: 1.174 MB / 0.9701 GB, free: 3.961 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.3273, allocations: 4 kB / 0.9701 GB, free: 3.957 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005088/0.3279, allocations: 99.81 kB / 0.9702 GB, free: 3.859 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.957e-06/0.3279, allocations: 4 kB / 0.9702 GB, free: 3.855 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.831e-05/0.3279, allocations: 4 kB / 0.9702 GB, free: 3.852 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.997e-06/0.3279, allocations: 8 kB / 0.9702 GB, free: 3.844 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3279, allocations: 3.938 kB / 0.9702 GB, free: 3.84 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.3294, allocations: 0.7601 MB / 0.9709 GB, free: 3.062 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002421/0.3296, allocations: 168.4 kB / 0.9711 GB, free: 2.879 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.852e-05/0.3297, allocations: 15.98 kB / 0.9711 GB, free: 2.863 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003183/0.3301, allocations: 23.92 kB / 0.9711 GB, free: 2.84 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.3302, allocations: 40.38 kB / 0.9712 GB, free: 2.801 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.24e-05/0.3302, allocations: 20 kB / 0.9712 GB, free: 2.781 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004795/0.3307, allocations: 306.9 kB / 0.9715 GB, free: 2.484 MB / 0.7481 GB Notification: Performance of sort global known variables: time 4.81e-07/0.3307, allocations: 0 / 0.9715 GB, free: 2.484 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0005003/0.3312, allocations: 139.4 kB / 0.9716 GB, free: 2.348 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.0002011/0.3314, allocations: 119.1 kB / 0.9717 GB, free: 2.223 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.001161/0.3326, allocations: 0.5009 MB / 0.9722 GB, free: 1.711 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3326, allocations: 0 / 0.9722 GB, free: 1.711 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004339/0.3331, allocations: 214.4 kB / 0.9724 GB, free: 1.5 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008591/0.3339, allocations: 162.9 kB / 0.9726 GB, free: 1.352 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003037/0.337, allocations: 1.632 MB / 0.9742 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005279/0.3375, allocations: 0.8937 MB / 0.975 GB, free: 14.77 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.3377, allocations: 43.44 kB / 0.9751 GB, free: 14.72 MB / 0.7637 GB Notification: Performance of SimCode: time 3.81e-07/0.3377, allocations: 0 / 0.9751 GB, free: 14.72 MB / 0.7637 GB Notification: Performance of Templates: time 0.01273/0.3505, allocations: 7.59 MB / 0.9825 GB, free: 7.168 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