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.006912/0.006912, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001661/0.001661, allocations: 202.4 kB / 16.68 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.243/1.243, allocations: 222.9 MB / 240.4 MB, free: 4.344 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.202/2.202, allocations: 390.3 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 61.77 kB / 0.9504 GB, free: 5.922 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2689, allocations: 140.4 MB / 1.087 GB, free: 2.016 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005034/0.2739, allocations: 3.694 MB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002597/0.2766, allocations: 1.332 MB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005911/0.2772, allocations: 27.88 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004046/0.2776, allocations: 126.6 kB / 1.093 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0007197/0.2783, allocations: 186.5 kB / 1.093 GB, free: 12.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001251/0.2796, allocations: 0.5759 MB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.001116/0.2807, allocations: 0.9682 MB / 1.094 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005673/0.2813, allocations: 349.8 kB / 1.095 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005326/0.2818, allocations: 382.3 kB / 1.095 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004279/0.2823, allocations: 350 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001607/0.2825, allocations: 76 kB / 1.095 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.2826, allocations: 80 kB / 1.095 GB, free: 9.859 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001563/0.2827, allocations: 183.3 kB / 1.096 GB, free: 9.68 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002928/0.283, allocations: 377.7 kB / 1.096 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008224/0.2839, allocations: 0.8983 MB / 1.097 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2839, allocations: 0 / 1.097 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.403e-06/0.2839, allocations: 0 / 1.097 GB, free: 8.406 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.138e-06/0.2839, allocations: 0 / 1.097 GB, free: 8.406 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.001889/0.2858, allocations: 1.214 MB / 1.098 GB, free: 7.137 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.2858, allocations: 8.031 kB / 1.098 GB, free: 7.129 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.496e-05/0.2859, allocations: 94.7 kB / 1.098 GB, free: 7.027 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.2861, allocations: 96.33 kB / 1.098 GB, free: 6.934 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009672/0.2871, allocations: 0.6188 MB / 1.099 GB, free: 6.27 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.921e-05/0.2872, allocations: 101 kB / 1.099 GB, free: 6.16 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.688e-05/0.2873, allocations: 56.38 kB / 1.099 GB, free: 6.105 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.2883, allocations: 0.6078 MB / 1.1 GB, free: 5.449 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.2883, allocations: 3.938 kB / 1.1 GB, free: 5.445 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.958e-05/0.2884, allocations: 24 kB / 1.1 GB, free: 5.422 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.2884, allocations: 12 kB / 1.1 GB, free: 5.41 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009234/0.2893, allocations: 427.6 kB / 1.1 GB, free: 4.996 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002608/0.2919, allocations: 2.091 MB / 1.102 GB, free: 2.816 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/0.2931, allocations: 0.5 MB / 1.102 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000449/0.2936, allocations: 216.8 kB / 1.103 GB, free: 2.09 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-05/0.2936, allocations: 7.984 kB / 1.103 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006129/0.2942, allocations: 289.9 kB / 1.103 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=45): time 1.833e-06/0.2942, allocations: 0 / 1.103 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of matching and sorting (n=45): time 0.00139/0.2956, allocations: 0.6115 MB / 1.104 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.2957, allocations: 92.86 kB / 1.104 GB, free: 1.059 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006441/0.2963, allocations: 0.6138 MB / 1.104 GB, free: 444 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.251e-05/0.2964, allocations: 29.7 kB / 1.104 GB, free: 408 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002444/0.2966, allocations: 369.2 kB / 1.105 GB, free: 36 kB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.2968, allocations: 162.6 kB / 1.105 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/0.2969, allocations: 98.2 kB / 1.105 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001021/0.297, allocations: 330 kB / 1.105 GB, free: 15.45 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004444/0.2975, allocations: 179 kB / 1.105 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004823/0.298, allocations: 281.3 kB / 1.106 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008972/0.2989, allocations: 481.8 kB / 1.106 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.2989, allocations: 3.984 kB / 1.106 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001147/0.3001, allocations: 0.5986 MB / 1.107 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.073e-05/0.3001, allocations: 35.42 kB / 1.107 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.3001, allocations: 4 kB / 1.107 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.3001, allocations: 4 kB / 1.107 GB, free: 13.79 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004591/0.3006, allocations: 103.9 kB / 1.107 GB, free: 13.69 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.3006, allocations: 11.92 kB / 1.107 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000376/0.301, allocations: 71.8 kB / 1.107 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.733e-05/0.3011, allocations: 19.98 kB / 1.107 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005334/0.3016, allocations: 313.2 kB / 1.107 GB, free: 13.28 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004366/0.302, allocations: 264.3 kB / 1.107 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008052/0.3029, allocations: 453.9 kB / 1.108 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.244e-06/0.3029, allocations: 0 / 1.108 GB, free: 12.5 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001065/0.3039, allocations: 0.5872 MB / 1.108 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/0.304, allocations: 33.69 kB / 1.109 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.304, allocations: 4 kB / 1.109 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.182e-06/0.304, allocations: 4 kB / 1.109 GB, free: 11.85 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004297/0.3044, allocations: 107.8 kB / 1.109 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.3045, allocations: 4 kB / 1.109 GB, free: 11.74 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003527/0.3048, allocations: 51.7 kB / 1.109 GB, free: 11.69 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.456e-05/0.3049, allocations: 20 kB / 1.109 GB, free: 11.67 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.0001581/0.305, allocations: 220 kB / 1.109 GB, free: 11.45 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.477e-05/0.3051, allocations: 75.53 kB / 1.109 GB, free: 11.37 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001531/0.3053, allocations: 83.2 kB / 1.109 GB, free: 11.29 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.3053, allocations: 7.984 kB / 1.109 GB, free: 11.28 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.3053, allocations: 0 / 1.109 GB, free: 11.28 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.3053, allocations: 3.984 kB / 1.109 GB, free: 11.27 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005968/0.3059, allocations: 0.6181 MB / 1.11 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.3059, allocations: 0 / 1.11 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00045/0.3064, allocations: 83.89 kB / 1.11 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.3064, allocations: 0 / 1.11 GB, free: 10.52 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.401e-05/0.3064, allocations: 15.98 kB / 1.11 GB, free: 10.51 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.3064, allocations: 3.938 kB / 1.11 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3064, allocations: 0 / 1.11 GB, free: 10.5 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.3079, allocations: 0.7278 MB / 1.11 GB, free: 9.758 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002218/0.3081, allocations: 200.5 kB / 1.111 GB, free: 9.543 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.823e-05/0.3082, allocations: 8 kB / 1.111 GB, free: 9.535 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004003/0.3086, allocations: 35.95 kB / 1.111 GB, free: 9.5 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.027e-05/0.3087, allocations: 31.97 kB / 1.111 GB, free: 9.469 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.867e-05/0.3087, allocations: 15.98 kB / 1.111 GB, free: 9.453 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000465/0.3092, allocations: 435 kB / 1.111 GB, free: 9.035 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3092, allocations: 0 / 1.111 GB, free: 9.035 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005829/0.3098, allocations: 219.5 kB / 1.111 GB, free: 8.82 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.00171/0.3115, allocations: 1.293 MB / 1.113 GB, free: 7.496 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001498/0.313, allocations: 0.7894 MB / 1.113 GB, free: 6.684 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.313, allocations: 4 kB / 1.113 GB, free: 6.68 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.000444/0.3135, allocations: 215.9 kB / 1.114 GB, free: 6.469 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008618/0.3144, allocations: 204.2 kB / 1.114 GB, free: 6.277 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007459/0.3218, allocations: 5.377 MB / 1.119 GB, free: 0.7461 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.3223, allocations: 0.9217 MB / 1.12 GB, free: 15.8 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0003609/0.3227, allocations: 89.11 kB / 1.12 GB, free: 15.71 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003309/0.323, allocations: 259.3 kB / 1.12 GB, free: 15.46 MB / 0.8887 GB Notification: Performance of SimCode: time 5.31e-07/0.323, allocations: 0 / 1.12 GB, free: 15.46 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03497/0.358, allocations: 14.05 MB / 1.134 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.276/8.634, allocations: 1.375 kB / 1.134 GB, free: 1.574 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