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.001429/0.001429, allocations: 112.4 kB / 21.17 MB, free: 0.6172 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.0016/0.0016, allocations: 205.6 kB / 24.46 MB, free: 4.023 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 2.235/2.235, allocations: 230.5 MB / 258.1 MB, free: 8.133 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.002087/0.002087, allocations: 63.83 kB / 378.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.284, allocations: 53.32 MB / 432 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004827/0.2889, allocations: 3.164 MB / 435.2 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002488/0.2913, allocations: 1.009 MB / 436.2 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002912/0.2916, allocations: 11.94 kB / 436.2 MB, free: 3.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004187/0.2921, allocations: 87.17 kB / 436.3 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002754/0.2923, allocations: 99.08 kB / 436.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000687/0.293, allocations: 250.6 kB / 436.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005848/0.2936, allocations: 0.5107 MB / 437.2 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002512/0.2939, allocations: 129.2 kB / 437.3 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002353/0.2941, allocations: 191.2 kB / 437.5 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002765/0.2944, allocations: 214.9 kB / 437.7 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.301e-05/0.2944, allocations: 40 kB / 437.7 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.393e-05/0.2945, allocations: 40 kB / 437.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001263/0.2946, allocations: 107.6 kB / 437.9 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001962/0.2948, allocations: 214.8 kB / 438.1 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006237/0.2954, allocations: 0.492 MB / 438.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.2954, allocations: 4 kB / 438.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2954, allocations: 0 / 438.6 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.2955, allocations: 0 / 438.6 MB, free: 0.8359 MB / 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.001431/0.2969, allocations: 0.7752 MB / 439.3 MB, free: 8 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.2969, allocations: 8.922 kB / 439.4 MB, free: 0 / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.297, allocations: 60.67 kB / 439.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005968/0.2976, allocations: 376 kB / 439.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.143e-05/0.2977, allocations: 29.38 kB / 439.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.316e-05/0.2977, allocations: 44.31 kB / 439.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009052/0.2986, allocations: 455.5 kB / 440.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.209e-05/0.2987, allocations: 7.953 kB / 440.3 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.836e-05/0.2987, allocations: 19.94 kB / 440.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.2987, allocations: 8 kB / 440.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001029/0.2997, allocations: 375.6 kB / 440.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002163/0.3019, allocations: 1.567 MB / 442.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008554/0.3028, allocations: 294.6 kB / 442.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004898/0.3033, allocations: 165.2 kB / 442.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.3033, allocations: 3.938 kB / 442.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.3033, allocations: 34.56 kB / 442.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.623e-06/0.3033, allocations: 0 / 442.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003432/0.3067, allocations: 1.385 MB / 444.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.993e-05/0.3068, allocations: 114.8 kB / 444.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004508/0.3073, allocations: 357.6 kB / 444.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.602e-05/0.3073, allocations: 29.7 kB / 444.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002088/0.3075, allocations: 244.3 kB / 444.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.3076, allocations: 119.2 kB / 445 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.3078, allocations: 82.12 kB / 445.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.3079, allocations: 346.8 kB / 445.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005095/0.3085, allocations: 174.5 kB / 445.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005651/0.309, allocations: 253.7 kB / 445.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009913/0.31, allocations: 395.8 kB / 446.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.31, allocations: 0 / 446.2 MB, free: 8.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001214/0.3112, allocations: 493 kB / 446.7 MB, free: 8.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.3112, allocations: 8 kB / 446.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.3113, allocations: 0 / 446.7 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.3113, allocations: 4 kB / 446.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009671/0.3122, allocations: 215.9 kB / 446.9 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001858/0.3141, allocations: 1.572 MB / 448.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003703/0.3145, allocations: 44.05 kB / 448.5 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.629e-05/0.3145, allocations: 16 kB / 448.5 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000601/0.3151, allocations: 272.9 kB / 448.8 MB, free: 5.988 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005167/0.3156, allocations: 249.6 kB / 449.1 MB, free: 5.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008801/0.3165, allocations: 375.7 kB / 449.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.724e-06/0.3165, allocations: 0 / 449.4 MB, free: 5.316 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001087/0.3176, allocations: 473 kB / 449.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.3176, allocations: 4 kB / 449.9 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3176, allocations: 8 kB / 449.9 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.75e-06/0.3176, allocations: 7.938 kB / 449.9 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005307/0.3181, allocations: 119.8 kB / 450 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.829e-06/0.3182, allocations: 15.86 kB / 450 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003398/0.3185, allocations: 36.12 kB / 450.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.426e-05/0.3185, allocations: 12 kB / 450.1 MB, free: 4.648 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.0001713/0.3187, allocations: 208.1 kB / 450.3 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.028e-05/0.3188, allocations: 39.72 kB / 450.3 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001/0.3189, allocations: 52.23 kB / 450.4 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3189, allocations: 7.938 kB / 450.4 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.3189, allocations: 0 / 450.4 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.3189, allocations: 4 kB / 450.4 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001792/0.3207, allocations: 0.9116 MB / 451.3 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.3207, allocations: 3.984 kB / 451.3 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004635/0.3212, allocations: 87.88 kB / 451.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.3212, allocations: 0 / 451.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.223e-05/0.3212, allocations: 8 kB / 451.4 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.3212, allocations: 4 kB / 451.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.3212, allocations: 128 / 451.4 MB, free: 3.254 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00154/0.3227, allocations: 0.6755 MB / 452.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.3229, allocations: 140.8 kB / 452.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.303e-05/0.3229, allocations: 8 kB / 452.2 MB, free: 2.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003306/0.3233, allocations: 39.95 kB / 452.3 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.831e-05/0.3233, allocations: 23.97 kB / 452.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.859e-05/0.3234, allocations: 8 kB / 452.3 MB, free: 2.316 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000293/0.3237, allocations: 247.2 kB / 452.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3237, allocations: 0 / 452.5 MB, free: 2.074 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005584/0.3242, allocations: 135.9 kB / 452.7 MB, free: 1.941 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.0001297/0.3243, allocations: 111.2 kB / 452.8 MB, free: 1.824 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002032/0.3264, allocations: 0.6567 MB / 453.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3264, allocations: 0 / 453.4 MB, free: 1.168 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005014/0.3269, allocations: 167.8 kB / 453.6 MB, free: 1.004 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006648/0.3275, allocations: 113 kB / 453.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001914/0.3295, allocations: 1.029 MB / 454.7 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004551/0.3299, allocations: 0.8195 MB / 455.6 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002405/0.3302, allocations: 67.23 kB / 455.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.3303, allocations: 27.44 kB / 455.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3303, allocations: 0 / 455.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of Templates: time 0.01006/0.3403, allocations: 4.85 MB / 460.5 MB, free: 10.07 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 -s cvode -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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 5.4940642500296235]