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.001508/0.001508, allocations: 108 kB / 15.61 MB, free: 148 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.001632/0.001632, allocations: 193.7 kB / 16.53 MB, free: 6.691 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.236/1.236, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.364/2.364, allocations: 437 MB / 0.7104 GB, free: 5.113 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 67.88 kB / 0.8693 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4957/0.4969, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.004655/0.5016, allocations: 3.71 MB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002163/0.5038, allocations: 1.332 MB / 1.022 GB, free: 13.43 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003523/0.5041, allocations: 27.88 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003536/0.5045, allocations: 126.6 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004503/0.505, allocations: 174.3 kB / 1.023 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009633/0.506, allocations: 0.5777 MB / 1.023 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0007788/0.5067, allocations: 0.9488 MB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004607/0.5072, allocations: 357.5 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003172/0.5075, allocations: 358.4 kB / 1.025 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000315/0.5079, allocations: 346.1 kB / 1.025 GB, free: 10.53 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0001088/0.508, allocations: 80 kB / 1.025 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001109/0.5081, allocations: 76 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.5083, allocations: 191.2 kB / 1.025 GB, free: 10.19 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002851/0.5085, allocations: 377.7 kB / 1.026 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007482/0.5093, allocations: 0.8663 MB / 1.027 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.5093, allocations: 4 kB / 1.027 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.413e-06/0.5093, allocations: 0 / 1.027 GB, free: 8.949 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.089e-05/0.5093, allocations: 0 / 1.027 GB, free: 8.949 MB / 0.7794 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.001968/0.5113, allocations: 1.176 MB / 1.028 GB, free: 7.719 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.5114, allocations: 12.02 kB / 1.028 GB, free: 7.707 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.391e-05/0.5115, allocations: 90.7 kB / 1.028 GB, free: 7.609 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001418/0.5116, allocations: 95.81 kB / 1.028 GB, free: 7.516 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008267/0.5124, allocations: 0.5948 MB / 1.029 GB, free: 6.879 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.803e-05/0.5125, allocations: 92.97 kB / 1.029 GB, free: 6.777 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.014e-05/0.5126, allocations: 60.27 kB / 1.029 GB, free: 6.719 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.5136, allocations: 0.604 MB / 1.029 GB, free: 6.07 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.5137, allocations: 0 / 1.029 GB, free: 6.07 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.234e-05/0.5137, allocations: 27.94 kB / 1.029 GB, free: 6.043 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.5137, allocations: 12 kB / 1.029 GB, free: 6.031 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009094/0.5147, allocations: 427.6 kB / 1.03 GB, free: 5.617 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002502/0.5172, allocations: 2.11 MB / 1.032 GB, free: 3.422 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.5183, allocations: 0.5049 MB / 1.032 GB, free: 2.906 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004338/0.5188, allocations: 218.8 kB / 1.033 GB, free: 2.691 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.392e-05/0.5188, allocations: 8 kB / 1.033 GB, free: 2.684 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006358/0.5195, allocations: 277.9 kB / 1.033 GB, free: 2.398 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=45): time 2.134e-06/0.5195, allocations: 4 kB / 1.033 GB, free: 2.395 MB / 0.7794 GB Notification: Performance of matching and sorting (n=45): time 0.00137/0.5209, allocations: 0.6024 MB / 1.033 GB, free: 1.785 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.5209, allocations: 84.86 kB / 1.033 GB, free: 1.684 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006369/0.5216, allocations: 0.6181 MB / 1.034 GB, free: 1.059 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.5216, allocations: 37.7 kB / 1.034 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002429/0.5219, allocations: 360.7 kB / 1.034 GB, free: 0.6602 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.522, allocations: 153.7 kB / 1.035 GB, free: 0.5078 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.5221, allocations: 94.25 kB / 1.035 GB, free: 420 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001092/0.5223, allocations: 326 kB / 1.035 GB, free: 88 kB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004408/0.5227, allocations: 187 kB / 1.035 GB, free: 15.9 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004672/0.5232, allocations: 276.2 kB / 1.035 GB, free: 15.59 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008592/0.524, allocations: 481.9 kB / 1.036 GB, free: 15.09 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.5241, allocations: 8 kB / 1.036 GB, free: 15.08 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00109/0.5252, allocations: 0.5984 MB / 1.037 GB, free: 14.46 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.5252, allocations: 33.7 kB / 1.037 GB, free: 14.43 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.5252, allocations: 4 kB / 1.037 GB, free: 14.42 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.5252, allocations: 4 kB / 1.037 GB, free: 14.42 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004527/0.5257, allocations: 111.8 kB / 1.037 GB, free: 14.31 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.5257, allocations: 4 kB / 1.037 GB, free: 14.3 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003568/0.5261, allocations: 71.34 kB / 1.037 GB, free: 14.23 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.254e-05/0.5261, allocations: 16 kB / 1.037 GB, free: 14.22 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004913/0.5266, allocations: 317.2 kB / 1.037 GB, free: 13.91 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004011/0.527, allocations: 268.2 kB / 1.037 GB, free: 13.61 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000749/0.5278, allocations: 453.8 kB / 1.038 GB, free: 13.12 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.834e-06/0.5278, allocations: 0 / 1.038 GB, free: 13.12 MB / 0.795 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.0009841/0.5288, allocations: 0.5786 MB / 1.038 GB, free: 12.54 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.5288, allocations: 33.7 kB / 1.038 GB, free: 12.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.5288, allocations: 4 kB / 1.038 GB, free: 12.49 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.45e-06/0.5288, allocations: 4.312 kB / 1.038 GB, free: 12.49 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004069/0.5292, allocations: 111.8 kB / 1.038 GB, free: 12.38 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.5293, allocations: 4 kB / 1.038 GB, free: 12.38 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003222/0.5296, allocations: 47.61 kB / 1.038 GB, free: 12.33 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.427e-05/0.5296, allocations: 23.98 kB / 1.039 GB, free: 12.3 MB / 0.795 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.0001334/0.5298, allocations: 213.5 kB / 1.039 GB, free: 12.09 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.88e-05/0.5299, allocations: 75.06 kB / 1.039 GB, free: 12.02 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000126/0.53, allocations: 83.16 kB / 1.039 GB, free: 11.93 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.53, allocations: 4 kB / 1.039 GB, free: 11.93 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.53, allocations: 4 kB / 1.039 GB, free: 11.92 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.53, allocations: 3.984 kB / 1.039 GB, free: 11.92 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005588/0.5306, allocations: 0.6257 MB / 1.039 GB, free: 11.24 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.5306, allocations: 0 / 1.039 GB, free: 11.24 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004385/0.531, allocations: 83.88 kB / 1.04 GB, free: 11.16 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.531, allocations: 4 kB / 1.04 GB, free: 11.16 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.5311, allocations: 8 kB / 1.04 GB, free: 11.15 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.5311, allocations: 4 kB / 1.04 GB, free: 11.14 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.5311, allocations: 0 / 1.04 GB, free: 11.14 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.5325, allocations: 0.7364 MB / 1.04 GB, free: 10.39 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001888/0.5327, allocations: 184.2 kB / 1.04 GB, free: 10.19 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.147e-05/0.5328, allocations: 12 kB / 1.04 GB, free: 10.18 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003815/0.5331, allocations: 31.95 kB / 1.041 GB, free: 10.15 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.66e-05/0.5332, allocations: 31.95 kB / 1.041 GB, free: 10.12 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.167e-05/0.5333, allocations: 15.98 kB / 1.041 GB, free: 10.1 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004212/0.5337, allocations: 439 kB / 1.041 GB, free: 9.68 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5337, allocations: 0 / 1.041 GB, free: 9.68 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0005178/0.5342, allocations: 219.2 kB / 1.041 GB, free: 9.465 MB / 0.795 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.001609/0.5358, allocations: 1.277 MB / 1.042 GB, free: 8.148 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.00149/0.5373, allocations: 0.8078 MB / 1.043 GB, free: 7.32 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5373, allocations: 1.188 kB / 1.043 GB, free: 7.32 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004272/0.5378, allocations: 223.5 kB / 1.043 GB, free: 7.102 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008086/0.5386, allocations: 204.4 kB / 1.044 GB, free: 6.91 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006814/0.5454, allocations: 5.624 MB / 1.049 GB, free: 1.113 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.5458, allocations: 0.9141 MB / 1.05 GB, free: 176 kB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0003379/0.5461, allocations: 93.11 kB / 1.05 GB, free: 84 kB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003122/0.5465, allocations: 259.4 kB / 1.05 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of SimCode: time 5.01e-07/0.5465, allocations: 4 kB / 1.05 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0306/0.5771, allocations: 13.84 MB / 1.064 GB, free: 2.141 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.898/7.475, allocations: 19.8 kB / 1.064 GB, free: 2.125 MB / 0.8106 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