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.001445/0.001445, allocations: 96.42 kB / 19.7 MB, free: 2.129 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.001605/0.001605, allocations: 214.9 kB / 22.99 MB, free: 4.945 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.51/1.51, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.285/3.285, allocations: 0.49 GB / 0.7959 GB, free: 35.34 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.002058/0.002058, allocations: 66.22 kB / 1.155 GB, free: 25.2 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3839/0.386, allocations: 176.1 MB / 1.327 GB, free: 1.004 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005274/0.3913, allocations: 3.37 MB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.002781/0.394, allocations: 1.336 MB / 1.332 GB, free: 12.27 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000367/0.3944, allocations: 35.75 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0003562/0.3948, allocations: 130.6 kB / 1.332 GB, free: 12.11 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000552/0.3953, allocations: 178.5 kB / 1.332 GB, free: 11.93 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001315/0.3966, allocations: 0.5781 MB / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001211/0.3978, allocations: 0.9565 MB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005413/0.3984, allocations: 250.1 kB / 1.334 GB, free: 10.14 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004793/0.3989, allocations: 382.4 kB / 1.334 GB, free: 9.766 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000481/0.3993, allocations: 362.1 kB / 1.334 GB, free: 9.41 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0001296/0.3995, allocations: 80 kB / 1.334 GB, free: 9.332 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.3996, allocations: 80 kB / 1.335 GB, free: 9.254 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001916/0.3998, allocations: 179.3 kB / 1.335 GB, free: 9.078 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0003238/0.4001, allocations: 298.2 kB / 1.335 GB, free: 8.785 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.00106/0.4012, allocations: 0.9139 MB / 1.336 GB, free: 7.867 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.4012, allocations: 4 kB / 1.336 GB, free: 7.863 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.004e-06/0.4012, allocations: 0 / 1.336 GB, free: 7.863 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.647e-05/0.4012, allocations: 3.938 kB / 1.336 GB, free: 7.859 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.002145/0.4033, allocations: 1.123 MB / 1.337 GB, free: 6.695 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.4034, allocations: 12.03 kB / 1.337 GB, free: 6.684 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/0.4035, allocations: 104.3 kB / 1.337 GB, free: 6.582 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.4047, allocations: 0.5622 MB / 1.338 GB, free: 5.996 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.4048, allocations: 148.4 kB / 1.338 GB, free: 5.828 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.439e-05/0.4049, allocations: 52.38 kB / 1.338 GB, free: 5.777 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0012/0.4061, allocations: 0.7595 MB / 1.339 GB, free: 4.938 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.4061, allocations: 3.938 kB / 1.339 GB, free: 4.934 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.598e-05/0.4062, allocations: 28 kB / 1.339 GB, free: 4.906 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.851e-05/0.4062, allocations: 12 kB / 1.339 GB, free: 4.895 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009734/0.4072, allocations: 431.6 kB / 1.339 GB, free: 4.473 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00272/0.4099, allocations: 1.819 MB / 1.341 GB, free: 2.59 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001169/0.4111, allocations: 480.2 kB / 1.341 GB, free: 2.109 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004575/0.4115, allocations: 206.5 kB / 1.341 GB, free: 1.906 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 4.451e-05/0.4116, allocations: 11.94 kB / 1.342 GB, free: 1.895 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006745/0.4122, allocations: 337.3 kB / 1.342 GB, free: 1.539 MB / 1.029 GB Notification: Performance of pre-optimization done (n=45): time 2.355e-06/0.4122, allocations: 0 / 1.342 GB, free: 1.539 MB / 1.029 GB Notification: Performance of matching and sorting (n=45): time 0.001519/0.4138, allocations: 0.6155 MB / 1.342 GB, free: 0.918 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.372e-05/0.4139, allocations: 118.5 kB / 1.343 GB, free: 0.7773 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006931/0.4145, allocations: 0.5708 MB / 1.343 GB, free: 200 kB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.314e-05/0.4146, allocations: 37.7 kB / 1.343 GB, free: 156 kB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003204/0.4149, allocations: 376.9 kB / 1.343 GB, free: 15.78 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.4151, allocations: 162.6 kB / 1.344 GB, free: 15.62 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001576/0.4152, allocations: 94.34 kB / 1.344 GB, free: 15.52 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001922/0.4154, allocations: 378.8 kB / 1.344 GB, free: 15.14 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004724/0.4159, allocations: 213.1 kB / 1.344 GB, free: 14.92 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005977/0.4165, allocations: 371.1 kB / 1.345 GB, free: 14.5 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009731/0.4174, allocations: 481.9 kB / 1.345 GB, free: 13.99 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.4175, allocations: 0 / 1.345 GB, free: 13.99 MB / 1.045 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001321/0.4188, allocations: 0.6354 MB / 1.346 GB, free: 13.33 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.239e-05/0.4188, allocations: 33.7 kB / 1.346 GB, free: 13.29 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.4188, allocations: 0 / 1.346 GB, free: 13.29 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.904e-05/0.4189, allocations: 8 kB / 1.346 GB, free: 13.29 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000498/0.4194, allocations: 103.9 kB / 1.346 GB, free: 13.18 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.4194, allocations: 8.188 kB / 1.346 GB, free: 13.18 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004048/0.4198, allocations: 71.62 kB / 1.346 GB, free: 13.11 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.279e-05/0.4198, allocations: 16 kB / 1.346 GB, free: 13.09 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000641/0.4205, allocations: 335.1 kB / 1.346 GB, free: 12.75 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005668/0.421, allocations: 360.2 kB / 1.347 GB, free: 12.34 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008924/0.4219, allocations: 457.9 kB / 1.347 GB, free: 11.86 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.829e-06/0.4219, allocations: 4 kB / 1.347 GB, free: 11.85 MB / 1.045 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001184/0.4231, allocations: 0.6122 MB / 1.348 GB, free: 11.22 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 3.815e-05/0.4232, allocations: 33.7 kB / 1.348 GB, free: 11.18 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.4232, allocations: 4 kB / 1.348 GB, free: 11.18 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.161e-06/0.4232, allocations: 4 kB / 1.348 GB, free: 11.17 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004408/0.4236, allocations: 103.8 kB / 1.348 GB, free: 11.07 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.4236, allocations: 4 kB / 1.348 GB, free: 11.07 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000378/0.424, allocations: 55.75 kB / 1.348 GB, free: 11.01 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/0.424, allocations: 19.94 kB / 1.348 GB, free: 10.99 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.0002379/0.4243, allocations: 213.4 kB / 1.348 GB, free: 10.78 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.4244, allocations: 83.45 kB / 1.348 GB, free: 10.7 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001624/0.4245, allocations: 74.77 kB / 1.348 GB, free: 10.62 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.4245, allocations: 4 kB / 1.348 GB, free: 10.62 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.4246, allocations: 0 / 1.348 GB, free: 10.62 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.177e-06/0.4246, allocations: 3.984 kB / 1.348 GB, free: 10.61 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006572/0.4252, allocations: 460.8 kB / 1.349 GB, free: 10.13 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.4252, allocations: 0 / 1.349 GB, free: 10.13 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004681/0.4257, allocations: 95.75 kB / 1.349 GB, free: 10.04 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.4257, allocations: 0 / 1.349 GB, free: 10.04 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.968e-05/0.4257, allocations: 16 kB / 1.349 GB, free: 10.02 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.4257, allocations: 0 / 1.349 GB, free: 10.02 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.4257, allocations: 0 / 1.349 GB, free: 10.02 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/0.4274, allocations: 0.7358 MB / 1.35 GB, free: 9.27 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002442/0.4276, allocations: 119.3 kB / 1.35 GB, free: 9.152 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.202e-05/0.4277, allocations: 12 kB / 1.35 GB, free: 9.141 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004035/0.4281, allocations: 35.95 kB / 1.35 GB, free: 9.105 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.4282, allocations: 31.94 kB / 1.35 GB, free: 9.074 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.652e-05/0.4282, allocations: 15.98 kB / 1.35 GB, free: 9.059 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0005203/0.4288, allocations: 407.1 kB / 1.35 GB, free: 8.664 MB / 1.045 GB Notification: Performance of sort global known variables: time 6e-08/0.4288, allocations: 0 / 1.35 GB, free: 8.664 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0006581/0.4294, allocations: 231.4 kB / 1.35 GB, free: 8.438 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.0001832/0.4296, allocations: 123 kB / 1.35 GB, free: 8.309 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001728/0.4313, allocations: 0.8037 MB / 1.351 GB, free: 7.469 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4313, allocations: 4 kB / 1.351 GB, free: 7.465 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0004954/0.4318, allocations: 208.9 kB / 1.351 GB, free: 7.262 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009282/0.4328, allocations: 196.9 kB / 1.352 GB, free: 7.078 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.435, allocations: 1.195 MB / 1.353 GB, free: 5.852 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.4353, allocations: 318.9 kB / 1.353 GB, free: 5.512 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0003444/0.4356, allocations: 88.97 kB / 1.353 GB, free: 5.422 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.4358, allocations: 47.42 kB / 1.353 GB, free: 5.375 MB / 1.045 GB Notification: Performance of SimCode: time 5.21e-07/0.4358, allocations: 0 / 1.353 GB, free: 5.375 MB / 1.045 GB Notification: Performance of Templates: time 0.01611/0.4519, allocations: 8.788 MB / 1.362 GB, free: 12.76 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 -s cvode -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/jenkins1/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.363440682995133]