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.0009227/0.0009227, allocations: 95.95 kB / 18 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001076/0.001076, allocations: 201.4 kB / 18.93 MB, free: 4.852 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.7 MB / 247.5 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002328/0.0002328, allocations: 8 kB / 308.4 MB, free: 0.8516 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08993/0.09018, allocations: 51.53 MB / 359.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.003245/0.09346, allocations: 2.767 MB / 362.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001823/0.0953, allocations: 0.9701 MB / 363.6 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003301/0.09566, allocations: 19.88 kB / 363.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003047/0.09597, allocations: 67.48 kB / 363.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002458/0.09623, allocations: 79.39 kB / 363.8 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005096/0.09675, allocations: 206.9 kB / 364 MB, free: 9.195 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004527/0.09721, allocations: 495 kB / 364.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.09748, allocations: 161.2 kB / 364.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.09766, allocations: 155.2 kB / 364.8 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/0.09786, allocations: 178.9 kB / 365 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.03e-05/0.09791, allocations: 16 kB / 365 MB, free: 8.199 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.794e-05/0.09796, allocations: 16 kB / 365 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.523e-05/0.09805, allocations: 75.67 kB / 365.1 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001544/0.09821, allocations: 204.5 kB / 365.3 MB, free: 7.902 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002906/0.0985, allocations: 347.3 kB / 365.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.09851, allocations: 0 / 365.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.041e-06/0.09852, allocations: 0 / 365.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.09853, allocations: 0 / 365.6 MB, free: 7.562 MB / 302.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.001071/0.09961, allocations: 0.7172 MB / 366.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.09965, allocations: 12.03 kB / 366.3 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.03e-05/0.09973, allocations: 48.38 kB / 366.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003766/0.1001, allocations: 351.7 kB / 366.7 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.728e-05/0.1001, allocations: 29.38 kB / 366.8 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.941e-05/0.1002, allocations: 36.38 kB / 366.8 MB, free: 6.297 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008554/0.1011, allocations: 487.5 kB / 367.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/0.1011, allocations: 3.906 kB / 367.3 MB, free: 5.789 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.531e-05/0.1011, allocations: 16 kB / 367.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.1012, allocations: 8 kB / 367.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009916/0.1022, allocations: 427.6 kB / 367.7 MB, free: 5.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.104, allocations: 1.575 MB / 369.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007816/0.1048, allocations: 342.6 kB / 369.6 MB, free: 3.328 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004463/0.1053, allocations: 196.7 kB / 369.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.1053, allocations: 7.938 kB / 369.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.1053, allocations: 34.56 kB / 369.9 MB, free: 3.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.443e-06/0.1053, allocations: 0 / 369.9 MB, free: 3.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003209/0.1085, allocations: 1.514 MB / 371.4 MB, free: 1.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.1086, allocations: 110.8 kB / 371.5 MB, free: 1.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000346/0.109, allocations: 357.6 kB / 371.8 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.109, allocations: 29.7 kB / 371.9 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.1091, allocations: 244 kB / 372.1 MB, free: 0.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.6e-05/0.1092, allocations: 110.4 kB / 372.2 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.228e-05/0.1093, allocations: 49.69 kB / 372.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1094, allocations: 350.7 kB / 372.6 MB, free: 196 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004702/0.1099, allocations: 188.8 kB / 372.8 MB, free: 8 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1613/0.2712, allocations: 274.8 kB / 373.1 MB, free: 19.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001137/0.2724, allocations: 442.5 kB / 373.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.2724, allocations: 0.5625 kB / 373.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001368/0.2738, allocations: 0.5224 MB / 374 MB, free: 19.2 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.231e-05/0.2739, allocations: 155.3 kB / 374.2 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.2739, allocations: 2.594 kB / 374.2 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.792e-05/0.2739, allocations: 4.172 kB / 374.2 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.275, allocations: 266.5 kB / 374.4 MB, free: 19.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001476/0.2765, allocations: 1.546 MB / 376 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004075/0.2769, allocations: 48 kB / 376 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.514e-05/0.2769, allocations: 14.64 kB / 376 MB, free: 17.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.177e-06/0.277, allocations: 6.688 kB / 376 MB, free: 17.69 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001086/0.278, allocations: 444.9 kB / 376.5 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2781, allocations: 7.578 kB / 376.5 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.865e-06/0.2781, allocations: 4.125 kB / 376.5 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000495/0.2786, allocations: 124.3 kB / 376.6 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.158e-06/0.2786, allocations: 8.625 kB / 376.6 MB, free: 17.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003554/0.279, allocations: 47.11 kB / 376.7 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.985e-05/0.279, allocations: 19.06 kB / 376.7 MB, free: 17.65 MB / 302.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.0002417/0.2793, allocations: 245.2 kB / 376.9 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.725e-05/0.2793, allocations: 39.62 kB / 377 MB, free: 17.45 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001131/0.2795, allocations: 46.12 kB / 377 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.969e-06/0.2795, allocations: 8.531 kB / 377 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.2795, allocations: 3.625 kB / 377 MB, free: 17.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.2795, allocations: 7.031 kB / 377 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001851/0.2813, allocations: 0.9572 MB / 378 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.2814, allocations: 6.625 kB / 378 MB, free: 17.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004467/0.2818, allocations: 98.14 kB / 378.1 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.2818, allocations: 2.75 kB / 378.1 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.2819, allocations: 7.344 kB / 378.1 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.2819, allocations: 2.75 kB / 378.1 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/0.2819, allocations: 5.875 kB / 378.1 MB, free: 17.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00158/0.2835, allocations: 0.7374 MB / 378.8 MB, free: 16.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001642/0.2836, allocations: 140.3 kB / 379 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.497e-05/0.2837, allocations: 10.41 kB / 379 MB, free: 16.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000337/0.2841, allocations: 47.28 kB / 379 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.858e-05/0.2842, allocations: 27.45 kB / 379.1 MB, free: 16.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.2842, allocations: 15.31 kB / 379.1 MB, free: 16.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002802/0.2845, allocations: 245 kB / 379.3 MB, free: 16.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2845, allocations: 4 kB / 379.3 MB, free: 16.63 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006487/0.2851, allocations: 141.1 kB / 379.5 MB, free: 16.61 MB / 302.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.0001164/0.2853, allocations: 104.3 kB / 379.6 MB, free: 16.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002121/0.2874, allocations: 0.789 MB / 380.3 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.2874, allocations: 0 / 380.3 MB, free: 16.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004738/0.2879, allocations: 202.9 kB / 380.5 MB, free: 16.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007274/0.2886, allocations: 94.06 kB / 380.6 MB, free: 16.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.2905, allocations: 1.296 MB / 381.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002963/0.2908, allocations: 0.8207 MB / 382.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.2909, allocations: 31.48 kB / 382.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2909, allocations: 0 / 382.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of Templates: time 0.01065/0.3016, allocations: 5.877 MB / 388.7 MB, free: 13.05 MB / 302.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