Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_Continuous_Examples_LimPID",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPID,fileNamePrefix="Buildings_10_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.005746/0.005746, allocations: 96.31 kB / 15.73 MB, free: 6.043 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.001175/0.001175, allocations: 195.3 kB / 16.67 MB, free: 5.969 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.297/1.297, allocations: 222.9 MB / 240.4 MB, free: 4.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.485/2.485, allocations: 437 MB / 0.7105 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 59.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2451, allocations: 151.6 MB / 1.166 GB, free: 7.312 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005038/0.2501, allocations: 3.704 MB / 1.17 GB, free: 3.578 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002471/0.2526, allocations: 1.332 MB / 1.171 GB, free: 2.238 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004443/0.2531, allocations: 23.88 kB / 1.171 GB, free: 2.215 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003426/0.2535, allocations: 130.6 kB / 1.171 GB, free: 2.086 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0005682/0.254, allocations: 182.5 kB / 1.171 GB, free: 1.906 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001198/0.2552, allocations: 0.576 MB / 1.172 GB, free: 1.34 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0009937/0.2562, allocations: 0.9682 MB / 1.173 GB, free: 380 kB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005077/0.2568, allocations: 349.9 kB / 1.173 GB, free: 16 kB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004692/0.2572, allocations: 374.3 kB / 1.174 GB, free: 15.65 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003749/0.2576, allocations: 354.1 kB / 1.174 GB, free: 15.3 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.2577, allocations: 76 kB / 1.174 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 9.728e-05/0.2579, allocations: 84 kB / 1.174 GB, free: 15.14 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001452/0.258, allocations: 179.3 kB / 1.174 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0003011/0.2583, allocations: 381.7 kB / 1.175 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0008006/0.2591, allocations: 0.8944 MB / 1.175 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2591, allocations: 0 / 1.175 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2591, allocations: 0 / 1.175 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.862e-05/0.2592, allocations: 3.938 kB / 1.175 GB, free: 13.69 MB / 0.9356 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.002028/0.2612, allocations: 1.214 MB / 1.177 GB, free: 12.42 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2612, allocations: 8.031 kB / 1.177 GB, free: 12.41 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001042/0.2613, allocations: 90.7 kB / 1.177 GB, free: 12.31 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.2615, allocations: 100.3 kB / 1.177 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009564/0.2625, allocations: 0.6266 MB / 1.177 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.785e-05/0.2626, allocations: 92.97 kB / 1.178 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.927e-05/0.2627, allocations: 60.33 kB / 1.178 GB, free: 11.39 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0011/0.2638, allocations: 0.6079 MB / 1.178 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.2638, allocations: 3.938 kB / 1.178 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.305e-05/0.2639, allocations: 20 kB / 1.178 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.2639, allocations: 16 kB / 1.178 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001017/0.2649, allocations: 427.6 kB / 1.179 GB, free: 10.28 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002644/0.2676, allocations: 2.091 MB / 1.181 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/0.2688, allocations: 0.5048 MB / 1.181 GB, free: 7.59 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004711/0.2693, allocations: 219.2 kB / 1.181 GB, free: 7.375 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.516e-05/0.2693, allocations: 8 kB / 1.181 GB, free: 7.367 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006334/0.27, allocations: 278 kB / 1.182 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=45): time 1.913e-06/0.27, allocations: 0 / 1.182 GB, free: 7.082 MB / 0.9356 GB Notification: Performance of matching and sorting (n=45): time 0.001439/0.2714, allocations: 0.6184 MB / 1.182 GB, free: 6.457 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.2715, allocations: 84.86 kB / 1.182 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006826/0.2722, allocations: 0.6138 MB / 1.183 GB, free: 5.734 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 5.411e-05/0.2722, allocations: 37.7 kB / 1.183 GB, free: 5.691 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/0.2725, allocations: 357.3 kB / 1.183 GB, free: 5.336 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.2727, allocations: 170.5 kB / 1.183 GB, free: 5.168 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.2728, allocations: 90.25 kB / 1.184 GB, free: 5.074 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.2729, allocations: 334 kB / 1.184 GB, free: 4.742 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004656/0.2734, allocations: 179 kB / 1.184 GB, free: 4.566 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005104/0.2739, allocations: 276.2 kB / 1.184 GB, free: 4.258 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009337/0.2749, allocations: 485.8 kB / 1.185 GB, free: 3.742 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.2749, allocations: 0 / 1.185 GB, free: 3.742 MB / 0.9356 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001189/0.2761, allocations: 0.6026 MB / 1.185 GB, free: 3.125 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.577e-05/0.2761, allocations: 37.69 kB / 1.185 GB, free: 3.082 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2761, allocations: 0 / 1.185 GB, free: 3.082 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.2762, allocations: 12 kB / 1.185 GB, free: 3.07 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004926/0.2767, allocations: 103.9 kB / 1.186 GB, free: 2.969 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.2767, allocations: 8.188 kB / 1.186 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003768/0.2771, allocations: 67.59 kB / 1.186 GB, free: 2.895 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.2771, allocations: 20 kB / 1.186 GB, free: 2.875 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005217/0.2776, allocations: 313.1 kB / 1.186 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004413/0.2781, allocations: 272.2 kB / 1.186 GB, free: 2.266 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008109/0.2789, allocations: 454 kB / 1.187 GB, free: 1.785 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.973e-06/0.2789, allocations: 3.938 kB / 1.187 GB, free: 1.781 MB / 0.9356 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001047/0.28, allocations: 0.5793 MB / 1.187 GB, free: 1.191 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.28, allocations: 33.7 kB / 1.187 GB, free: 1.152 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.28, allocations: 4 kB / 1.187 GB, free: 1.148 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.43e-06/0.28, allocations: 4 kB / 1.187 GB, free: 1.145 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004396/0.2805, allocations: 103.8 kB / 1.187 GB, free: 1.043 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.325e-06/0.2805, allocations: 8 kB / 1.187 GB, free: 1.035 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003594/0.2809, allocations: 43.77 kB / 1.187 GB, free: 0.9922 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.167e-05/0.2809, allocations: 20 kB / 1.187 GB, free: 0.9727 MB / 0.9356 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.0001465/0.2811, allocations: 224.1 kB / 1.188 GB, free: 0.7461 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.424e-05/0.2812, allocations: 75.48 kB / 1.188 GB, free: 0.6719 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001349/0.2813, allocations: 79.22 kB / 1.188 GB, free: 0.5898 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.2813, allocations: 7.938 kB / 1.188 GB, free: 0.582 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.2813, allocations: 0 / 1.188 GB, free: 0.582 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.2813, allocations: 7.984 kB / 1.188 GB, free: 0.5742 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000596/0.2819, allocations: 0.622 MB / 1.188 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.726e-06/0.2819, allocations: 0 / 1.188 GB, free: 15.9 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004574/0.2824, allocations: 87.88 kB / 1.188 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.2824, allocations: 4 kB / 1.188 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.913e-05/0.2825, allocations: 4 kB / 1.188 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.2825, allocations: 4 kB / 1.188 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2825, allocations: 3.938 kB / 1.188 GB, free: 15.8 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001542/0.284, allocations: 0.7329 MB / 1.189 GB, free: 15.04 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002204/0.2842, allocations: 196.5 kB / 1.189 GB, free: 14.83 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.585e-05/0.2843, allocations: 8 kB / 1.189 GB, free: 14.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000431/0.2848, allocations: 39.95 kB / 1.189 GB, free: 14.78 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.984e-05/0.2849, allocations: 27.95 kB / 1.189 GB, free: 14.75 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.334e-05/0.2849, allocations: 19.98 kB / 1.189 GB, free: 14.73 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0004841/0.2854, allocations: 431.1 kB / 1.19 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2854, allocations: 0 / 1.19 GB, free: 14.32 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0005811/0.286, allocations: 215.5 kB / 1.19 GB, free: 14.11 MB / 0.9512 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.001739/0.2877, allocations: 1.293 MB / 1.191 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001505/0.2892, allocations: 0.7894 MB / 1.192 GB, free: 11.97 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2893, allocations: 0 / 1.192 GB, free: 11.97 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0004527/0.2897, allocations: 211.5 kB / 1.192 GB, free: 11.77 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008535/0.2906, allocations: 208.9 kB / 1.193 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007485/0.2981, allocations: 5.386 MB / 1.198 GB, free: 6.035 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.2985, allocations: 0.918 MB / 1.199 GB, free: 5.09 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0003523/0.2989, allocations: 93.11 kB / 1.199 GB, free: 4.996 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003343/0.2992, allocations: 259.3 kB / 1.199 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of SimCode: time 2.51e-07/0.2992, allocations: 0 / 1.199 GB, free: 4.742 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03558/0.3348, allocations: 14.05 MB / 1.213 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.075/8.41, allocations: 14.17 kB / 1.213 GB, free: 6.848 MB / 0.9669 GB (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Controls_Continuous_Examples_LimPID.fmu > Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPID_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches