Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001895/0.001895, allocations: 111.6 kB / 21.93 MB, free: 5.223 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.002651/0.002651, allocations: 213.5 kB / 25.22 MB, free: 3.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 207.7 MB / 236.1 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 57.8 kB / 348.4 MB, free: 9.406 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2799, allocations: 49.16 MB / 397.6 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004262/0.2842, allocations: 2.913 MB / 400.5 MB, free: 7.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001951/0.2861, allocations: 0.9783 MB / 401.5 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002847/0.2864, allocations: 21.44 kB / 401.5 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003644/0.2868, allocations: 83.95 kB / 401.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002572/0.287, allocations: 113.3 kB / 401.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005891/0.2876, allocations: 229.9 kB / 401.9 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005425/0.2881, allocations: 0.5329 MB / 402.5 MB, free: 6.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002595/0.2884, allocations: 115.1 kB / 402.6 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002323/0.2886, allocations: 203.2 kB / 402.8 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002581/0.2889, allocations: 184.7 kB / 402.9 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.73e-05/0.289, allocations: 40.69 kB / 403 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.898e-05/0.2891, allocations: 41.41 kB / 403 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.2892, allocations: 110 kB / 403.1 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000158/0.2893, allocations: 181.7 kB / 403.3 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005235/0.2898, allocations: 0.4987 MB / 403.8 MB, free: 5.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.2899, allocations: 4 kB / 403.8 MB, free: 5.555 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2899, allocations: 4 kB / 403.8 MB, free: 5.551 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.527e-06/0.2899, allocations: 0 / 403.8 MB, free: 5.551 MB / 318.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.001285/0.2911, allocations: 0.7086 MB / 404.5 MB, free: 5.051 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.2912, allocations: 12.89 kB / 404.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.2913, allocations: 62.59 kB / 404.6 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005391/0.2918, allocations: 305.1 kB / 404.9 MB, free: 4.789 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.2919, allocations: 32.47 kB / 404.9 MB, free: 4.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.779e-05/0.2919, allocations: 41.45 kB / 405 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000887/0.2928, allocations: 474.2 kB / 405.4 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.347e-05/0.2929, allocations: 13.61 kB / 405.4 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.312e-05/0.2929, allocations: 12.53 kB / 405.5 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/0.2929, allocations: 8.406 kB / 405.5 MB, free: 4.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009791/0.2939, allocations: 378.7 kB / 405.8 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001852/0.2957, allocations: 1.353 MB / 407.2 MB, free: 3.375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007919/0.2965, allocations: 292.7 kB / 407.5 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004354/0.297, allocations: 159.9 kB / 407.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.126e-05/0.297, allocations: 4.156 kB / 407.6 MB, free: 3.219 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.297, allocations: 45.34 kB / 407.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.625e-06/0.297, allocations: 0 / 407.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003167/0.3002, allocations: 1.241 MB / 408.9 MB, free: 2.547 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.921e-05/0.3002, allocations: 80.92 kB / 409 MB, free: 2.453 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003581/0.3006, allocations: 351.8 kB / 409.3 MB, free: 2.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.3006, allocations: 35.72 kB / 409.4 MB, free: 2.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001289/0.3007, allocations: 251.9 kB / 409.6 MB, free: 2.02 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.597e-05/0.3008, allocations: 115.3 kB / 409.7 MB, free: 1.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.3009, allocations: 76.92 kB / 409.8 MB, free: 1.883 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.693e-05/0.301, allocations: 347.8 kB / 410.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000455/0.3015, allocations: 173.1 kB / 410.3 MB, free: 1.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004942/0.302, allocations: 276.8 kB / 410.6 MB, free: 1.332 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008534/0.3028, allocations: 395.2 kB / 411 MB, free: 1.137 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.3028, allocations: 1.562 kB / 411 MB, free: 1.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001077/0.3039, allocations: 497 kB / 411.5 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/0.3039, allocations: 13.5 kB / 411.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.3039, allocations: 2.5 kB / 411.5 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.3039, allocations: 8.453 kB / 411.5 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008672/0.3048, allocations: 210.2 kB / 411.7 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001558/0.3064, allocations: 1.445 MB / 413.1 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003854/0.3068, allocations: 47.67 kB / 413.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.973e-05/0.3068, allocations: 11.34 kB / 413.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006141/0.3074, allocations: 271.8 kB / 413.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000496/0.3079, allocations: 262.3 kB / 413.7 MB, free: 15.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008476/0.3087, allocations: 374.9 kB / 414.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.164e-06/0.3087, allocations: 1.406 kB / 414.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.00104/0.3098, allocations: 467.8 kB / 414.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.3098, allocations: 5.938 kB / 414.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.3098, allocations: 2.344 kB / 414.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.903e-06/0.3098, allocations: 4.406 kB / 414.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.3103, allocations: 126.3 kB / 414.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.3103, allocations: 4.438 kB / 414.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003121/0.3106, allocations: 29.78 kB / 414.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.096e-05/0.3107, allocations: 30.55 kB / 414.7 MB, free: 14.5 MB / 334.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.0002035/0.3109, allocations: 202.8 kB / 414.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.685e-05/0.3109, allocations: 37.42 kB / 415 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.311, allocations: 45.8 kB / 415 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3111, allocations: 2.938 kB / 415 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.3111, allocations: 5.438 kB / 415 MB, free: 14.24 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3111, allocations: 7.875 kB / 415 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00174/0.3128, allocations: 0.7941 MB / 415.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.3128, allocations: 1.375 kB / 415.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004352/0.3133, allocations: 90.33 kB / 415.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.686e-06/0.3133, allocations: 6.656 kB / 415.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.551e-05/0.3133, allocations: 6.031 kB / 415.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.818e-06/0.3133, allocations: 3.156 kB / 415.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3133, allocations: 0.8438 kB / 415.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001529/0.3148, allocations: 0.6706 MB / 416.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.315, allocations: 62.91 kB / 416.7 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.941e-05/0.315, allocations: 6.781 kB / 416.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/0.3153, allocations: 38.09 kB / 416.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.658e-05/0.3154, allocations: 24.17 kB / 416.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.3154, allocations: 9 kB / 416.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002925/0.3157, allocations: 241.7 kB / 417 MB, free: 12.96 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3157, allocations: 3.938 kB / 417 MB, free: 12.95 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005919/0.3163, allocations: 134.7 kB / 417.1 MB, free: 12.94 MB / 334.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.0001343/0.3164, allocations: 105.8 kB / 417.2 MB, free: 12.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001933/0.3184, allocations: 0.6501 MB / 417.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.3184, allocations: 1.312 kB / 417.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004913/0.3189, allocations: 180.2 kB / 418 MB, free: 12.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006764/0.3195, allocations: 113.7 kB / 418.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002009/0.3215, allocations: 1.06 MB / 419.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.3218, allocations: 221 kB / 419.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001279/0.3219, allocations: 31.5 kB / 419.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3219, allocations: 0 / 419.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of Templates: time 0.01012/0.332, allocations: 6.127 MB / 425.6 MB, free: 6.5 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.887488811742514]