Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00225/0.00225, allocations: 106.8 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002599/0.002599, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.664/1.664, allocations: 230.6 MB / 252.8 MB, free: 8.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.534/3.534, allocations: 0.4899 GB / 0.7915 GB, free: 33.45 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_12_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_12_Buildings.Controls.Continuous.Examples.LimPID") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002183/0.002183, allocations: 74.8 kB / 1.149 GB, free: 26.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.475/0.4772, allocations: 176.1 MB / 1.321 GB, free: 2.844 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.006187/0.4834, allocations: 3.732 MB / 1.325 GB, free: 15.08 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00444/0.4878, allocations: 1.367 MB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007934/0.4886, allocations: 31.75 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005736/0.4892, allocations: 130.6 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0009307/0.4901, allocations: 178.5 kB / 1.327 GB, free: 13.38 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.002163/0.4923, allocations: 0.576 MB / 1.327 GB, free: 12.81 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.002159/0.4944, allocations: 0.9487 MB / 1.328 GB, free: 11.86 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007915/0.4952, allocations: 253.6 kB / 1.328 GB, free: 11.59 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008237/0.496, allocations: 378.4 kB / 1.329 GB, free: 11.22 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006281/0.4967, allocations: 366 kB / 1.329 GB, free: 10.86 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0002634/0.4969, allocations: 80 kB / 1.329 GB, free: 10.79 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001564/0.4971, allocations: 80 kB / 1.329 GB, free: 10.71 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002404/0.4973, allocations: 179.3 kB / 1.329 GB, free: 10.53 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0004881/0.4978, allocations: 389.6 kB / 1.33 GB, free: 10.15 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001673/0.4995, allocations: 0.9023 MB / 1.331 GB, free: 9.242 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.4995, allocations: 0 / 1.331 GB, free: 9.242 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.863e-06/0.4995, allocations: 3.938 kB / 1.331 GB, free: 9.238 MB / 1.029 GB Notification: Performance of Transformations before backend: time 2.003e-05/0.4995, allocations: 0 / 1.331 GB, free: 9.238 MB / 1.029 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.003307/0.5028, allocations: 1.206 MB / 1.332 GB, free: 7.973 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 6.449e-05/0.5029, allocations: 15.98 kB / 1.332 GB, free: 7.957 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002593/0.5031, allocations: 96.33 kB / 1.332 GB, free: 7.863 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001711/0.5048, allocations: 0.6189 MB / 1.332 GB, free: 7.203 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001975/0.505, allocations: 101 kB / 1.333 GB, free: 7.094 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001564/0.5052, allocations: 60.36 kB / 1.333 GB, free: 7.035 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/0.507, allocations: 0.6107 MB / 1.333 GB, free: 6.383 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.5071, allocations: 4 kB / 1.333 GB, free: 6.379 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.605e-05/0.5072, allocations: 24 kB / 1.333 GB, free: 6.355 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.067e-05/0.5072, allocations: 12 kB / 1.333 GB, free: 6.344 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001565/0.5087, allocations: 431.6 kB / 1.334 GB, free: 5.922 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004469/0.5132, allocations: 2.11 MB / 1.336 GB, free: 3.727 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001939/0.5151, allocations: 491 kB / 1.336 GB, free: 3.234 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008308/0.516, allocations: 203.4 kB / 1.336 GB, free: 3.035 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 6.119e-05/0.516, allocations: 7.984 kB / 1.336 GB, free: 3.027 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001137/0.5172, allocations: 286.1 kB / 1.337 GB, free: 2.734 MB / 1.029 GB Notification: Performance of pre-optimization done (n=45): time 3.337e-06/0.5172, allocations: 0 / 1.337 GB, free: 2.734 MB / 1.029 GB Notification: Performance of matching and sorting (n=45): time 0.00283/0.52, allocations: 0.6142 MB / 1.337 GB, free: 2.113 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/0.5201, allocations: 118.5 kB / 1.337 GB, free: 1.973 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001448/0.5216, allocations: 0.6139 MB / 1.338 GB, free: 1.348 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 9.809e-05/0.5217, allocations: 37.7 kB / 1.338 GB, free: 1.305 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005357/0.5222, allocations: 366.4 kB / 1.338 GB, free: 0.9414 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002472/0.5225, allocations: 158.6 kB / 1.338 GB, free: 0.7852 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003084/0.5228, allocations: 102.2 kB / 1.339 GB, free: 0.6797 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002311/0.523, allocations: 329.9 kB / 1.339 GB, free: 360 kB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009269/0.5239, allocations: 187 kB / 1.339 GB, free: 172 kB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.5249, allocations: 285.1 kB / 1.339 GB, free: 15.85 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001819/0.5268, allocations: 474 kB / 1.34 GB, free: 15.34 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-05/0.5268, allocations: 7.938 kB / 1.34 GB, free: 15.33 MB / 1.045 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0025/0.5293, allocations: 0.6025 MB / 1.34 GB, free: 14.72 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.537e-05/0.5293, allocations: 33.7 kB / 1.34 GB, free: 14.68 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.5294, allocations: 7.938 kB / 1.34 GB, free: 14.67 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.335e-05/0.5294, allocations: 4 kB / 1.34 GB, free: 14.67 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009468/0.5303, allocations: 107.8 kB / 1.341 GB, free: 14.56 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.311e-05/0.5304, allocations: 8.234 kB / 1.341 GB, free: 14.55 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007998/0.5312, allocations: 67.64 kB / 1.341 GB, free: 14.49 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.418e-05/0.5312, allocations: 20 kB / 1.341 GB, free: 14.47 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001118/0.5324, allocations: 313.2 kB / 1.341 GB, free: 14.16 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009497/0.5333, allocations: 281 kB / 1.341 GB, free: 13.85 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001681/0.535, allocations: 454 kB / 1.342 GB, free: 13.36 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.438e-06/0.535, allocations: 0 / 1.342 GB, free: 13.36 MB / 1.045 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.002214/0.5372, allocations: 0.583 MB / 1.342 GB, free: 12.77 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 6.588e-05/0.5373, allocations: 37.7 kB / 1.342 GB, free: 12.72 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.5373, allocations: 4 kB / 1.342 GB, free: 12.72 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.5373, allocations: 4 kB / 1.342 GB, free: 12.71 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008092/0.5381, allocations: 103.8 kB / 1.342 GB, free: 12.61 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.5381, allocations: 8 kB / 1.342 GB, free: 12.61 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007769/0.5389, allocations: 59.95 kB / 1.342 GB, free: 12.55 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.215e-05/0.539, allocations: 16 kB / 1.342 GB, free: 12.53 MB / 1.045 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.0003655/0.5393, allocations: 224 kB / 1.343 GB, free: 12.3 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001924/0.5395, allocations: 79.42 kB / 1.343 GB, free: 12.23 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003015/0.5398, allocations: 79.2 kB / 1.343 GB, free: 12.15 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-05/0.5398, allocations: 4 kB / 1.343 GB, free: 12.14 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.5398, allocations: 0 / 1.343 GB, free: 12.14 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.305e-06/0.5398, allocations: 0 / 1.343 GB, free: 12.14 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001285/0.5411, allocations: 0.6337 MB / 1.343 GB, free: 11.46 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.696e-06/0.5411, allocations: 0 / 1.343 GB, free: 11.46 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008894/0.542, allocations: 83.89 kB / 1.343 GB, free: 11.38 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.818e-06/0.542, allocations: 4 kB / 1.343 GB, free: 11.38 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.984e-05/0.5421, allocations: 12 kB / 1.343 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.805e-06/0.5421, allocations: 3.984 kB / 1.343 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.5421, allocations: 0 / 1.343 GB, free: 11.36 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002985/0.5451, allocations: 0.7446 MB / 1.344 GB, free: 10.6 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004258/0.5455, allocations: 204.5 kB / 1.344 GB, free: 10.38 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001229/0.5456, allocations: 8 kB / 1.344 GB, free: 10.37 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007657/0.5464, allocations: 39.95 kB / 1.344 GB, free: 10.33 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001787/0.5466, allocations: 31.95 kB / 1.344 GB, free: 10.3 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.689e-05/0.5466, allocations: 19.92 kB / 1.345 GB, free: 10.28 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.000968/0.5476, allocations: 431.1 kB / 1.345 GB, free: 9.863 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.71e-07/0.5476, allocations: 0 / 1.345 GB, free: 9.863 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001177/0.5488, allocations: 219.5 kB / 1.345 GB, free: 9.648 MB / 1.045 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.0002531/0.549, allocations: 115.2 kB / 1.345 GB, free: 9.527 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.003032/0.5521, allocations: 0.7538 MB / 1.346 GB, free: 8.75 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.5521, allocations: 0 / 1.346 GB, free: 8.75 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0008924/0.553, allocations: 203.8 kB / 1.346 GB, free: 8.551 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001615/0.5546, allocations: 208.1 kB / 1.346 GB, free: 8.359 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00431/0.5589, allocations: 1.197 MB / 1.348 GB, free: 7.129 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001031/0.5599, allocations: 0.9141 MB / 1.348 GB, free: 6.188 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0008378/0.5608, allocations: 97.11 kB / 1.349 GB, free: 6.09 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/0.561, allocations: 47.44 kB / 1.349 GB, free: 6.043 MB / 1.045 GB Notification: Performance of SimCode: time 2.485e-06/0.561, allocations: 3.938 kB / 1.349 GB, free: 6.039 MB / 1.045 GB Notification: Performance of Templates: time 0.03147/0.5925, allocations: 7.84 MB / 1.356 GB, free: 14.29 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_12_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.212409397121519]