Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.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: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_LimPID",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.004263/0.004263, allocations: 103.1 kB / 15.73 MB, free: 6.051 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.0009992/0.0009993, allocations: 197.6 kB / 16.68 MB, free: 5.98 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.246/1.246, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.207/2.207, allocations: 390.3 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 62.44 kB / 0.9504 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.2307, allocations: 140.4 MB / 1.087 GB, free: 2.02 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004665/0.2354, allocations: 3.707 MB / 1.091 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002427/0.2379, allocations: 1.325 MB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005234/0.2384, allocations: 35.75 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003668/0.2388, allocations: 126.6 kB / 1.093 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0006551/0.2395, allocations: 176.7 kB / 1.093 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001181/0.2407, allocations: 0.5702 MB / 1.093 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001129/0.2418, allocations: 0.9682 MB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005924/0.2424, allocations: 349.6 kB / 1.095 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00054/0.243, allocations: 362.4 kB / 1.095 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004874/0.2435, allocations: 358 kB / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001854/0.2436, allocations: 76 kB / 1.095 GB, free: 9.953 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001466/0.2438, allocations: 84 kB / 1.095 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.244, allocations: 179.3 kB / 1.096 GB, free: 9.695 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003293/0.2443, allocations: 373.7 kB / 1.096 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0007727/0.2451, allocations: 0.8908 MB / 1.097 GB, free: 8.438 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.2451, allocations: 7.984 kB / 1.097 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2451, allocations: 0 / 1.097 GB, free: 8.43 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.553e-05/0.2451, allocations: 0 / 1.097 GB, free: 8.43 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.002182/0.2473, allocations: 1.179 MB / 1.098 GB, free: 7.195 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.2474, allocations: 8.031 kB / 1.098 GB, free: 7.188 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.2475, allocations: 90.7 kB / 1.098 GB, free: 7.09 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001609/0.2476, allocations: 99.8 kB / 1.098 GB, free: 6.992 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009522/0.2486, allocations: 0.6143 MB / 1.099 GB, free: 6.332 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.2487, allocations: 105 kB / 1.099 GB, free: 6.219 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.625e-05/0.2488, allocations: 56.38 kB / 1.099 GB, free: 6.164 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000985/0.2498, allocations: 0.604 MB / 1.099 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.2498, allocations: 3.938 kB / 1.099 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.154e-05/0.2499, allocations: 24 kB / 1.099 GB, free: 5.484 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.2499, allocations: 15.98 kB / 1.099 GB, free: 5.469 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009119/0.2508, allocations: 423.7 kB / 1.1 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002431/0.2532, allocations: 2.098 MB / 1.102 GB, free: 2.871 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001133/0.2544, allocations: 0.4961 MB / 1.102 GB, free: 2.363 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004376/0.2548, allocations: 218 kB / 1.103 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.244e-05/0.2549, allocations: 4 kB / 1.103 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005978/0.2555, allocations: 281.9 kB / 1.103 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=45): time 2.214e-06/0.2555, allocations: 0 / 1.103 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of matching and sorting (n=45): time 0.001391/0.2569, allocations: 0.6149 MB / 1.104 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.698e-05/0.257, allocations: 88.84 kB / 1.104 GB, free: 1.129 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006219/0.2576, allocations: 0.6061 MB / 1.104 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.823e-05/0.2577, allocations: 37.7 kB / 1.104 GB, free: 480 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.2579, allocations: 364.8 kB / 1.105 GB, free: 112 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.258, allocations: 157.7 kB / 1.105 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.2582, allocations: 98.23 kB / 1.105 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.986e-05/0.2583, allocations: 326 kB / 1.105 GB, free: 15.53 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004219/0.2587, allocations: 179 kB / 1.105 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004827/0.2592, allocations: 280.2 kB / 1.106 GB, free: 15.04 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008641/0.2601, allocations: 479 kB / 1.106 GB, free: 14.54 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.2601, allocations: 4 kB / 1.106 GB, free: 14.53 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001099/0.2612, allocations: 0.5982 MB / 1.107 GB, free: 13.92 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 3.529e-05/0.2612, allocations: 37.7 kB / 1.107 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.2613, allocations: 4 kB / 1.107 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.2613, allocations: 4 kB / 1.107 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004565/0.2617, allocations: 108.1 kB / 1.107 GB, free: 13.77 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.2618, allocations: 8 kB / 1.107 GB, free: 13.76 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003689/0.2621, allocations: 67.41 kB / 1.107 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.2622, allocations: 16 kB / 1.107 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005093/0.2627, allocations: 313.1 kB / 1.107 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004288/0.2631, allocations: 268.2 kB / 1.107 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007754/0.2639, allocations: 454 kB / 1.108 GB, free: 12.58 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.904e-06/0.2639, allocations: 0 / 1.108 GB, free: 12.58 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001005/0.2649, allocations: 0.5787 MB / 1.108 GB, free: 11.99 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.265, allocations: 37.7 kB / 1.108 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.265, allocations: 4 kB / 1.108 GB, free: 11.94 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.889e-06/0.265, allocations: 4 kB / 1.108 GB, free: 11.94 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000426/0.2654, allocations: 107.8 kB / 1.109 GB, free: 11.83 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.2654, allocations: 4 kB / 1.109 GB, free: 11.83 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003405/0.2658, allocations: 47.66 kB / 1.109 GB, free: 11.78 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.061e-05/0.2658, allocations: 20.19 kB / 1.109 GB, free: 11.76 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.000142/0.266, allocations: 216 kB / 1.109 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.778e-05/0.2661, allocations: 79.06 kB / 1.109 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001512/0.2662, allocations: 75.22 kB / 1.109 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.2662, allocations: 8 kB / 1.109 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.2662, allocations: 3.984 kB / 1.109 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.2663, allocations: 0 / 1.109 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005784/0.2668, allocations: 0.6141 MB / 1.11 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.339e-06/0.2668, allocations: 11.98 kB / 1.11 GB, free: 10.7 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004608/0.2673, allocations: 79.89 kB / 1.11 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.2673, allocations: 4 kB / 1.11 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.936e-05/0.2674, allocations: 8 kB / 1.11 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.2674, allocations: 0 / 1.11 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2674, allocations: 0 / 1.11 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.2688, allocations: 0.7352 MB / 1.11 GB, free: 9.855 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/0.269, allocations: 192 kB / 1.111 GB, free: 9.648 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.207e-05/0.2691, allocations: 19.92 kB / 1.111 GB, free: 9.629 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003991/0.2695, allocations: 31.97 kB / 1.111 GB, free: 9.598 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.111e-05/0.2696, allocations: 35.95 kB / 1.111 GB, free: 9.562 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/0.2696, allocations: 11.98 kB / 1.111 GB, free: 9.551 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004391/0.2701, allocations: 435 kB / 1.111 GB, free: 9.133 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.463e-06/0.2701, allocations: 0 / 1.111 GB, free: 9.133 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005361/0.2706, allocations: 215.3 kB / 1.111 GB, free: 8.922 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.001667/0.2723, allocations: 1.289 MB / 1.113 GB, free: 7.602 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001429/0.2737, allocations: 0.7855 MB / 1.113 GB, free: 6.793 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2738, allocations: 0 / 1.113 GB, free: 6.793 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004302/0.2742, allocations: 219.8 kB / 1.114 GB, free: 6.578 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008338/0.275, allocations: 204 kB / 1.114 GB, free: 6.391 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00688/0.2819, allocations: 5.355 MB / 1.119 GB, free: 0.8828 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.2823, allocations: 0.9217 MB / 1.12 GB, free: 15.93 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.000344/0.2827, allocations: 93.11 kB / 1.12 GB, free: 15.84 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003157/0.283, allocations: 255.4 kB / 1.12 GB, free: 15.59 MB / 0.8887 GB Notification: Performance of SimCode: time 7.31e-07/0.283, allocations: 0 / 1.12 GB, free: 15.59 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03508/0.3181, allocations: 14.05 MB / 1.134 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.242/8.56, allocations: 6.125 kB / 1.134 GB, free: 1.703 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches