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.001958/0.001958, allocations: 99.66 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.002396/0.002396, allocations: 213.2 kB / 24.48 MB, free: 3.84 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.481/1.481, allocations: 230.6 MB / 258.2 MB, free: 7.82 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.001607/0.001607, allocations: 51.92 kB / 379 MB, free: 2.598 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.2532, allocations: 53.37 MB / 432.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004644/0.2579, allocations: 2.911 MB / 435.2 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002125/0.26, allocations: 0.962 MB / 436.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002641/0.2603, allocations: 19.88 kB / 436.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003719/0.2607, allocations: 87.17 kB / 436.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002994/0.261, allocations: 111 kB / 436.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006569/0.2616, allocations: 234.9 kB / 436.6 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006385/0.2622, allocations: 0.5185 MB / 437.2 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002747/0.2625, allocations: 117.7 kB / 437.3 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.2628, allocations: 199.2 kB / 437.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00026/0.2631, allocations: 187 kB / 437.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.573e-05/0.2631, allocations: 44 kB / 437.7 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.725e-05/0.2632, allocations: 40 kB / 437.7 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.2633, allocations: 111.5 kB / 437.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001795/0.2635, allocations: 175.1 kB / 438 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005868/0.2641, allocations: 0.4956 MB / 438.5 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2641, allocations: 0 / 438.5 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2641, allocations: 0 / 438.5 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.2641, allocations: 0 / 438.5 MB, free: 0.5547 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.001375/0.2655, allocations: 0.7038 MB / 439.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.2655, allocations: 12.03 kB / 439.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.624e-05/0.2656, allocations: 52.61 kB / 439.3 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000596/0.2662, allocations: 306.2 kB / 439.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.695e-05/0.2663, allocations: 33.31 kB / 439.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.985e-05/0.2663, allocations: 36.38 kB / 439.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009937/0.2673, allocations: 0.5067 MB / 440.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.2673, allocations: 3.953 kB / 440.2 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.183e-05/0.2674, allocations: 19.98 kB / 440.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.2674, allocations: 12 kB / 440.2 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001012/0.2684, allocations: 371.6 kB / 440.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002196/0.2706, allocations: 1.36 MB / 441.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008729/0.2715, allocations: 295.4 kB / 442.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00045/0.2719, allocations: 160.8 kB / 442.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.742e-05/0.272, allocations: 0 / 442.4 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.616e-05/0.272, allocations: 38.5 kB / 442.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.443e-06/0.272, allocations: 0 / 442.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003433/0.2754, allocations: 1.232 MB / 443.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.123e-05/0.2755, allocations: 110.8 kB / 443.7 MB, free: 11.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004174/0.2759, allocations: 349.5 kB / 444.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.656e-05/0.276, allocations: 33.7 kB / 444.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001984/0.2762, allocations: 252.5 kB / 444.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.816e-05/0.2763, allocations: 115.2 kB / 444.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.2764, allocations: 82.08 kB / 444.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001989/0.2766, allocations: 346.8 kB / 444.9 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000493/0.2771, allocations: 170.5 kB / 445 MB, free: 9.699 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005837/0.2777, allocations: 309.1 kB / 445.4 MB, free: 9.352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009957/0.2787, allocations: 395.8 kB / 445.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.2787, allocations: 0 / 445.7 MB, free: 8.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001209/0.2799, allocations: 496.9 kB / 446.2 MB, free: 8.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.2799, allocations: 4 kB / 446.2 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.2799, allocations: 8 kB / 446.2 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.203e-05/0.2799, allocations: 4 kB / 446.2 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009464/0.2809, allocations: 215.9 kB / 446.4 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001828/0.2827, allocations: 1.446 MB / 447.9 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003907/0.2831, allocations: 35.89 kB / 447.9 MB, free: 6.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.2831, allocations: 16 kB / 447.9 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005837/0.2837, allocations: 277 kB / 448.2 MB, free: 6.352 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005271/0.2842, allocations: 297 kB / 448.5 MB, free: 6.016 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008574/0.2851, allocations: 367.7 kB / 448.9 MB, free: 5.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.475e-06/0.2851, allocations: 0 / 448.9 MB, free: 5.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001122/0.2862, allocations: 469 kB / 449.3 MB, free: 5.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.7e-05/0.2862, allocations: 8 kB / 449.3 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.2862, allocations: 0 / 449.3 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.366e-06/0.2862, allocations: 4 kB / 449.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005306/0.2868, allocations: 132 kB / 449.5 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.2868, allocations: 4 kB / 449.5 MB, free: 5.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003377/0.2871, allocations: 35.91 kB / 449.5 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.2872, allocations: 19.94 kB / 449.5 MB, free: 4.965 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.0001929/0.2873, allocations: 208.1 kB / 449.7 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.34e-05/0.2874, allocations: 39.77 kB / 449.8 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.2875, allocations: 48.09 kB / 449.8 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.2875, allocations: 4 kB / 449.8 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.2875, allocations: 0 / 449.8 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.2875, allocations: 7.875 kB / 449.8 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001715/0.2893, allocations: 0.7903 MB / 450.6 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.2893, allocations: 0 / 450.6 MB, free: 3.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004439/0.2897, allocations: 91.86 kB / 450.7 MB, free: 3.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.973e-06/0.2897, allocations: 3.938 kB / 450.7 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.523e-05/0.2897, allocations: 11.94 kB / 450.7 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.094e-06/0.2898, allocations: 8 kB / 450.7 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.2898, allocations: 4.125 kB / 450.7 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001572/0.2913, allocations: 0.6758 MB / 451.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001661/0.2915, allocations: 55.73 kB / 451.5 MB, free: 2.934 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.566e-05/0.2915, allocations: 11.98 kB / 451.5 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003112/0.2919, allocations: 31.97 kB / 451.5 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.705e-05/0.292, allocations: 23.95 kB / 451.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.292, allocations: 12 kB / 451.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002849/0.2923, allocations: 231.2 kB / 451.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2923, allocations: 4 kB / 451.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005994/0.2929, allocations: 140 kB / 451.9 MB, free: 2.492 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.0001228/0.293, allocations: 103.2 kB / 452 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002105/0.2951, allocations: 0.6559 MB / 452.7 MB, free: 1.727 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.2951, allocations: 0 / 452.7 MB, free: 1.727 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004816/0.2956, allocations: 168.5 kB / 452.8 MB, free: 1.562 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007411/0.2963, allocations: 96.66 kB / 452.9 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.2985, allocations: 1.051 MB / 454 MB, free: 384 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.2987, allocations: 216 kB / 454.2 MB, free: 144 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.2988, allocations: 39.38 kB / 454.2 MB, free: 104 kB / 350.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2988, allocations: 4 kB / 454.2 MB, free: 100 kB / 350.1 MB Notification: Performance of Templates: time 0.01063/0.3095, allocations: 6.073 MB / 460.3 MB, free: 10.04 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.723921597935259]