Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 187.6 kB / 16.64 MB, free: 6.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.346/1.346, allocations: 205.1 MB / 222.5 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.631/1.631, allocations: 292.3 MB / 0.549 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002066, allocations: 68.31 kB / 0.6718 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.247, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005272/0.2523, allocations: 4.14 MB / 0.7877 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00233/0.2547, allocations: 1.368 MB / 0.789 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004101/0.2552, allocations: 27.88 kB / 0.789 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0003681/0.2556, allocations: 126.7 kB / 0.7891 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0003692/0.2559, allocations: 178.3 kB / 0.7893 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009119/0.2569, allocations: 421.9 kB / 0.7897 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0008805/0.2577, allocations: 0.9554 MB / 0.7907 GB, free: 6.059 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005713/0.2583, allocations: 462.3 kB / 0.7911 GB, free: 5.586 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00029/0.2586, allocations: 326.8 kB / 0.7914 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003087/0.2589, allocations: 342.3 kB / 0.7917 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.259, allocations: 92 kB / 0.7918 GB, free: 4.84 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.132e-05/0.2591, allocations: 88 kB / 0.7919 GB, free: 4.754 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001241/0.2593, allocations: 171.5 kB / 0.7921 GB, free: 4.586 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002815/0.2596, allocations: 401.9 kB / 0.7925 GB, free: 4.191 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0008281/0.2604, allocations: 1.051 MB / 0.7935 GB, free: 3.137 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2604, allocations: 0 / 0.7935 GB, free: 3.137 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2604, allocations: 0 / 0.7935 GB, free: 3.137 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.571e-05/0.2604, allocations: 0 / 0.7935 GB, free: 3.137 MB / 0.6075 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.001676/0.2621, allocations: 1.085 MB / 0.7945 GB, free: 1.992 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2622, allocations: 8.031 kB / 0.7945 GB, free: 1.984 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001005/0.2623, allocations: 102.7 kB / 0.7946 GB, free: 1.875 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001115/0.2624, allocations: 83.94 kB / 0.7947 GB, free: 1.793 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007959/0.2632, allocations: 0.569 MB / 0.7953 GB, free: 1.184 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.124e-05/0.2632, allocations: 41.69 kB / 0.7953 GB, free: 1.145 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.141e-05/0.2633, allocations: 56.38 kB / 0.7954 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009562/0.2643, allocations: 0.6116 MB / 0.796 GB, free: 464 kB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.139e-05/0.2643, allocations: 7.844 kB / 0.796 GB, free: 456 kB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.925e-05/0.2644, allocations: 32 kB / 0.796 GB, free: 424 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.2644, allocations: 12 kB / 0.796 GB, free: 412 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008914/0.2653, allocations: 457 kB / 0.7965 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00248/0.2678, allocations: 1.985 MB / 0.7984 GB, free: 13.9 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008387/0.2686, allocations: 441.7 kB / 0.7988 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004096/0.269, allocations: 242.1 kB / 0.799 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 3.648e-05/0.2691, allocations: 4.438 kB / 0.799 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005126/0.2696, allocations: 265.2 kB / 0.7993 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 2.354e-06/0.2696, allocations: 0 / 0.7993 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001203/0.2708, allocations: 0.5882 MB / 0.7999 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/0.2709, allocations: 55.84 kB / 0.7999 GB, free: 12.29 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000432/0.2713, allocations: 450 kB / 0.8004 GB, free: 11.84 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.618e-05/0.2714, allocations: 37.7 kB / 0.8004 GB, free: 11.79 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/0.2716, allocations: 324.2 kB / 0.8007 GB, free: 11.47 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.2717, allocations: 165.6 kB / 0.8009 GB, free: 11.31 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001309/0.2718, allocations: 90.25 kB / 0.8009 GB, free: 11.21 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.272, allocations: 366.8 kB / 0.8013 GB, free: 10.85 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003676/0.2723, allocations: 169 kB / 0.8015 GB, free: 10.68 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003971/0.2727, allocations: 249.7 kB / 0.8017 GB, free: 10.41 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007358/0.2735, allocations: 456 kB / 0.8021 GB, free: 9.934 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2735, allocations: 4 kB / 0.8021 GB, free: 9.93 MB / 0.6231 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009449/0.2744, allocations: 0.5623 MB / 0.8027 GB, free: 9.352 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.2745, allocations: 29.95 kB / 0.8027 GB, free: 9.316 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.2745, allocations: 8 kB / 0.8027 GB, free: 9.309 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.2745, allocations: 7.984 kB / 0.8027 GB, free: 9.301 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004611/0.275, allocations: 107.9 kB / 0.8028 GB, free: 9.195 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.275, allocations: 15.91 kB / 0.8028 GB, free: 9.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003054/0.2753, allocations: 51.52 kB / 0.8029 GB, free: 9.129 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.635e-05/0.2754, allocations: 20 kB / 0.8029 GB, free: 9.109 MB / 0.6231 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.000228/0.2756, allocations: 216.1 kB / 0.8031 GB, free: 8.891 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.789e-05/0.2757, allocations: 59.28 kB / 0.8032 GB, free: 8.832 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.2758, allocations: 69.52 kB / 0.8032 GB, free: 8.762 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.2758, allocations: 4 kB / 0.8032 GB, free: 8.758 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.283e-06/0.2758, allocations: 0 / 0.8032 GB, free: 8.758 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.2758, allocations: 3.984 kB / 0.8033 GB, free: 8.754 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001581/0.2774, allocations: 1.178 MB / 0.8044 GB, free: 7.516 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.2774, allocations: 0 / 0.8044 GB, free: 7.516 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004407/0.2779, allocations: 99.81 kB / 0.8045 GB, free: 7.418 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.2779, allocations: 4 kB / 0.8045 GB, free: 7.414 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.188e-05/0.2779, allocations: 12 kB / 0.8045 GB, free: 7.402 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.278, allocations: 0 / 0.8045 GB, free: 7.402 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.278, allocations: 0 / 0.8045 GB, free: 7.402 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.2792, allocations: 0.7651 MB / 0.8053 GB, free: 6.629 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001597/0.2794, allocations: 168.5 kB / 0.8054 GB, free: 6.445 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.238e-05/0.2795, allocations: 15.98 kB / 0.8054 GB, free: 6.43 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002672/0.2797, allocations: 23.98 kB / 0.8055 GB, free: 6.406 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.31e-05/0.2798, allocations: 32.39 kB / 0.8055 GB, free: 6.375 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.907e-05/0.2799, allocations: 19.98 kB / 0.8055 GB, free: 6.355 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0003304/0.2802, allocations: 306.9 kB / 0.8058 GB, free: 6.059 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2802, allocations: 0 / 0.8058 GB, free: 6.059 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.000425/0.2806, allocations: 143.5 kB / 0.8059 GB, free: 5.918 MB / 0.6231 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.0015/0.2821, allocations: 1.321 MB / 0.8072 GB, free: 4.566 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.000871/0.283, allocations: 485.5 kB / 0.8077 GB, free: 4.078 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.283, allocations: 0 / 0.8077 GB, free: 4.078 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.0003822/0.2834, allocations: 214.4 kB / 0.8079 GB, free: 3.867 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007335/0.2842, allocations: 160.8 kB / 0.808 GB, free: 3.719 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006848/0.291, allocations: 4.779 MB / 0.8127 GB, free: 14.8 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000433/0.2915, allocations: 0.8899 MB / 0.8136 GB, free: 13.88 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0002635/0.2918, allocations: 64.58 kB / 0.8136 GB, free: 13.82 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002938/0.2921, allocations: 219.4 kB / 0.8139 GB, free: 13.6 MB / 0.6387 GB Notification: Performance of SimCode: time 6.51e-07/0.2921, allocations: 0 / 0.8139 GB, free: 13.6 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0282/0.3203, allocations: 11.16 MB / 0.8247 GB, free: 2.621 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.37/8.69, allocations: 8 kB / 0.8248 GB, free: 2.613 MB / 0.6387 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.csv --start-time 0 --stop-time 600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)