Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.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.001199/0.001199, allocations: 107.6 kB / 21.18 MB, free: 0.5273 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.00141/0.00141, allocations: 205.1 kB / 24.48 MB, free: 3.695 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.445/1.445, allocations: 230.6 MB / 258.2 MB, free: 7.793 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+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(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_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_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001588, allocations: 47.92 kB / 379 MB, free: 2.566 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2761, allocations: 53.37 MB / 432.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00466/0.2807, allocations: 2.907 MB / 435.2 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.2828, allocations: 0.9698 MB / 436.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002423/0.2831, allocations: 19.81 kB / 436.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004032/0.2835, allocations: 87.22 kB / 436.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002602/0.2837, allocations: 99.09 kB / 436.4 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006197/0.2844, allocations: 251.2 kB / 436.6 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005936/0.285, allocations: 0.5146 MB / 437.2 MB, free: 1.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002958/0.2852, allocations: 121.7 kB / 437.3 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002517/0.2855, allocations: 199.2 kB / 437.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002848/0.2858, allocations: 214.9 kB / 437.7 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.104e-05/0.2859, allocations: 44 kB / 437.7 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.22e-05/0.2859, allocations: 40 kB / 437.8 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001218/0.286, allocations: 107.6 kB / 437.9 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001886/0.2862, allocations: 179.1 kB / 438 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006121/0.2869, allocations: 0.4917 MB / 438.5 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.2869, allocations: 3.938 kB / 438.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2869, allocations: 0 / 438.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.2869, allocations: 0 / 438.5 MB, free: 0.4922 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.001384/0.2882, allocations: 0.7154 MB / 439.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.2883, allocations: 8.031 kB / 439.3 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.2884, allocations: 60.61 kB / 439.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005848/0.289, allocations: 302.2 kB / 439.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/0.289, allocations: 25.38 kB / 439.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.418e-05/0.2891, allocations: 44.36 kB / 439.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009274/0.29, allocations: 0.4911 MB / 440.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/0.29, allocations: 7.938 kB / 440.2 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.739e-05/0.2901, allocations: 16 kB / 440.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.2901, allocations: 12 kB / 440.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009703/0.2911, allocations: 375.6 kB / 440.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00213/0.2932, allocations: 1.356 MB / 441.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008188/0.294, allocations: 299.4 kB / 442.2 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004238/0.2944, allocations: 152.7 kB / 442.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.077e-05/0.2945, allocations: 4 kB / 442.4 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.502e-05/0.2945, allocations: 42.5 kB / 442.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.2945, allocations: 0 / 442.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003196/0.2977, allocations: 1.232 MB / 443.7 MB, free: 11.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.912e-05/0.2978, allocations: 106.8 kB / 443.8 MB, free: 11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003838/0.2982, allocations: 345.6 kB / 444.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.91e-05/0.2982, allocations: 33.64 kB / 444.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001914/0.2984, allocations: 248.5 kB / 444.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.473e-05/0.2985, allocations: 123.2 kB / 444.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001343/0.2986, allocations: 82.08 kB / 444.6 MB, free: 10.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00018/0.2988, allocations: 346.8 kB / 444.9 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004709/0.2993, allocations: 174.5 kB / 445.1 MB, free: 9.637 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005717/0.2998, allocations: 305 kB / 445.4 MB, free: 9.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009058/0.3007, allocations: 403.9 kB / 445.8 MB, free: 8.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3007, allocations: 0 / 445.8 MB, free: 8.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001114/0.3018, allocations: 496.9 kB / 446.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.3019, allocations: 4 kB / 446.3 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.3019, allocations: 4 kB / 446.3 MB, free: 8.371 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.445e-05/0.3019, allocations: 4 kB / 446.3 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008682/0.3028, allocations: 203.9 kB / 446.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/0.3046, allocations: 1.45 MB / 447.9 MB, free: 6.621 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003678/0.3049, allocations: 48.05 kB / 448 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.269e-05/0.305, allocations: 19.94 kB / 448 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005803/0.3055, allocations: 272.9 kB / 448.2 MB, free: 6.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005582/0.3061, allocations: 301 kB / 448.5 MB, free: 5.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008135/0.3069, allocations: 363.7 kB / 448.9 MB, free: 5.562 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.877e-06/0.3069, allocations: 3.984 kB / 448.9 MB, free: 5.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001022/0.3079, allocations: 469 kB / 449.4 MB, free: 5.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.308, allocations: 7.984 kB / 449.4 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.308, allocations: 8 kB / 449.4 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.161e-06/0.308, allocations: 4 kB / 449.4 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004808/0.3084, allocations: 115.9 kB / 449.5 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.3085, allocations: 4 kB / 449.5 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003198/0.3088, allocations: 40.11 kB / 449.5 MB, free: 4.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.843e-05/0.3088, allocations: 15.94 kB / 449.6 MB, free: 4.902 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.0002047/0.309, allocations: 208.1 kB / 449.8 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.022e-05/0.3091, allocations: 35.77 kB / 449.8 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.3092, allocations: 48.09 kB / 449.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.3092, allocations: 0 / 449.8 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.3092, allocations: 4 kB / 449.8 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.3092, allocations: 7.922 kB / 449.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/0.3109, allocations: 0.7942 MB / 450.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3109, allocations: 128 / 450.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004131/0.3113, allocations: 83.88 kB / 450.7 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.995e-06/0.3113, allocations: 7.938 kB / 450.7 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.769e-05/0.3114, allocations: 12 kB / 450.7 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3114, allocations: 0 / 450.7 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3114, allocations: 4 kB / 450.7 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001478/0.3128, allocations: 0.668 MB / 451.4 MB, free: 2.945 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001315/0.313, allocations: 63.72 kB / 451.5 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.858e-05/0.313, allocations: 12 kB / 451.5 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002815/0.3133, allocations: 35.95 kB / 451.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.894e-05/0.3134, allocations: 27.95 kB / 451.6 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.3134, allocations: 8 kB / 451.6 MB, free: 2.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002662/0.3137, allocations: 239.1 kB / 451.8 MB, free: 2.574 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3137, allocations: 0 / 451.8 MB, free: 2.574 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005335/0.3142, allocations: 139.9 kB / 451.9 MB, free: 2.438 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.0001222/0.3143, allocations: 99.25 kB / 452 MB, free: 2.332 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001867/0.3162, allocations: 0.66 MB / 452.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3162, allocations: 4.125 kB / 452.7 MB, free: 1.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004539/0.3167, allocations: 171.8 kB / 452.9 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006389/0.3173, allocations: 105.3 kB / 453 MB, free: 1.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002009/0.3193, allocations: 1.043 MB / 454 MB, free: 324 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002492/0.3196, allocations: 224 kB / 454.2 MB, free: 76 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.3197, allocations: 35.42 kB / 454.3 MB, free: 40 kB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3197, allocations: 0 / 454.3 MB, free: 40 kB / 350.1 MB Notification: Performance of Templates: time 0.009526/0.3292, allocations: 6.063 MB / 460.3 MB, free: 9.984 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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: 7.6924752769991755]