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.001347/0.001347, allocations: 112.2 kB / 21.19 MB, free: 0.7539 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.001598/0.001598, allocations: 213.7 kB / 24.49 MB, free: 4.137 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.42/1.42, allocations: 230.6 MB / 258.3 MB, free: 7.98 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.001742/0.001742, allocations: 51.92 kB / 379 MB, free: 2.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2767, allocations: 53.36 MB / 432.4 MB, free: 6.906 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005176/0.2819, allocations: 3.162 MB / 435.5 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002137/0.284, allocations: 1.016 MB / 436.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002344/0.2842, allocations: 15.88 kB / 436.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003771/0.2846, allocations: 87.17 kB / 436.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002526/0.2849, allocations: 111.1 kB / 436.8 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006034/0.2855, allocations: 239.3 kB / 437 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006074/0.2861, allocations: 0.5224 MB / 437.5 MB, free: 1.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002709/0.2863, allocations: 129.5 kB / 437.6 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002598/0.2866, allocations: 203.2 kB / 437.8 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002826/0.2869, allocations: 207 kB / 438 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.053e-05/0.2869, allocations: 40 kB / 438.1 MB, free: 1.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.352e-05/0.287, allocations: 40 kB / 438.1 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001222/0.2871, allocations: 111.5 kB / 438.2 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002034/0.2873, allocations: 222.8 kB / 438.5 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000577/0.2879, allocations: 0.4885 MB / 438.9 MB, free: 336 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2879, allocations: 0 / 438.9 MB, free: 336 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2879, allocations: 0 / 438.9 MB, free: 336 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.2879, allocations: 0 / 438.9 MB, free: 336 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.001361/0.2893, allocations: 0.7038 MB / 439.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.2893, allocations: 8.031 kB / 439.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.697e-05/0.2894, allocations: 56.59 kB / 439.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005679/0.29, allocations: 298.2 kB / 440 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.382e-05/0.29, allocations: 29.38 kB / 440 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.552e-05/0.2901, allocations: 36.38 kB / 440.1 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009002/0.291, allocations: 463.5 kB / 440.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.457e-05/0.291, allocations: 3.953 kB / 440.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.649e-05/0.2911, allocations: 16 kB / 440.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.2911, allocations: 8 kB / 440.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009653/0.292, allocations: 379.6 kB / 440.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00221/0.2943, allocations: 1.504 MB / 442.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000843/0.2951, allocations: 295.1 kB / 442.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004294/0.2955, allocations: 160.8 kB / 442.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.28e-05/0.2956, allocations: 3.938 kB / 442.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.854e-05/0.2956, allocations: 38.56 kB / 442.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.874e-06/0.2956, allocations: 0 / 442.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003275/0.2989, allocations: 1.248 MB / 444.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.46e-05/0.299, allocations: 106.8 kB / 444.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004327/0.2994, allocations: 353.6 kB / 444.6 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.202e-05/0.2994, allocations: 29.7 kB / 444.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/0.2997, allocations: 252.4 kB / 444.9 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.2998, allocations: 123 kB / 445 MB, free: 9.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/0.2999, allocations: 74.14 kB / 445.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.3001, allocations: 354.8 kB / 445.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004676/0.3006, allocations: 170.5 kB / 445.6 MB, free: 9.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005301/0.3011, allocations: 261.6 kB / 445.8 MB, free: 9.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008912/0.302, allocations: 391.3 kB / 446.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.302, allocations: 4 kB / 446.2 MB, free: 8.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001088/0.3031, allocations: 0.4933 MB / 446.7 MB, free: 8.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.3031, allocations: 7.938 kB / 446.7 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.3031, allocations: 8 kB / 446.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.3031, allocations: 4 kB / 446.7 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008432/0.304, allocations: 204 kB / 446.9 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00182/0.3058, allocations: 1.472 MB / 448.4 MB, free: 6.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003101/0.3061, allocations: 36.06 kB / 448.4 MB, free: 6.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-05/0.3061, allocations: 15.98 kB / 448.5 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005569/0.3067, allocations: 269.6 kB / 448.7 MB, free: 6.055 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004984/0.3072, allocations: 257.5 kB / 449 MB, free: 5.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008207/0.308, allocations: 367.5 kB / 449.3 MB, free: 5.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.747e-06/0.308, allocations: 4 kB / 449.3 MB, free: 5.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009946/0.309, allocations: 469.3 kB / 449.8 MB, free: 4.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.309, allocations: 8 kB / 449.8 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.309, allocations: 4 kB / 449.8 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.15e-06/0.309, allocations: 4 kB / 449.8 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004724/0.3095, allocations: 115.8 kB / 449.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.554e-05/0.3095, allocations: 7.938 kB / 449.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.3098, allocations: 44.06 kB / 450 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.912e-05/0.3098, allocations: 19.98 kB / 450 MB, free: 4.715 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.0001739/0.31, allocations: 200.1 kB / 450.2 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.223e-05/0.3101, allocations: 43.72 kB / 450.2 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.253e-05/0.3102, allocations: 44.25 kB / 450.3 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.3102, allocations: 7.938 kB / 450.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.3102, allocations: 0 / 450.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3102, allocations: 4 kB / 450.3 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/0.3119, allocations: 0.8911 MB / 451.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3119, allocations: 0 / 451.2 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000416/0.3123, allocations: 83.88 kB / 451.3 MB, free: 3.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.3123, allocations: 4 kB / 451.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.3124, allocations: 8 kB / 451.3 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-06/0.3124, allocations: 4 kB / 451.3 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3124, allocations: 4 kB / 451.3 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001396/0.3138, allocations: 0.6717 MB / 452 MB, free: 2.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001273/0.3139, allocations: 67.73 kB / 452 MB, free: 2.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.642e-05/0.3139, allocations: 8 kB / 452 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.3142, allocations: 35.95 kB / 452.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.585e-05/0.3143, allocations: 23.95 kB / 452.1 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.017e-05/0.3143, allocations: 12 kB / 452.1 MB, free: 2.512 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002818/0.3146, allocations: 247.1 kB / 452.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3146, allocations: 0 / 452.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005382/0.3151, allocations: 147.9 kB / 452.5 MB, free: 2.129 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.0001331/0.3153, allocations: 103.2 kB / 452.6 MB, free: 2.016 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00184/0.3171, allocations: 0.6571 MB / 453.2 MB, free: 1.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.3171, allocations: 4 kB / 453.2 MB, free: 1.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004427/0.3176, allocations: 171.8 kB / 453.4 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000627/0.3182, allocations: 96.92 kB / 453.5 MB, free: 1.094 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.3201, allocations: 1.051 MB / 454.6 MB, free: 0 / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000526/0.3207, allocations: 0.8234 MB / 455.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.3208, allocations: 35.44 kB / 455.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3208, allocations: 0 / 455.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of Templates: time 0.01006/0.3308, allocations: 6.013 MB / 461.4 MB, free: 9.113 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.671864745905623]