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 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] 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=500,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=500,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] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001683/0.001683, allocations: 109.4 kB / 18.78 MB, free: 3.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001384, allocations: 207.2 kB / 19.79 MB, free: 2.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.986/1.986, allocations: 230.4 MB / 251.1 MB, free: 8.512 MB / 206.1 MB 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.002069/0.002069, allocations: 67.83 kB / 368.9 MB, free: 6.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2769/0.279, allocations: 53.31 MB / 422.3 MB, free: 7.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00455/0.2835, allocations: 3.14 MB / 425.4 MB, free: 4.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.2857, allocations: 1.005 MB / 426.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000254/0.286, allocations: 11.94 kB / 426.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004782/0.2864, allocations: 83.17 kB / 426.5 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002813/0.2867, allocations: 103.1 kB / 426.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006328/0.2874, allocations: 246.1 kB / 426.8 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006146/0.288, allocations: 0.5107 MB / 427.3 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000273/0.2882, allocations: 129.2 kB / 427.5 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002476/0.2885, allocations: 191.2 kB / 427.7 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002883/0.2888, allocations: 214.9 kB / 427.9 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.634e-05/0.2888, allocations: 40 kB / 427.9 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.547e-05/0.2889, allocations: 44 kB / 428 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001179/0.289, allocations: 107.6 kB / 428.1 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002161/0.2892, allocations: 214.8 kB / 428.3 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006399/0.2899, allocations: 0.4894 MB / 428.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.2899, allocations: 0 / 428.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2899, allocations: 0 / 428.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.2899, allocations: 0 / 428.8 MB, free: 1.328 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.00143/0.2913, allocations: 0.7791 MB / 429.5 MB, free: 0.5 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.2914, allocations: 8.031 kB / 429.5 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.2915, allocations: 60.61 kB / 429.6 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006193/0.2921, allocations: 372 kB / 430 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.2921, allocations: 29.38 kB / 430 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.494e-05/0.2922, allocations: 36.45 kB / 430 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009694/0.2932, allocations: 463.5 kB / 430.5 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.279e-05/0.2932, allocations: 3.953 kB / 430.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.863e-05/0.2932, allocations: 16 kB / 430.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.2933, allocations: 11.98 kB / 430.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009484/0.2942, allocations: 379.6 kB / 430.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002209/0.2964, allocations: 1.567 MB / 432.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008213/0.2972, allocations: 298.6 kB / 432.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004192/0.2977, allocations: 156.8 kB / 432.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.986e-05/0.2977, allocations: 7.938 kB / 432.9 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.2977, allocations: 34.56 kB / 432.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.774e-06/0.2977, allocations: 0 / 432.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003233/0.301, allocations: 1.39 MB / 434.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.136e-05/0.301, allocations: 106.8 kB / 434.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004219/0.3015, allocations: 361.6 kB / 434.8 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.296e-05/0.3015, allocations: 29.7 kB / 434.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001972/0.3017, allocations: 244.3 kB / 435.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.3018, allocations: 123.1 kB / 435.2 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.3019, allocations: 78.12 kB / 435.3 MB, free: 10.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001858/0.3021, allocations: 358.8 kB / 435.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004558/0.3026, allocations: 170.4 kB / 435.8 MB, free: 9.922 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000544/0.3031, allocations: 249.7 kB / 436 MB, free: 9.645 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008956/0.304, allocations: 399.9 kB / 436.4 MB, free: 9.227 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.304, allocations: 0 / 436.4 MB, free: 9.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001116/0.3051, allocations: 0.4931 MB / 436.9 MB, free: 8.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.3052, allocations: 4 kB / 436.9 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.3052, allocations: 11.92 kB / 436.9 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.3052, allocations: 7.938 kB / 436.9 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008566/0.306, allocations: 204 kB / 437.1 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/0.3078, allocations: 1.576 MB / 438.7 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003322/0.3082, allocations: 40.09 kB / 438.7 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.053e-05/0.3082, allocations: 15.98 kB / 438.7 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005349/0.3087, allocations: 268.9 kB / 439 MB, free: 6.473 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004971/0.3092, allocations: 245.7 kB / 439.3 MB, free: 6.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007975/0.31, allocations: 379.7 kB / 439.6 MB, free: 5.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.883e-06/0.31, allocations: 0 / 439.6 MB, free: 5.801 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001017/0.311, allocations: 469 kB / 440.1 MB, free: 5.336 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.3111, allocations: 8 kB / 440.1 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-06/0.3111, allocations: 0 / 440.1 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.571e-06/0.3111, allocations: 7.938 kB / 440.1 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004966/0.3116, allocations: 119.8 kB / 440.2 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.3116, allocations: 7.938 kB / 440.2 MB, free: 5.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003069/0.3119, allocations: 40.06 kB / 440.3 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.753e-05/0.3119, allocations: 19.98 kB / 440.3 MB, free: 5.137 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.0001724/0.3121, allocations: 208.1 kB / 440.5 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.395e-05/0.3121, allocations: 43.72 kB / 440.5 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.192e-05/0.3122, allocations: 44.25 kB / 440.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.3122, allocations: 7.938 kB / 440.6 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.174e-06/0.3122, allocations: 0 / 440.6 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3123, allocations: 4 kB / 440.6 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001687/0.3139, allocations: 0.9155 MB / 441.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.3139, allocations: 0 / 441.5 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004169/0.3144, allocations: 87.88 kB / 441.6 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.3144, allocations: 4 kB / 441.6 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.281e-05/0.3144, allocations: 4 kB / 441.6 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.3144, allocations: 4 kB / 441.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.3144, allocations: 128 / 441.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001379/0.3158, allocations: 0.6788 MB / 442.3 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001575/0.3159, allocations: 136.8 kB / 442.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.159e-05/0.316, allocations: 12.12 kB / 442.4 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002965/0.3163, allocations: 39.95 kB / 442.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.843e-05/0.3164, allocations: 19.97 kB / 442.5 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.3164, allocations: 12 kB / 442.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000288/0.3167, allocations: 247.2 kB / 442.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3167, allocations: 0 / 442.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005816/0.3172, allocations: 143.9 kB / 442.9 MB, free: 2.422 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.0001494/0.3174, allocations: 107.2 kB / 443 MB, free: 2.305 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002661/0.3201, allocations: 0.6527 MB / 443.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3201, allocations: 0 / 443.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006265/0.3207, allocations: 175.7 kB / 443.8 MB, free: 1.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008056/0.3215, allocations: 107.5 kB / 443.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.3244, allocations: 1.016 MB / 444.9 MB, free: 328 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007879/0.3252, allocations: 0.8117 MB / 445.7 MB, free: 15.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004488/0.3256, allocations: 63.23 kB / 445.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.3258, allocations: 39.42 kB / 445.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3258, allocations: 0 / 445.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of Templates: time 0.01578/0.3416, allocations: 4.789 MB / 450.6 MB, free: 10.63 MB / 366.1 MB 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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] Reference file matches