Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.489/1.489, allocations: 252 MB / 267.3 MB, free: 10.83 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001178/0.001179, allocations: 188.5 kB / 327 MB, free: 2.086 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.118/2.118, allocations: 205.4 MB / 0.578 GB, free: 20.07 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007895/0.0007895, allocations: 82.42 kB / 0.6826 GB, free: 12.74 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003604/0.0003606, allocations: 12.33 kB / 0.7971 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2365, allocations: 106.3 MB / 0.9009 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004164/0.2408, allocations: 3.735 MB / 0.9046 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.00305/0.2439, allocations: 1.317 MB / 0.9058 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00095/0.2448, allocations: 23.88 kB / 0.9059 GB, free: 58.28 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0005046/0.2454, allocations: 103.2 kB / 0.906 GB, free: 58.18 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0007774/0.2462, allocations: 150.8 kB / 0.9061 GB, free: 58.03 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.2472, allocations: 383.9 kB / 0.9065 GB, free: 57.66 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0008175/0.248, allocations: 0.8656 MB / 0.9073 GB, free: 56.79 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005124/0.2485, allocations: 426.1 kB / 0.9077 GB, free: 56.36 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002513/0.2488, allocations: 238.7 kB / 0.9079 GB, free: 56.12 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002252/0.249, allocations: 246.5 kB / 0.9082 GB, free: 55.88 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 6.056e-05/0.2491, allocations: 24 kB / 0.9082 GB, free: 55.86 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 6.349e-05/0.2492, allocations: 24 kB / 0.9082 GB, free: 55.83 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 8.321e-05/0.2493, allocations: 107.3 kB / 0.9083 GB, free: 55.73 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 0.0002105/0.2495, allocations: 323.8 kB / 0.9086 GB, free: 55.4 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.000588/0.2501, allocations: 0.9731 MB / 0.9096 GB, free: 54.43 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2501, allocations: 0 / 0.9096 GB, free: 54.43 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.793e-06/0.2501, allocations: 0 / 0.9096 GB, free: 54.43 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 1.188e-05/0.2501, allocations: 0 / 0.9096 GB, free: 54.43 MB / 0.6042 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.001464/0.2516, allocations: 0.9455 MB / 0.9105 GB, free: 53.42 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.2516, allocations: 12.03 kB / 0.9105 GB, free: 53.41 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.884e-05/0.2518, allocations: 94.7 kB / 0.9106 GB, free: 53.31 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.2519, allocations: 87.91 kB / 0.9107 GB, free: 53.22 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006867/0.2526, allocations: 0.5534 MB / 0.9112 GB, free: 52.63 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.2526, allocations: 49.69 kB / 0.9113 GB, free: 52.58 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.274e-05/0.2527, allocations: 56.38 kB / 0.9113 GB, free: 52.53 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009338/0.2536, allocations: 0.6115 MB / 0.9119 GB, free: 51.89 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.962e-05/0.2537, allocations: 8 kB / 0.9119 GB, free: 51.88 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.711e-05/0.2537, allocations: 24 kB / 0.912 GB, free: 51.86 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.323e-05/0.2537, allocations: 16 kB / 0.912 GB, free: 51.84 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008687/0.2546, allocations: 469 kB / 0.9124 GB, free: 51.39 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00246/0.2571, allocations: 2.016 MB / 0.9144 GB, free: 49.3 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008076/0.2579, allocations: 457 kB / 0.9148 GB, free: 48.84 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003998/0.2583, allocations: 254 kB / 0.9151 GB, free: 48.59 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.2584, allocations: 8.422 kB / 0.9151 GB, free: 48.59 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005358/0.2589, allocations: 273.2 kB / 0.9153 GB, free: 48.31 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=49): time 2.905e-06/0.2589, allocations: 4 kB / 0.9154 GB, free: 48.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=49): time 0.001215/0.2601, allocations: 0.596 MB / 0.9159 GB, free: 47.7 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.2602, allocations: 59.84 kB / 0.916 GB, free: 47.63 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004045/0.2606, allocations: 446.7 kB / 0.9164 GB, free: 47.18 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 3.492e-05/0.2607, allocations: 41.64 kB / 0.9165 GB, free: 47.14 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001648/0.2608, allocations: 320.3 kB / 0.9168 GB, free: 46.82 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 9.135e-05/0.2609, allocations: 173.5 kB / 0.9169 GB, free: 46.65 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.508e-05/0.261, allocations: 12 kB / 0.9169 GB, free: 46.64 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.891e-05/0.261, allocations: 362.8 kB / 0.9173 GB, free: 46.27 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003392/0.2614, allocations: 177 kB / 0.9175 GB, free: 46.1 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003579/0.2618, allocations: 253.8 kB / 0.9177 GB, free: 45.82 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007055/0.2625, allocations: 456 kB / 0.9181 GB, free: 45.35 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.2625, allocations: 7.984 kB / 0.9181 GB, free: 45.34 MB / 0.6042 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009288/0.2634, allocations: 0.5704 MB / 0.9187 GB, free: 44.75 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 3.651e-05/0.2635, allocations: 37.73 kB / 0.9187 GB, free: 44.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.2635, allocations: 0 / 0.9187 GB, free: 44.71 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.2635, allocations: 8 kB / 0.9187 GB, free: 44.7 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004681/0.264, allocations: 115.8 kB / 0.9188 GB, free: 44.59 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.252e-05/0.264, allocations: 4 kB / 0.9189 GB, free: 44.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003582/0.2644, allocations: 75.48 kB / 0.9189 GB, free: 44.51 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.463e-05/0.2644, allocations: 16 kB / 0.9189 GB, free: 44.5 MB / 0.6042 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 ($whenCondition2,$whenCondition1,conWitRes.trigger.y,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,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.000263/0.2647, allocations: 212.3 kB / 0.9191 GB, free: 44.28 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.358e-05/0.2648, allocations: 59.28 kB / 0.9192 GB, free: 44.22 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001093/0.2649, allocations: 65.58 kB / 0.9193 GB, free: 44.16 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.2649, allocations: 4 kB / 0.9193 GB, free: 44.16 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.807e-06/0.2649, allocations: 4 kB / 0.9193 GB, free: 44.15 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.2649, allocations: 4 kB / 0.9193 GB, free: 44.15 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.2664, allocations: 1.185 MB / 0.9204 GB, free: 42.9 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.2664, allocations: 3.984 kB / 0.9204 GB, free: 42.9 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004388/0.2669, allocations: 91.89 kB / 0.9205 GB, free: 42.81 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.2669, allocations: 4 kB / 0.9205 GB, free: 42.8 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/0.2669, allocations: 12 kB / 0.9205 GB, free: 42.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.267, allocations: 3.984 kB / 0.9205 GB, free: 42.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.267, allocations: 3.984 kB / 0.9205 GB, free: 42.79 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.2681, allocations: 0.7835 MB / 0.9213 GB, free: 41.99 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.2683, allocations: 172.3 kB / 0.9215 GB, free: 41.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.83e-05/0.2684, allocations: 8 kB / 0.9215 GB, free: 41.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000293/0.2687, allocations: 35.97 kB / 0.9215 GB, free: 41.76 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.2688, allocations: 36.33 kB / 0.9216 GB, free: 41.73 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-05/0.2688, allocations: 12.12 kB / 0.9216 GB, free: 41.71 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0003124/0.2691, allocations: 310.9 kB / 0.9219 GB, free: 41.41 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2691, allocations: 4 kB / 0.9219 GB, free: 41.41 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004443/0.2696, allocations: 147.4 kB / 0.922 GB, free: 41.27 MB / 0.6042 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.001374/0.271, allocations: 1.336 MB / 0.9233 GB, free: 39.9 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0008874/0.2719, allocations: 493.1 kB / 0.9238 GB, free: 39.41 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2719, allocations: 0 / 0.9238 GB, free: 39.41 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0003648/0.2723, allocations: 222.9 kB / 0.924 GB, free: 39.18 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007755/0.273, allocations: 145.7 kB / 0.9241 GB, free: 39.04 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006784/0.2798, allocations: 5.227 MB / 0.9292 GB, free: 33.67 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.2802, allocations: 0.8902 MB / 0.9301 GB, free: 32.76 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0003248/0.2805, allocations: 64.58 kB / 0.9302 GB, free: 32.7 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002637/0.2808, allocations: 215.4 kB / 0.9304 GB, free: 32.48 MB / 0.6042 GB Notification: Performance of SimCode: time 1.153e-06/0.2808, allocations: 3.938 kB / 0.9304 GB, free: 32.48 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02382/0.3046, allocations: 10.54 MB / 0.9407 GB, free: 22.17 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/0.3049, allocations: 216.5 kB / 0.9409 GB, free: 21.91 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.592/2.897, allocations: 0 / 0.9409 GB, free: 21.91 MB / 0.6042 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)