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/ModelicaServices trunk/package.mo", uses=false) 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) 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) 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=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/ModelicaServices trunk/package.mo): time 0.001058/0.001058, allocations: 113.1 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001131/0.001131, allocations: 208.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 55.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2636, allocations: 50.55 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00462/0.2683, allocations: 3.121 MB / 413 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00189/0.2702, allocations: 0.9931 MB / 414 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002431/0.2705, allocations: 15.94 kB / 414.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003962/0.2709, allocations: 87.17 kB / 414.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.2711, allocations: 99.08 kB / 414.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005607/0.2717, allocations: 231.6 kB / 414.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005404/0.2722, allocations: 0.5068 MB / 415 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003195/0.2726, allocations: 181.2 kB / 415.1 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002225/0.2728, allocations: 199.1 kB / 415.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002421/0.273, allocations: 210.9 kB / 415.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.235e-05/0.2731, allocations: 40 kB / 415.6 MB, free: 11.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.199e-05/0.2732, allocations: 40 kB / 415.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.2733, allocations: 103.6 kB / 415.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001764/0.2735, allocations: 214.8 kB / 415.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004753/0.274, allocations: 499.2 kB / 416.4 MB, free: 11.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.274, allocations: 7.922 kB / 416.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.274, allocations: 4 kB / 416.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.805e-06/0.274, allocations: 0 / 416.4 MB, free: 11.07 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.001366/0.2754, allocations: 0.76 MB / 417.2 MB, free: 10.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.2754, allocations: 8.031 kB / 417.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.2756, allocations: 56.28 kB / 417.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006137/0.2762, allocations: 363.8 kB / 417.6 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.648e-05/0.2762, allocations: 33.38 kB / 417.6 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.857e-05/0.2763, allocations: 44.27 kB / 417.7 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008746/0.2772, allocations: 455.5 kB / 418.1 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.458e-05/0.2772, allocations: 7.938 kB / 418.1 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.989e-05/0.2773, allocations: 16 kB / 418.2 MB, free: 9.223 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.2773, allocations: 11.98 kB / 418.2 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009276/0.2782, allocations: 371.7 kB / 418.5 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001851/0.2801, allocations: 1.559 MB / 420.1 MB, free: 7.195 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007583/0.2809, allocations: 309.4 kB / 420.4 MB, free: 6.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004002/0.2813, allocations: 168.7 kB / 420.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.965e-05/0.2813, allocations: 11.92 kB / 420.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.2813, allocations: 38.55 kB / 420.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.453e-06/0.2813, allocations: 0 / 420.6 MB, free: 6.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.00294/0.2843, allocations: 1.381 MB / 422 MB, free: 5.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.583e-05/0.2844, allocations: 110.8 kB / 422.1 MB, free: 5.047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.2847, allocations: 357.6 kB / 422.4 MB, free: 4.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.2847, allocations: 33.7 kB / 422.5 MB, free: 4.652 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001503/0.2849, allocations: 235.9 kB / 422.7 MB, free: 4.414 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.828e-05/0.285, allocations: 122.2 kB / 422.8 MB, free: 4.293 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.2851, allocations: 78.12 kB / 422.9 MB, free: 4.211 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.2852, allocations: 350.8 kB / 423.2 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004291/0.2857, allocations: 170.5 kB / 423.4 MB, free: 3.691 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000489/0.2862, allocations: 257.7 kB / 423.7 MB, free: 3.406 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008423/0.287, allocations: 395.9 kB / 424 MB, free: 2.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/0.287, allocations: 0 / 424 MB, free: 2.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001025/0.2881, allocations: 0.4889 MB / 424.5 MB, free: 2.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.2881, allocations: 4 kB / 424.5 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.2881, allocations: 4 kB / 424.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.2881, allocations: 4 kB / 424.6 MB, free: 2.484 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008344/0.289, allocations: 219.8 kB / 424.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001492/0.2905, allocations: 1.576 MB / 426.3 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000322/0.2908, allocations: 35.95 kB / 426.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.435e-05/0.2908, allocations: 16.09 kB / 426.4 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004675/0.2913, allocations: 272.9 kB / 426.7 MB, free: 244 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004138/0.2917, allocations: 245.7 kB / 426.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007049/0.2924, allocations: 367.7 kB / 427.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.422e-06/0.2925, allocations: 4 kB / 427.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009012/0.2934, allocations: 468.7 kB / 427.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.516e-06/0.2934, allocations: 8.219 kB / 427.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.2934, allocations: 8 kB / 427.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.25e-06/0.2934, allocations: 4 kB / 427.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004602/0.2939, allocations: 115.8 kB / 427.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.802e-06/0.2939, allocations: 7.938 kB / 427.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.2942, allocations: 39.95 kB / 427.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.238e-05/0.2942, allocations: 16 kB / 427.9 MB, free: 14.91 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.000136/0.2944, allocations: 204.1 kB / 428.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.519e-05/0.2944, allocations: 39.53 kB / 428.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.184e-05/0.2945, allocations: 44.25 kB / 428.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.2945, allocations: 11.92 kB / 428.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2945, allocations: 0 / 428.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.2946, allocations: 0 / 428.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.2961, allocations: 0.9192 MB / 429.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.2961, allocations: 12.06 kB / 429.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003931/0.2965, allocations: 83.92 kB / 429.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.369e-06/0.2965, allocations: 4 kB / 429.2 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.2965, allocations: 8 kB / 429.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.2965, allocations: 3.938 kB / 429.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2965, allocations: 4 kB / 429.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001289/0.2978, allocations: 0.6631 MB / 429.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001428/0.298, allocations: 140.7 kB / 430 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.523e-05/0.298, allocations: 8.125 kB / 430 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002991/0.2983, allocations: 39.89 kB / 430.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.69e-05/0.2984, allocations: 31.95 kB / 430.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.2984, allocations: 11.94 kB / 430.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002266/0.2987, allocations: 247.2 kB / 430.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2987, allocations: 0 / 430.4 MB, free: 12.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005002/0.2992, allocations: 135.9 kB / 430.5 MB, free: 12.2 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.0001237/0.2993, allocations: 111.1 kB / 430.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001732/0.3011, allocations: 0.6915 MB / 431.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3011, allocations: 4.438 kB / 431.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004272/0.3015, allocations: 179.8 kB / 431.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006312/0.3021, allocations: 92.39 kB / 431.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001642/0.3038, allocations: 1.039 MB / 432.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.3041, allocations: 0.8233 MB / 433.4 MB, free: 9.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.3043, allocations: 31.44 kB / 433.5 MB, free: 9.156 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3043, allocations: 0 / 433.5 MB, free: 9.156 MB / 350.1 MB Notification: Performance of Templates: time 0.007644/0.3119, allocations: 5.984 MB / 439.5 MB, free: 3.184 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches