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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.000809/0.000809, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.004651/0.004651, allocations: 172.2 kB / 16.27 MB, free: 6.652 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.158/1.158, allocations: 223.3 MB / 240.3 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.043/2.043, allocations: 390.9 MB / 0.6664 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002794/0.0002794, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5236/0.5239, allocations: 142.4 MB / 0.9552 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.002745/0.5267, allocations: 3.315 MB / 0.9584 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001513/0.5282, allocations: 1.276 MB / 0.9596 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002338/0.5285, allocations: 24.56 kB / 0.9597 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.000195/0.5287, allocations: 94.53 kB / 0.9598 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003647/0.529, allocations: 141 kB / 0.9599 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007957/0.5298, allocations: 0.5282 MB / 0.9604 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0006242/0.5305, allocations: 0.8933 MB / 0.9613 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003951/0.5309, allocations: 330.2 kB / 0.9616 GB, free: 2.645 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002434/0.5311, allocations: 286.4 kB / 0.9619 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002305/0.5314, allocations: 275.2 kB / 0.9621 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.075e-05/0.5314, allocations: 21.28 kB / 0.9622 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.719e-05/0.5315, allocations: 25.53 kB / 0.9622 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.766e-05/0.5316, allocations: 118.6 kB / 0.9623 GB, free: 2.168 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001812/0.5318, allocations: 325.4 kB / 0.9626 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0004503/0.5322, allocations: 0.7784 MB / 0.9634 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.5322, allocations: 0 / 0.9634 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.172e-06/0.5322, allocations: 0 / 0.9634 GB, free: 1.297 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 7.343e-06/0.5323, allocations: 1.281 kB / 0.9634 GB, free: 1.297 MB / 0.7169 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.001433/0.5337, allocations: 1.06 MB / 0.9644 GB, free: 460 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.5337, allocations: 9.219 kB / 0.9644 GB, free: 460 kB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.279e-05/0.5338, allocations: 91.7 kB / 0.9645 GB, free: 376 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.5339, allocations: 93.78 kB / 0.9646 GB, free: 328 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007142/0.5347, allocations: 0.5965 MB / 0.9652 GB, free: 15.81 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001142/0.5348, allocations: 99.58 kB / 0.9653 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.562e-05/0.5349, allocations: 59.16 kB / 0.9653 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009976/0.5359, allocations: 0.6123 MB / 0.9659 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.5359, allocations: 1.188 kB / 0.9659 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.831e-05/0.5359, allocations: 29.53 kB / 0.9659 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.536, allocations: 16.28 kB / 0.966 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009113/0.5369, allocations: 437.6 kB / 0.9664 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00242/0.5393, allocations: 2.144 MB / 0.9685 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001159/0.5405, allocations: 0.5249 MB / 0.969 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004439/0.5409, allocations: 220.7 kB / 0.9692 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 3.152e-05/0.541, allocations: 8.359 kB / 0.9692 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006088/0.5416, allocations: 309 kB / 0.9695 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=45): time 1.683e-06/0.5416, allocations: 0 / 0.9695 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of matching and sorting (n=45): time 0.001375/0.543, allocations: 0.6437 MB / 0.9701 GB, free: 12.42 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.543, allocations: 86.39 kB / 0.9702 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006142/0.5437, allocations: 0.6097 MB / 0.9708 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.305e-05/0.5437, allocations: 37.23 kB / 0.9708 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.5439, allocations: 362.1 kB / 0.9712 GB, free: 11.61 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.5441, allocations: 151.9 kB / 0.9713 GB, free: 11.48 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.5e-05/0.5441, allocations: 54.66 kB / 0.9714 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 8.454e-05/0.5442, allocations: 326.6 kB / 0.9717 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004163/0.5446, allocations: 183.8 kB / 0.9719 GB, free: 11.03 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004707/0.5451, allocations: 289.4 kB / 0.9721 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008816/0.546, allocations: 499.2 kB / 0.9726 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.546, allocations: 1 kB / 0.9726 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.00113/0.5472, allocations: 0.6143 MB / 0.9732 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.105e-05/0.5473, allocations: 194.4 kB / 0.9734 GB, free: 9.965 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.5473, allocations: 2.906 kB / 0.9734 GB, free: 9.965 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.5473, allocations: 5.25 kB / 0.9734 GB, free: 9.965 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.5477, allocations: 117.9 kB / 0.9735 GB, free: 9.934 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.5478, allocations: 4.625 kB / 0.9735 GB, free: 9.934 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000359/0.5481, allocations: 66.91 kB / 0.9736 GB, free: 9.895 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.424e-05/0.5482, allocations: 21.59 kB / 0.9736 GB, free: 9.887 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.831e-06/0.5482, allocations: 3.594 kB / 0.9736 GB, free: 9.887 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009492/0.5491, allocations: 0.5096 MB / 0.9741 GB, free: 9.625 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.5492, allocations: 2 kB / 0.9741 GB, free: 9.625 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.851e-06/0.5492, allocations: 5.312 kB / 0.9741 GB, free: 9.625 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004113/0.5496, allocations: 104.5 kB / 0.9742 GB, free: 9.602 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.5496, allocations: 8.703 kB / 0.9742 GB, free: 9.598 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003253/0.5499, allocations: 60.86 kB / 0.9743 GB, free: 9.559 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.996e-05/0.55, allocations: 22.47 kB / 0.9743 GB, free: 9.551 MB / 0.7325 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.0002289/0.5502, allocations: 274.7 kB / 0.9746 GB, free: 9.305 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.595e-05/0.5503, allocations: 81.47 kB / 0.9746 GB, free: 9.258 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001425/0.5504, allocations: 81.19 kB / 0.9747 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.5505, allocations: 5.719 kB / 0.9747 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.5505, allocations: 0 / 0.9747 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.182e-06/0.5505, allocations: 3.984 kB / 0.9747 GB, free: 9.184 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005782/0.5511, allocations: 0.6189 MB / 0.9753 GB, free: 8.68 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.5511, allocations: 4 kB / 0.9753 GB, free: 8.676 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004336/0.5515, allocations: 90.53 kB / 0.9754 GB, free: 8.652 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.5515, allocations: 1.312 kB / 0.9754 GB, free: 8.652 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.752e-05/0.5515, allocations: 6.438 kB / 0.9754 GB, free: 8.648 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.5516, allocations: 2.656 kB / 0.9754 GB, free: 8.648 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.5516, allocations: 0 / 0.9754 GB, free: 8.648 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.553, allocations: 0.7551 MB / 0.9762 GB, free: 8.238 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001796/0.5532, allocations: 197.6 kB / 0.9764 GB, free: 8.051 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.666e-05/0.5532, allocations: 11.25 kB / 0.9764 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003947/0.5536, allocations: 46.27 kB / 0.9764 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.487e-05/0.5537, allocations: 34.58 kB / 0.9765 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.229e-05/0.5538, allocations: 18.86 kB / 0.9765 GB, free: 7.996 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004229/0.5542, allocations: 433.2 kB / 0.9769 GB, free: 7.75 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5542, allocations: 0 / 0.9769 GB, free: 7.75 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0005199/0.5547, allocations: 210.8 kB / 0.9771 GB, free: 7.699 MB / 0.7325 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.001624/0.5563, allocations: 1.32 MB / 0.9784 GB, free: 6.746 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001376/0.5577, allocations: 0.8071 MB / 0.9792 GB, free: 6.098 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.5577, allocations: 8.062 kB / 0.9792 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004319/0.5582, allocations: 220.1 kB / 0.9794 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008259/0.559, allocations: 182.8 kB / 0.9796 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007262/0.5663, allocations: 5.933 MB / 0.9853 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003727/0.5667, allocations: 0.9144 MB / 0.9862 GB, free: 14.65 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003176/0.567, allocations: 89.25 kB / 0.9863 GB, free: 14.56 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003089/0.5673, allocations: 263.3 kB / 0.9866 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of SimCode: time 2.11e-07/0.5673, allocations: 0 / 0.9866 GB, free: 14.3 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0234/0.5907, allocations: 13.17 MB / 0.9994 GB, free: 1.332 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001949/0.5909, allocations: 198.6 kB / 0.9996 GB, free: 1.07 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.873/2.464, allocations: 7.938 kB / 0.9996 GB, free: 1.062 MB / 0.7481 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_Continuous_Examples_LimPID_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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