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.001026/0.001026, allocations: 117.7 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009921/0.0009921, allocations: 207.8 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2915, allocations: 50.55 MB / 409.2 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005404/0.2969, allocations: 3.117 MB / 412.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00236/0.2993, allocations: 0.9969 MB / 413.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004588/0.2998, allocations: 19.88 kB / 413.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000415/0.3002, allocations: 83.23 kB / 413.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002796/0.3005, allocations: 103.1 kB / 413.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006749/0.3012, allocations: 235.1 kB / 413.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005328/0.3017, allocations: 0.5146 MB / 414.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003097/0.3021, allocations: 173.2 kB / 414.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002067/0.3023, allocations: 199.2 kB / 414.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002436/0.3025, allocations: 210.9 kB / 414.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-05/0.3026, allocations: 44 kB / 414.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.542e-05/0.3027, allocations: 40 kB / 414.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001407/0.3028, allocations: 99.67 kB / 415 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001748/0.303, allocations: 210.8 kB / 415.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004867/0.3035, allocations: 0.5032 MB / 415.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3035, allocations: 0 / 415.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3035, allocations: 0 / 415.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.3035, allocations: 0 / 415.8 MB, free: 11.18 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.001231/0.3048, allocations: 0.7561 MB / 416.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3048, allocations: 12.03 kB / 416.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.424e-05/0.3049, allocations: 56.28 kB / 416.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00053/0.3054, allocations: 363.8 kB / 416.9 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.976e-05/0.3055, allocations: 29.38 kB / 417 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.711e-05/0.3056, allocations: 44.27 kB / 417 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000815/0.3064, allocations: 455.5 kB / 417.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.3064, allocations: 11.98 kB / 417.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.378e-05/0.3065, allocations: 12 kB / 417.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.3065, allocations: 8 kB / 417.5 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009267/0.3074, allocations: 383.6 kB / 417.9 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001943/0.3094, allocations: 1.555 MB / 419.4 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007751/0.3102, allocations: 314.6 kB / 419.7 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000387/0.3106, allocations: 164.7 kB / 419.9 MB, free: 6.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.726e-05/0.3106, allocations: 3.938 kB / 419.9 MB, free: 6.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.3106, allocations: 38.56 kB / 419.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.714e-06/0.3106, allocations: 0 / 419.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.002976/0.3136, allocations: 1.392 MB / 421.3 MB, free: 5.281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.475e-05/0.3137, allocations: 106.8 kB / 421.4 MB, free: 5.152 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003518/0.3141, allocations: 361.6 kB / 421.8 MB, free: 4.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.3141, allocations: 29.7 kB / 421.8 MB, free: 4.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.3142, allocations: 239.9 kB / 422 MB, free: 4.516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.628e-05/0.3143, allocations: 118.4 kB / 422.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001182/0.3145, allocations: 78.12 kB / 422.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.3146, allocations: 346.8 kB / 422.6 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00045/0.315, allocations: 174.5 kB / 422.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004612/0.3155, allocations: 261.6 kB / 423 MB, free: 3.508 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000793/0.3163, allocations: 391.9 kB / 423.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3163, allocations: 0 / 423.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009926/0.3173, allocations: 496.8 kB / 423.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.3174, allocations: 12.03 kB / 423.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.3174, allocations: 0 / 423.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.3174, allocations: 4 kB / 423.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008065/0.3182, allocations: 215.7 kB / 424.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.3197, allocations: 1.572 MB / 425.7 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002951/0.3201, allocations: 39.95 kB / 425.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.957e-05/0.3201, allocations: 16 kB / 425.7 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004828/0.3206, allocations: 277 kB / 426 MB, free: 352 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004149/0.321, allocations: 245.6 kB / 426.2 MB, free: 72 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007294/0.3217, allocations: 371.8 kB / 426.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.633e-06/0.3218, allocations: 0 / 426.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009023/0.3227, allocations: 472.7 kB / 427 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.916e-06/0.3227, allocations: 4 kB / 427.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.515e-06/0.3227, allocations: 4 kB / 427.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.649e-06/0.3227, allocations: 4 kB / 427.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004776/0.3232, allocations: 120.1 kB / 427.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.3232, allocations: 11.92 kB / 427.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00028/0.3235, allocations: 35.95 kB / 427.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.366e-05/0.3235, allocations: 12 kB / 427.2 MB, free: 15.02 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.0001506/0.3237, allocations: 208.1 kB / 427.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.642e-05/0.3237, allocations: 39.53 kB / 427.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.382e-05/0.3238, allocations: 52.23 kB / 427.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.3238, allocations: 7.938 kB / 427.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.3239, allocations: 0 / 427.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3239, allocations: 0 / 427.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001519/0.3254, allocations: 0.923 MB / 428.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3254, allocations: 0 / 428.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003912/0.3258, allocations: 95.92 kB / 428.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.3258, allocations: 0 / 428.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.249e-05/0.3258, allocations: 8 kB / 428.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.869e-06/0.3259, allocations: 4 kB / 428.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3259, allocations: 0 / 428.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.3273, allocations: 0.6747 MB / 429.2 MB, free: 12.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.3275, allocations: 136.7 kB / 429.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.995e-05/0.3275, allocations: 8 kB / 429.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.3278, allocations: 35.95 kB / 429.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.437e-05/0.3279, allocations: 23.97 kB / 429.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.3279, allocations: 11.94 kB / 429.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002244/0.3282, allocations: 251.2 kB / 429.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3282, allocations: 3.938 kB / 429.7 MB, free: 12.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004809/0.3286, allocations: 135.9 kB / 429.8 MB, free: 12.3 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.0001349/0.3288, allocations: 103.2 kB / 429.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001699/0.3305, allocations: 0.6993 MB / 430.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3305, allocations: 0 / 430.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004347/0.3309, allocations: 180.5 kB / 430.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005694/0.3315, allocations: 94.14 kB / 430.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.3333, allocations: 1.002 MB / 431.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005028/0.3338, allocations: 0.8271 MB / 432.7 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002129/0.334, allocations: 63.23 kB / 432.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.006e-05/0.3341, allocations: 27.44 kB / 432.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3341, allocations: 0 / 432.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of Templates: time 0.00825/0.3424, allocations: 4.697 MB / 437.5 MB, free: 4.578 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches