Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.008423/0.008423, allocations: 105.3 kB / 21.98 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002054/0.002054, allocations: 210.3 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.942/1.942, allocations: 230.6 MB / 259 MB, free: 8.281 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002023/0.002023, allocations: 68.77 kB / 379.8 MB, free: 2.723 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3358, allocations: 53.36 MB / 433.2 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005161/0.3409, allocations: 3.156 MB / 436.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002376/0.3433, allocations: 1.013 MB / 437.3 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002821/0.3436, allocations: 15.88 kB / 437.3 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004007/0.344, allocations: 87.17 kB / 437.4 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.3443, allocations: 111.1 kB / 437.5 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006393/0.3449, allocations: 243.1 kB / 437.8 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006595/0.3456, allocations: 0.5224 MB / 438.3 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002929/0.3459, allocations: 129.7 kB / 438.4 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002723/0.3461, allocations: 195.2 kB / 438.6 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003015/0.3464, allocations: 211 kB / 438.8 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.467e-05/0.3465, allocations: 40 kB / 438.9 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.658e-05/0.3466, allocations: 40 kB / 438.9 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.3467, allocations: 107.6 kB / 439 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002102/0.3469, allocations: 218.8 kB / 439.2 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006174/0.3475, allocations: 0.4951 MB / 439.7 MB, free: 424 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.3475, allocations: 4 kB / 439.7 MB, free: 420 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3475, allocations: 0 / 439.7 MB, free: 420 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.487e-05/0.3475, allocations: 4 kB / 439.7 MB, free: 416 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001405/0.349, allocations: 0.7038 MB / 440.4 MB, free: 15.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.349, allocations: 8.031 kB / 440.4 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.3491, allocations: 52.61 kB / 440.5 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005894/0.3497, allocations: 298.2 kB / 440.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.3497, allocations: 25.38 kB / 440.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.793e-05/0.3498, allocations: 48.31 kB / 440.8 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009638/0.3508, allocations: 455.5 kB / 441.3 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.451e-05/0.3508, allocations: 7.953 kB / 441.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.831e-05/0.3508, allocations: 16 kB / 441.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.327e-05/0.3509, allocations: 8 kB / 441.3 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00097/0.3518, allocations: 379.6 kB / 441.7 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002369/0.3542, allocations: 1.5 MB / 443.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008542/0.355, allocations: 300.3 kB / 443.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004264/0.3555, allocations: 152.8 kB / 443.6 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.575e-05/0.3555, allocations: 11.94 kB / 443.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.3555, allocations: 38.56 kB / 443.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 2.745e-06/0.3555, allocations: 0 / 443.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003215/0.3588, allocations: 1.239 MB / 444.9 MB, free: 10.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.374e-05/0.3589, allocations: 110.8 kB / 445 MB, free: 10.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004314/0.3593, allocations: 357.6 kB / 445.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.052e-05/0.3593, allocations: 29.7 kB / 445.4 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/0.3595, allocations: 244.3 kB / 445.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.3596, allocations: 127.1 kB / 445.8 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.3598, allocations: 74.12 kB / 445.8 MB, free: 9.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.3599, allocations: 350.8 kB / 446.2 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004422/0.3604, allocations: 174.5 kB / 446.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005339/0.3609, allocations: 257.6 kB / 446.6 MB, free: 9.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008711/0.3618, allocations: 395.3 kB / 447 MB, free: 8.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3618, allocations: 0 / 447 MB, free: 8.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001111/0.3629, allocations: 0.4934 MB / 447.5 MB, free: 8.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.3629, allocations: 6.656 kB / 447.5 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.3629, allocations: 4 kB / 447.5 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/0.363, allocations: 11.94 kB / 447.5 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008426/0.3638, allocations: 203.9 kB / 447.7 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001776/0.3656, allocations: 1.469 MB / 449.2 MB, free: 6.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003399/0.3659, allocations: 35.95 kB / 449.2 MB, free: 6.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.82e-05/0.366, allocations: 16.09 kB / 449.2 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005594/0.3665, allocations: 273.6 kB / 449.5 MB, free: 6.137 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004903/0.367, allocations: 253.6 kB / 449.7 MB, free: 5.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007926/0.3678, allocations: 363.5 kB / 450.1 MB, free: 5.473 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.497e-06/0.3678, allocations: 4 kB / 450.1 MB, free: 5.469 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001021/0.3688, allocations: 469.2 kB / 450.6 MB, free: 5.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/0.3688, allocations: 8 kB / 450.6 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-06/0.3688, allocations: 4.219 kB / 450.6 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.282e-06/0.3688, allocations: 4 kB / 450.6 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004701/0.3693, allocations: 119.8 kB / 450.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.3693, allocations: 15.86 kB / 450.7 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003089/0.3696, allocations: 39.95 kB / 450.7 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.384e-05/0.3697, allocations: 12 kB / 450.8 MB, free: 4.805 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001834/0.3698, allocations: 208.1 kB / 451 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.44e-05/0.3699, allocations: 43.72 kB / 451 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001083/0.37, allocations: 44.25 kB / 451.1 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.37, allocations: 11.92 kB / 451.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.37, allocations: 0 / 451.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.3701, allocations: 3.984 kB / 451.1 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001715/0.3718, allocations: 0.8833 MB / 451.9 MB, free: 3.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.3718, allocations: 4 kB / 452 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000405/0.3722, allocations: 88 kB / 452 MB, free: 3.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.3722, allocations: 4 kB / 452 MB, free: 3.449 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.428e-05/0.3722, allocations: 8 kB / 452.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3722, allocations: 0 / 452.1 MB, free: 3.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.429e-05/0.3722, allocations: 8 kB / 452.1 MB, free: 3.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001413/0.3736, allocations: 0.671 MB / 452.7 MB, free: 2.734 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.3738, allocations: 67.73 kB / 452.8 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.857e-05/0.3738, allocations: 8 kB / 452.8 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002867/0.3741, allocations: 31.95 kB / 452.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.674e-05/0.3742, allocations: 27.95 kB / 452.9 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.06e-05/0.3742, allocations: 12 kB / 452.9 MB, free: 2.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002864/0.3745, allocations: 247.1 kB / 453.1 MB, free: 2.352 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3745, allocations: 0 / 453.1 MB, free: 2.352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005636/0.3751, allocations: 135.9 kB / 453.2 MB, free: 2.219 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001267/0.3752, allocations: 111.2 kB / 453.4 MB, free: 2.098 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001871/0.3771, allocations: 0.657 MB / 454 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3771, allocations: 0 / 454 MB, free: 1.441 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004571/0.3775, allocations: 180.3 kB / 454.2 MB, free: 1.266 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006222/0.3781, allocations: 93.2 kB / 454.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001972/0.3801, allocations: 1.043 MB / 455.3 MB, free: 92 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004859/0.3806, allocations: 0.8233 MB / 456.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.3807, allocations: 35.44 kB / 456.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3807, allocations: 0 / 456.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of Templates: time 0.01244/0.3932, allocations: 6.016 MB / 462.2 MB, free: 9.199 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.360184116987512]