Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.PID_Controller") translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001057/0.001057, allocations: 198.8 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 227.2 MB / 245 MB, free: 7.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008064/0.0008063, allocations: 108.8 kB / 297.3 MB, free: 6.152 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001961/0.000196, allocations: 8 kB / 357.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.1785, allocations: 51.48 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0887/0.2672, allocations: 83.36 MB / 492.8 MB, free: 7.246 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001901/0.2674, allocations: 79.97 kB / 492.8 MB, free: 7.168 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02155/0.289, allocations: 8.348 MB / 0.4894 GB, free: 14.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.289, allocations: 0 / 0.4894 GB, free: 14.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.374e-05/0.2891, allocations: 8 kB / 0.4894 GB, free: 14.8 MB / 378.7 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.00117/0.2902, allocations: 0.7328 MB / 0.4902 GB, free: 14.01 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2903, allocations: 8.031 kB / 0.4902 GB, free: 14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001081/0.2904, allocations: 55.62 kB / 0.4902 GB, free: 13.95 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004938/0.2909, allocations: 355.6 kB / 0.4906 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.113e-05/0.2909, allocations: 29 kB / 0.4906 GB, free: 13.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.976e-05/0.291, allocations: 36 kB / 0.4906 GB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008316/0.2918, allocations: 466.3 kB / 0.4911 GB, free: 13.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.241e-05/0.2919, allocations: 7.906 kB / 0.4911 GB, free: 13.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.2919, allocations: 16 kB / 0.4911 GB, free: 13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.2919, allocations: 12 kB / 0.4911 GB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009247/0.2929, allocations: 419.6 kB / 0.4915 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.2948, allocations: 1.586 MB / 0.493 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007765/0.2956, allocations: 350.8 kB / 0.4934 GB, free: 10.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.556e-05/0.2957, allocations: 4 kB / 0.4934 GB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.2957, allocations: 42.56 kB / 0.4934 GB, free: 10.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.633e-06/0.2957, allocations: 0 / 0.4934 GB, free: 10.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.003099/0.2988, allocations: 1.503 MB / 0.4949 GB, free: 8.883 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.567e-05/0.2989, allocations: 81.11 kB / 0.495 GB, free: 8.785 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003503/0.2992, allocations: 324.8 kB / 0.4953 GB, free: 8.461 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.2993, allocations: 29.7 kB / 0.4953 GB, free: 8.426 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001398/0.2994, allocations: 248 kB / 0.4955 GB, free: 8.18 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.175e-05/0.2995, allocations: 114.3 kB / 0.4957 GB, free: 8.066 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.634e-05/0.2995, allocations: 4 kB / 0.4957 GB, free: 8.062 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.2996, allocations: 350.8 kB / 0.496 GB, free: 7.711 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004266/0.3001, allocations: 180.8 kB / 0.4962 GB, free: 7.535 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004715/0.3005, allocations: 276.8 kB / 0.4964 GB, free: 7.234 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004412/0.301, allocations: 208.3 kB / 0.4966 GB, free: 7.031 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.301, allocations: 3.938 kB / 0.4966 GB, free: 7.027 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001037/0.3021, allocations: 0.5242 MB / 0.4971 GB, free: 6.496 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002519/0.3023, allocations: 0.7854 MB / 0.4979 GB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3023, allocations: 0 / 0.4979 GB, free: 5.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.3024, allocations: 4 kB / 0.4979 GB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008692/0.3032, allocations: 263.7 kB / 0.4982 GB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005675/0.3038, allocations: 0.6991 MB / 0.4989 GB, free: 4.668 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003264/0.3041, allocations: 56.05 kB / 0.4989 GB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.686e-05/0.3042, allocations: 12 kB / 0.4989 GB, free: 4.602 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.3042, allocations: 4 kB / 0.4989 GB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008728/0.3051, allocations: 454.8 kB / 0.4994 GB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.536e-06/0.3051, allocations: 0 / 0.4994 GB, free: 4.156 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.001e-06/0.3051, allocations: 4 kB / 0.4994 GB, free: 4.152 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000478/0.3056, allocations: 132 kB / 0.4995 GB, free: 4.023 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.3056, allocations: 4 kB / 0.4995 GB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.3059, allocations: 35.97 kB / 0.4995 GB, free: 3.984 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.565e-05/0.3059, allocations: 19.95 kB / 0.4995 GB, free: 3.965 MB / 378.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002097/0.3061, allocations: 249 kB / 0.4998 GB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.864e-05/0.3062, allocations: 35.53 kB / 0.4998 GB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.5e-05/0.3063, allocations: 48.25 kB / 0.4999 GB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3063, allocations: 0 / 0.4999 GB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.3063, allocations: 4 kB / 0.4999 GB, free: 3.621 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.523e-06/0.3063, allocations: 3.984 kB / 0.4999 GB, free: 3.617 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.3079, allocations: 0.9583 MB / 0.5008 GB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.3079, allocations: 0 / 0.5008 GB, free: 2.594 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004125/0.3084, allocations: 104 kB / 0.5009 GB, free: 2.492 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.121e-06/0.3084, allocations: 4 kB / 0.5009 GB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.3084, allocations: 11.95 kB / 0.5009 GB, free: 2.477 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.3084, allocations: 3.938 kB / 0.5009 GB, free: 2.473 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.3084, allocations: 4 kB / 0.5009 GB, free: 2.469 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.3097, allocations: 0.7821 MB / 0.5017 GB, free: 1.633 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001446/0.3099, allocations: 140.7 kB / 0.5018 GB, free: 1.477 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.161e-05/0.31, allocations: 12.12 kB / 0.5018 GB, free: 1.465 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002972/0.3103, allocations: 47.95 kB / 0.5019 GB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.704e-05/0.3103, allocations: 23.92 kB / 0.5019 GB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.3104, allocations: 12 kB / 0.5019 GB, free: 1.383 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002325/0.3106, allocations: 251.2 kB / 0.5022 GB, free: 1.141 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3106, allocations: 0 / 0.5022 GB, free: 1.141 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000507/0.3111, allocations: 147.9 kB / 0.5023 GB, free: 0.9961 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001333/0.3113, allocations: 111.1 kB / 0.5024 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001726/0.313, allocations: 0.7705 MB / 0.5032 GB, free: 112 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.313, allocations: 0 / 0.5032 GB, free: 112 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1385/0.4516, allocations: 205 kB / 0.5033 GB, free: 95.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000671/0.4523, allocations: 85.23 kB / 0.5034 GB, free: 95.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002016/0.4543, allocations: 1.21 MB / 0.5046 GB, free: 94.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003114/0.4546, allocations: 0.8309 MB / 0.5054 GB, free: 93.86 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003093/0.455, allocations: 61.47 kB / 0.5055 GB, free: 93.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.4551, allocations: 30.8 kB / 0.5055 GB, free: 93.85 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.4551, allocations: 0 / 0.5055 GB, free: 93.85 MB / 378.7 MB Notification: Performance of Templates: time 0.008874/0.464, allocations: 4.193 MB / 0.5096 GB, free: 93.62 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches