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.001962/0.001962, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002476/0.002476, allocations: 214.3 kB / 22.25 MB, free: 4.852 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.678/1.678, allocations: 230.6 MB / 256 MB, free: 7.789 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.402/3.402, allocations: 0.4892 GB / 0.7943 GB, free: 35.6 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.002174/0.002174, allocations: 67.47 kB / 1.154 GB, free: 25.54 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3928/0.395, allocations: 176.1 MB / 1.325 GB, free: 1.871 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005431/0.4005, allocations: 3.367 MB / 1.329 GB, free: 14.48 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003059/0.4035, allocations: 1.325 MB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004418/0.404, allocations: 35.69 kB / 1.33 GB, free: 13.12 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.000382/0.4043, allocations: 130.6 kB / 1.33 GB, free: 12.99 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0006061/0.4049, allocations: 178.5 kB / 1.33 GB, free: 12.81 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.4063, allocations: 0.5798 MB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001313/0.4076, allocations: 0.9604 MB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005259/0.4081, allocations: 230.1 kB / 1.332 GB, free: 11.04 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005999/0.4087, allocations: 386.4 kB / 1.332 GB, free: 10.66 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004612/0.4092, allocations: 326.1 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001408/0.4093, allocations: 76 kB / 1.333 GB, free: 10.26 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.4094, allocations: 80 kB / 1.333 GB, free: 10.18 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001882/0.4096, allocations: 179.3 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0003223/0.4099, allocations: 302.2 kB / 1.333 GB, free: 9.711 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.411, allocations: 0.9178 MB / 1.334 GB, free: 8.789 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.411, allocations: 0 / 1.334 GB, free: 8.789 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.803e-06/0.4111, allocations: 0 / 1.334 GB, free: 8.789 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.232e-05/0.4111, allocations: 0 / 1.334 GB, free: 8.789 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.002286/0.4133, allocations: 1.132 MB / 1.335 GB, free: 7.617 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.4134, allocations: 8.031 kB / 1.335 GB, free: 7.609 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001932/0.4136, allocations: 104.3 kB / 1.336 GB, free: 7.508 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.4148, allocations: 0.5583 MB / 1.336 GB, free: 6.926 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.415, allocations: 148.4 kB / 1.336 GB, free: 6.758 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.906e-05/0.415, allocations: 56.38 kB / 1.336 GB, free: 6.703 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.4163, allocations: 0.7634 MB / 1.337 GB, free: 5.859 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.323e-05/0.4164, allocations: 3.938 kB / 1.337 GB, free: 5.855 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.533e-05/0.4164, allocations: 20 kB / 1.337 GB, free: 5.836 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.4164, allocations: 12 kB / 1.337 GB, free: 5.824 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.4175, allocations: 431.6 kB / 1.337 GB, free: 5.402 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00299/0.4205, allocations: 1.823 MB / 1.339 GB, free: 3.516 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001246/0.4217, allocations: 483.5 kB / 1.34 GB, free: 3.031 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004927/0.4222, allocations: 204.8 kB / 1.34 GB, free: 2.828 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.628e-05/0.4223, allocations: 11.92 kB / 1.34 GB, free: 2.816 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007376/0.423, allocations: 337.4 kB / 1.34 GB, free: 2.461 MB / 1.029 GB Notification: Performance of pre-optimization done (n=45): time 3.336e-06/0.423, allocations: 0 / 1.34 GB, free: 2.461 MB / 1.029 GB Notification: Performance of matching and sorting (n=45): time 0.001614/0.4246, allocations: 0.6155 MB / 1.341 GB, free: 1.84 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.4247, allocations: 114.5 kB / 1.341 GB, free: 1.703 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007516/0.4255, allocations: 0.5747 MB / 1.341 GB, free: 1.117 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.756e-05/0.4256, allocations: 33.7 kB / 1.342 GB, free: 1.078 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003121/0.4259, allocations: 369 kB / 1.342 GB, free: 0.7109 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.000154/0.426, allocations: 170.6 kB / 1.342 GB, free: 0.543 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.4262, allocations: 90.34 kB / 1.342 GB, free: 460 kB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002157/0.4264, allocations: 378.8 kB / 1.342 GB, free: 72 kB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005033/0.4269, allocations: 213.1 kB / 1.343 GB, free: 15.85 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006015/0.4275, allocations: 375.1 kB / 1.343 GB, free: 15.43 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009918/0.4285, allocations: 473.9 kB / 1.344 GB, free: 14.92 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.4285, allocations: 0 / 1.344 GB, free: 14.92 MB / 1.045 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001317/0.4298, allocations: 0.6354 MB / 1.344 GB, free: 14.27 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.741e-05/0.4299, allocations: 34.02 kB / 1.344 GB, free: 14.23 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.4299, allocations: 11.98 kB / 1.344 GB, free: 14.21 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.4299, allocations: 4 kB / 1.344 GB, free: 14.21 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005016/0.4304, allocations: 103.9 kB / 1.344 GB, free: 14.11 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.091e-05/0.4304, allocations: 11.92 kB / 1.344 GB, free: 14.1 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004184/0.4308, allocations: 63.64 kB / 1.344 GB, free: 14.04 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.088e-05/0.4309, allocations: 16 kB / 1.344 GB, free: 14.02 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000647/0.4315, allocations: 352.2 kB / 1.345 GB, free: 13.67 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005673/0.4321, allocations: 350.3 kB / 1.345 GB, free: 13.27 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008876/0.433, allocations: 457.9 kB / 1.345 GB, free: 12.78 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.204e-06/0.433, allocations: 0 / 1.345 GB, free: 12.78 MB / 1.045 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001203/0.4342, allocations: 0.612 MB / 1.346 GB, free: 12.15 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.29e-05/0.4342, allocations: 33.7 kB / 1.346 GB, free: 12.11 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.4342, allocations: 7.984 kB / 1.346 GB, free: 12.1 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.356e-06/0.4342, allocations: 4 kB / 1.346 GB, free: 12.1 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000455/0.4347, allocations: 104.1 kB / 1.346 GB, free: 12 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.4347, allocations: 8 kB / 1.346 GB, free: 11.99 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003949/0.4351, allocations: 55.69 kB / 1.346 GB, free: 11.93 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.409e-05/0.4351, allocations: 16 kB / 1.346 GB, free: 11.92 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.0002222/0.4354, allocations: 220.1 kB / 1.346 GB, free: 11.7 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001038/0.4355, allocations: 75.47 kB / 1.347 GB, free: 11.62 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001703/0.4356, allocations: 70.77 kB / 1.347 GB, free: 11.55 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.4356, allocations: 11.94 kB / 1.347 GB, free: 11.54 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.864e-06/0.4357, allocations: 4 kB / 1.347 GB, free: 11.54 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.4357, allocations: 3.984 kB / 1.347 GB, free: 11.53 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006573/0.4363, allocations: 460.8 kB / 1.347 GB, free: 11.05 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.4363, allocations: 0 / 1.347 GB, free: 11.05 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004661/0.4368, allocations: 91.81 kB / 1.347 GB, free: 10.96 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.4368, allocations: 3.938 kB / 1.347 GB, free: 10.96 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.554e-05/0.4368, allocations: 12 kB / 1.347 GB, free: 10.95 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.423e-06/0.4368, allocations: 4 kB / 1.347 GB, free: 10.94 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.4368, allocations: 0 / 1.347 GB, free: 10.94 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001624/0.4385, allocations: 0.7358 MB / 1.348 GB, free: 10.19 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002548/0.4387, allocations: 111.4 kB / 1.348 GB, free: 10.08 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.673e-05/0.4388, allocations: 8 kB / 1.348 GB, free: 10.07 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004186/0.4392, allocations: 43.95 kB / 1.348 GB, free: 10.03 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.637e-05/0.4393, allocations: 31.94 kB / 1.348 GB, free: 9.996 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.855e-05/0.4393, allocations: 19.98 kB / 1.348 GB, free: 9.977 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0005432/0.4399, allocations: 403.1 kB / 1.349 GB, free: 9.586 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.4399, allocations: 0 / 1.349 GB, free: 9.586 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.000669/0.4406, allocations: 227.4 kB / 1.349 GB, free: 9.363 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.0001802/0.4407, allocations: 119.1 kB / 1.349 GB, free: 9.238 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001746/0.4425, allocations: 0.8083 MB / 1.35 GB, free: 8.395 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4425, allocations: 0 / 1.35 GB, free: 8.395 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004931/0.443, allocations: 208.1 kB / 1.35 GB, free: 8.191 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009241/0.4439, allocations: 199 kB / 1.35 GB, free: 8.004 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.4463, allocations: 1.187 MB / 1.351 GB, free: 6.785 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.4466, allocations: 322.9 kB / 1.351 GB, free: 6.441 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0004071/0.447, allocations: 88.97 kB / 1.352 GB, free: 6.352 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.4472, allocations: 55.42 kB / 1.352 GB, free: 6.297 MB / 1.045 GB Notification: Performance of SimCode: time 7.82e-07/0.4472, allocations: 3.938 kB / 1.352 GB, free: 6.293 MB / 1.045 GB Notification: Performance of Templates: time 0.01722/0.4644, allocations: 8.671 MB / 1.36 GB, free: 13.81 MB / 1.061 GB " [Timeout remaining time 300] 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: 9.91633977741003]