Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset") translateModel(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001556/0.001556, allocations: 104.5 kB / 16.41 MB, free: 6.48 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.001639/0.001639, allocations: 189.2 kB / 17.34 MB, free: 5.75 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.417/1.417, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002623/0.002623, allocations: 295.2 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.012/1.012, allocations: 169.2 MB / 0.499 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00274/0.00274, allocations: 95.84 kB / 0.6821 GB, free: 7.039 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4833/0.4861, allocations: 86.98 MB / 0.767 GB, free: 4.008 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset): time 0.005718/0.4918, allocations: 4.134 MB / 0.7711 GB, free: 15.85 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002591/0.4944, allocations: 1.321 MB / 0.7723 GB, free: 14.52 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003798/0.4948, allocations: 23.88 kB / 0.7724 GB, free: 14.5 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0003443/0.4951, allocations: 122.7 kB / 0.7725 GB, free: 14.38 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003555/0.4955, allocations: 190.4 kB / 0.7727 GB, free: 14.19 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008945/0.4964, allocations: 420.2 kB / 0.7731 GB, free: 13.78 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.001018/0.4974, allocations: 0.9554 MB / 0.774 GB, free: 12.82 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005074/0.4979, allocations: 314 kB / 0.7743 GB, free: 12.5 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003786/0.4983, allocations: 334.8 kB / 0.7746 GB, free: 12.18 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003543/0.4986, allocations: 334.3 kB / 0.7749 GB, free: 11.85 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001181/0.4987, allocations: 92 kB / 0.775 GB, free: 11.76 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.4989, allocations: 92 kB / 0.7751 GB, free: 11.67 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001565/0.499, allocations: 179.4 kB / 0.7753 GB, free: 11.49 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003473/0.4994, allocations: 386 kB / 0.7757 GB, free: 11.11 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.5005, allocations: 1.072 MB / 0.7767 GB, free: 10.04 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.5005, allocations: 0 / 0.7767 GB, free: 10.04 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.473e-06/0.5005, allocations: 0 / 0.7767 GB, free: 10.04 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.098e-05/0.5005, allocations: 0 / 0.7767 GB, free: 10.04 MB / 0.545 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.001954/0.5024, allocations: 1.1 MB / 0.7778 GB, free: 8.883 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.5025, allocations: 12.03 kB / 0.7778 GB, free: 8.871 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001537/0.5026, allocations: 84.42 kB / 0.7779 GB, free: 8.789 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009789/0.5036, allocations: 0.5732 MB / 0.7784 GB, free: 8.18 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.679e-05/0.5036, allocations: 45.69 kB / 0.7785 GB, free: 8.137 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001081/0.5038, allocations: 56.38 kB / 0.7785 GB, free: 8.082 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.5049, allocations: 0.6117 MB / 0.7791 GB, free: 7.449 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.5049, allocations: 7.938 kB / 0.7791 GB, free: 7.441 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.935e-05/0.505, allocations: 24 kB / 0.7792 GB, free: 7.418 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.505, allocations: 16 kB / 0.7792 GB, free: 7.402 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.506, allocations: 457 kB / 0.7796 GB, free: 6.953 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003024/0.509, allocations: 1.989 MB / 0.7815 GB, free: 4.895 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009858/0.51, allocations: 438.7 kB / 0.782 GB, free: 4.457 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000463/0.5105, allocations: 226 kB / 0.7822 GB, free: 4.234 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 4.156e-05/0.5105, allocations: 4.438 kB / 0.7822 GB, free: 4.23 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005587/0.5111, allocations: 265.3 kB / 0.7824 GB, free: 3.961 MB / 0.545 GB Notification: Performance of pre-optimization done (n=49): time 2.284e-06/0.5111, allocations: 0 / 0.7824 GB, free: 3.961 MB / 0.545 GB Notification: Performance of matching and sorting (n=49): time 0.001363/0.5125, allocations: 0.5846 MB / 0.783 GB, free: 3.375 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.13e-05/0.5125, allocations: 55.84 kB / 0.7831 GB, free: 3.309 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005256/0.513, allocations: 446 kB / 0.7835 GB, free: 2.863 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.284e-05/0.5131, allocations: 37.7 kB / 0.7835 GB, free: 2.82 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002649/0.5133, allocations: 329.5 kB / 0.7838 GB, free: 2.492 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001501/0.5135, allocations: 174.5 kB / 0.784 GB, free: 2.32 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001502/0.5136, allocations: 90.25 kB / 0.7841 GB, free: 2.223 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001864/0.5138, allocations: 366.8 kB / 0.7844 GB, free: 1.855 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004094/0.5142, allocations: 161 kB / 0.7846 GB, free: 1.699 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004687/0.5147, allocations: 257.8 kB / 0.7848 GB, free: 1.422 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008827/0.5156, allocations: 452 kB / 0.7853 GB, free: 0.9531 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.5156, allocations: 4 kB / 0.7853 GB, free: 0.9492 MB / 0.545 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001116/0.5167, allocations: 0.5549 MB / 0.7858 GB, free: 388 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.03e-05/0.5168, allocations: 45.62 kB / 0.7859 GB, free: 336 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.5168, allocations: 4.25 kB / 0.7859 GB, free: 332 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.787e-05/0.5168, allocations: 8 kB / 0.7859 GB, free: 324 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005099/0.5173, allocations: 107.9 kB / 0.786 GB, free: 216 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/0.5173, allocations: 7.938 kB / 0.786 GB, free: 208 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003337/0.5176, allocations: 59.61 kB / 0.786 GB, free: 148 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.681e-05/0.5177, allocations: 23.98 kB / 0.7861 GB, free: 124 kB / 0.545 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.0003029/0.518, allocations: 211.5 kB / 0.7863 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.781e-05/0.5181, allocations: 59.61 kB / 0.7863 GB, free: 15.84 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001467/0.5182, allocations: 69.58 kB / 0.7864 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.5182, allocations: 4 kB / 0.7864 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.5182, allocations: 0 / 0.7864 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.5182, allocations: 0 / 0.7864 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001885/0.5201, allocations: 1.178 MB / 0.7875 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.5201, allocations: 7.938 kB / 0.7875 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005025/0.5206, allocations: 99.81 kB / 0.7876 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.705e-06/0.5206, allocations: 4 kB / 0.7876 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.456e-05/0.5207, allocations: 8 kB / 0.7877 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.5207, allocations: 4 kB / 0.7877 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5207, allocations: 3.984 kB / 0.7877 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001482/0.5222, allocations: 0.7616 MB / 0.7884 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002169/0.5224, allocations: 172.6 kB / 0.7886 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.433e-05/0.5224, allocations: 12 kB / 0.7886 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003085/0.5227, allocations: 31.91 kB / 0.7886 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.5228, allocations: 32.39 kB / 0.7886 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-05/0.5229, allocations: 12 kB / 0.7887 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003933/0.5233, allocations: 310.9 kB / 0.789 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.5233, allocations: 0 / 0.789 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005028/0.5238, allocations: 151.6 kB / 0.7891 GB, free: 12.92 MB / 0.5606 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.0001579/0.5239, allocations: 113.1 kB / 0.7892 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001018/0.525, allocations: 461.3 kB / 0.7896 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.525, allocations: 0 / 0.7896 GB, free: 12.33 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004466/0.5254, allocations: 206.3 kB / 0.7898 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007926/0.5262, allocations: 157.6 kB / 0.79 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002838/0.529, allocations: 1.355 MB / 0.7913 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005652/0.5296, allocations: 0.886 MB / 0.7922 GB, free: 9.68 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002741/0.5299, allocations: 64.59 kB / 0.7922 GB, free: 9.617 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.53, allocations: 43.44 kB / 0.7923 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of SimCode: time 1.132e-06/0.53, allocations: 0 / 0.7923 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of Templates: time 0.01285/0.5429, allocations: 6.045 MB / 0.7982 GB, free: 3.617 MB / 0.5606 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)