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.001288/0.001288, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00178/0.001779, allocations: 192.9 kB / 16.25 MB, free: 6.637 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.435/1.435, allocations: 222.9 MB / 239.9 MB, free: 4.512 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.388/2.388, allocations: 390.2 MB / 0.6643 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 63.91 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8889/0.8903, allocations: 140.4 MB / 0.9491 GB, free: 9.039 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.00559/0.8959, allocations: 4.143 MB / 0.9531 GB, free: 5.773 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002521/0.8984, allocations: 1.277 MB / 0.9544 GB, free: 4.719 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004317/0.8989, allocations: 20.88 kB / 0.9544 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003504/0.8993, allocations: 96.95 kB / 0.9545 GB, free: 4.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003446/0.8997, allocations: 143.6 kB / 0.9546 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007867/0.9004, allocations: 378.5 kB / 0.955 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000855/0.9013, allocations: 0.9569 MB / 0.9559 GB, free: 3.609 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000648/0.902, allocations: 467.7 kB / 0.9564 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003793/0.9024, allocations: 338.5 kB / 0.9567 GB, free: 3.102 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002826/0.9026, allocations: 330.5 kB / 0.957 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001204/0.9028, allocations: 91.53 kB / 0.9571 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.9029, allocations: 90.06 kB / 0.9572 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.903, allocations: 175.3 kB / 0.9574 GB, free: 2.699 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002656/0.9033, allocations: 396.2 kB / 0.9577 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0007945/0.9041, allocations: 1.042 MB / 0.9587 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.9041, allocations: 0 / 0.9587 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.753e-06/0.9041, allocations: 0 / 0.9587 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.073e-05/0.9041, allocations: 1.125 kB / 0.9587 GB, free: 1.57 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001722/0.9059, allocations: 1.075 MB / 0.9598 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.9059, allocations: 9.312 kB / 0.9598 GB, free: 0.6992 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001766/0.9061, allocations: 82.12 kB / 0.9599 GB, free: 0.6602 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007327/0.9069, allocations: 0.5549 MB / 0.9604 GB, free: 172 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.405e-05/0.9069, allocations: 41.88 kB / 0.9605 GB, free: 152 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.907, allocations: 66.69 kB / 0.9605 GB, free: 124 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.9082, allocations: 0.6071 MB / 0.9611 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.9082, allocations: 0.9688 kB / 0.9611 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.638e-05/0.9083, allocations: 21.62 kB / 0.9611 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.88e-05/0.9083, allocations: 18.16 kB / 0.9612 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.9093, allocations: 465.1 kB / 0.9616 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003054/0.9124, allocations: 2.006 MB / 0.9636 GB, free: 13.89 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009739/0.9134, allocations: 447.4 kB / 0.964 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004838/0.9139, allocations: 244.1 kB / 0.9642 GB, free: 13.54 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.976e-05/0.914, allocations: 9.469 kB / 0.9642 GB, free: 13.53 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000694/0.9147, allocations: 258.1 kB / 0.9645 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 3.196e-06/0.9147, allocations: 0 / 0.9645 GB, free: 13.36 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001449/0.9161, allocations: 0.5834 MB / 0.9651 GB, free: 13.06 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.9162, allocations: 60.91 kB / 0.9651 GB, free: 13 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006145/0.9168, allocations: 448.2 kB / 0.9655 GB, free: 12.72 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 5.026e-05/0.9169, allocations: 36.33 kB / 0.9656 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/0.9172, allocations: 320.6 kB / 0.9659 GB, free: 12.4 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001622/0.9173, allocations: 165.5 kB / 0.966 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.9175, allocations: 98.53 kB / 0.9661 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001976/0.9177, allocations: 362.9 kB / 0.9665 GB, free: 11.84 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004332/0.9182, allocations: 168.7 kB / 0.9666 GB, free: 11.75 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004777/0.9187, allocations: 250.1 kB / 0.9669 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008742/0.9195, allocations: 451.5 kB / 0.9673 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.9196, allocations: 1.312 kB / 0.9673 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001184/0.9207, allocations: 0.5585 MB / 0.9679 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.983e-05/0.9208, allocations: 39.52 kB / 0.9679 GB, free: 10.94 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.9208, allocations: 3.062 kB / 0.9679 GB, free: 10.94 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.325e-05/0.9208, allocations: 4.719 kB / 0.9679 GB, free: 10.94 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005388/0.9214, allocations: 112.5 kB / 0.968 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.527e-05/0.9214, allocations: 4.844 kB / 0.968 GB, free: 10.91 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004129/0.9218, allocations: 66.91 kB / 0.9681 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.474e-05/0.9219, allocations: 25.83 kB / 0.9681 GB, free: 10.86 MB / 0.7325 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.0003048/0.9222, allocations: 205.6 kB / 0.9683 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.679e-05/0.9223, allocations: 58.81 kB / 0.9683 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001377/0.9224, allocations: 62.42 kB / 0.9684 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.9225, allocations: 4.5 kB / 0.9684 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/0.9225, allocations: 4 kB / 0.9684 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.9225, allocations: 9.141 kB / 0.9684 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001965/0.9245, allocations: 1.178 MB / 0.9696 GB, free: 9.727 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.9245, allocations: 0 / 0.9696 GB, free: 9.727 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004787/0.925, allocations: 95.81 kB / 0.9697 GB, free: 9.703 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.925, allocations: 2.219 kB / 0.9697 GB, free: 9.703 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.62e-05/0.925, allocations: 15.56 kB / 0.9697 GB, free: 9.691 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.352e-06/0.925, allocations: 5.922 kB / 0.9697 GB, free: 9.688 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.925, allocations: 3.984 kB / 0.9697 GB, free: 9.684 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/0.9266, allocations: 0.7626 MB / 0.9704 GB, free: 9.227 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002103/0.9268, allocations: 170.9 kB / 0.9706 GB, free: 9.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.036e-05/0.9269, allocations: 11.12 kB / 0.9706 GB, free: 9.051 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003065/0.9272, allocations: 28.44 kB / 0.9706 GB, free: 9.035 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.9273, allocations: 32.36 kB / 0.9707 GB, free: 9.02 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.288e-05/0.9273, allocations: 13.44 kB / 0.9707 GB, free: 9.016 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004408/0.9278, allocations: 310.8 kB / 0.971 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.124e-06/0.9278, allocations: 0.9062 kB / 0.971 GB, free: 8.824 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005671/0.9284, allocations: 149.9 kB / 0.9711 GB, free: 8.777 MB / 0.7325 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.0002044/0.9286, allocations: 112.9 kB / 0.9712 GB, free: 8.68 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001202/0.9298, allocations: 0.4958 MB / 0.9717 GB, free: 8.41 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.9298, allocations: 4 kB / 0.9717 GB, free: 8.406 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004721/0.9303, allocations: 218.9 kB / 0.9719 GB, free: 8.309 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008173/0.9311, allocations: 151.7 kB / 0.9721 GB, free: 8.234 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003079/0.9342, allocations: 1.608 MB / 0.9736 GB, free: 7.086 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005151/0.9347, allocations: 0.8965 MB / 0.9745 GB, free: 6.293 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0003275/0.9351, allocations: 61.28 kB / 0.9746 GB, free: 6.262 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.9352, allocations: 41.84 kB / 0.9746 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of SimCode: time 6.51e-07/0.9352, allocations: 0 / 0.9746 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of Templates: time 0.01251/0.9477, allocations: 5.817 MB / 0.9803 GB, free: 1.617 MB / 0.7325 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches