Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 105.5 kB / 18.4 MB, free: 4.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001766/0.001766, allocations: 187 kB / 19.33 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.474/1.474, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001326/0.001326, allocations: 47.94 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08572/0.08706, allocations: 46.61 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004586/0.09169, allocations: 3.126 MB / 378.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002144/0.09387, allocations: 1.01 MB / 379.9 MB, free: 432 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004216/0.09431, allocations: 15.94 kB / 380 MB, free: 416 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004165/0.09479, allocations: 95.17 kB / 380 MB, free: 320 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003864/0.09519, allocations: 103.1 kB / 380.1 MB, free: 216 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.176/0.2712, allocations: 228.6 kB / 380.4 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009172/0.2722, allocations: 0.5207 MB / 380.9 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003223/0.2725, allocations: 178.4 kB / 381.1 MB, free: 9.746 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.2728, allocations: 205 kB / 381.3 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002577/0.2731, allocations: 208.3 kB / 381.5 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.135e-05/0.2731, allocations: 39.88 kB / 381.5 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.979e-05/0.2732, allocations: 41.22 kB / 381.5 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.2733, allocations: 100.3 kB / 381.6 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001984/0.2735, allocations: 221.5 kB / 381.9 MB, free: 9.566 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006195/0.2742, allocations: 0.4945 MB / 382.4 MB, free: 9.496 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.2742, allocations: 0.7031 kB / 382.4 MB, free: 9.496 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.2742, allocations: 0.9062 kB / 382.4 MB, free: 9.496 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.2742, allocations: 0 / 382.4 MB, free: 9.496 MB / 318.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.001363/0.2756, allocations: 0.7657 MB / 383.1 MB, free: 8.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.2756, allocations: 13.75 kB / 383.1 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.2758, allocations: 58.19 kB / 383.2 MB, free: 8.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006086/0.2764, allocations: 379.8 kB / 383.6 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.199e-05/0.2764, allocations: 30.03 kB / 383.6 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.065e-05/0.2765, allocations: 36.17 kB / 383.6 MB, free: 8.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009408/0.2775, allocations: 447.4 kB / 384.1 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.2775, allocations: 14.16 kB / 384.1 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.8e-05/0.2776, allocations: 17.81 kB / 384.1 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/0.2776, allocations: 14.72 kB / 384.1 MB, free: 8.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009859/0.2786, allocations: 370.5 kB / 384.5 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.2805, allocations: 1.562 MB / 386 MB, free: 7.738 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008025/0.2813, allocations: 312.8 kB / 386.3 MB, free: 7.633 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004197/0.2817, allocations: 164.4 kB / 386.5 MB, free: 7.582 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.2818, allocations: 3.781 kB / 386.5 MB, free: 7.582 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.91e-05/0.2818, allocations: 45.12 kB / 386.5 MB, free: 7.531 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.863e-06/0.2818, allocations: 0 / 386.5 MB, free: 7.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.003215/0.285, allocations: 1.377 MB / 387.9 MB, free: 6.742 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.2851, allocations: 83.28 kB / 388 MB, free: 6.648 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003797/0.2855, allocations: 367.2 kB / 388.4 MB, free: 6.457 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.2855, allocations: 31.14 kB / 388.4 MB, free: 6.422 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.2856, allocations: 245.6 kB / 388.6 MB, free: 6.219 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.312e-05/0.2857, allocations: 118.6 kB / 388.8 MB, free: 6.129 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.2858, allocations: 75.23 kB / 388.8 MB, free: 6.082 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.696e-05/0.2859, allocations: 349.8 kB / 389.2 MB, free: 5.754 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004776/0.2864, allocations: 172 kB / 389.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004987/0.2869, allocations: 251.7 kB / 389.6 MB, free: 5.562 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008746/0.2878, allocations: 396 kB / 390 MB, free: 5.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.2878, allocations: 5.188 kB / 390 MB, free: 5.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001111/0.2889, allocations: 492 kB / 390.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.289, allocations: 5.406 kB / 390.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.289, allocations: 2.375 kB / 390.5 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.289, allocations: 9.016 kB / 390.5 MB, free: 5.199 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009182/0.2899, allocations: 208.2 kB / 390.7 MB, free: 5.191 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001376/0.2913, allocations: 1.582 MB / 392.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003741/0.2917, allocations: 38.16 kB / 392.3 MB, free: 3.711 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.257e-05/0.2917, allocations: 19.33 kB / 392.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005462/0.2923, allocations: 271.4 kB / 392.6 MB, free: 3.555 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004422/0.2927, allocations: 241.2 kB / 392.8 MB, free: 3.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007863/0.2935, allocations: 373.6 kB / 393.2 MB, free: 3.234 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.755e-06/0.2935, allocations: 1.312 kB / 393.2 MB, free: 3.234 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009871/0.2945, allocations: 468.4 kB / 393.6 MB, free: 3.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.2946, allocations: 5.922 kB / 393.6 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.2946, allocations: 2.188 kB / 393.6 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.951e-06/0.2946, allocations: 4.844 kB / 393.6 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005059/0.2951, allocations: 116.5 kB / 393.8 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.937e-06/0.2951, allocations: 12.8 kB / 393.8 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003242/0.2954, allocations: 34.75 kB / 393.8 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.651e-05/0.2955, allocations: 19.97 kB / 393.8 MB, free: 3.047 MB / 318.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.0001625/0.2956, allocations: 201.5 kB / 394 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.656e-05/0.2957, allocations: 39.94 kB / 394.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001186/0.2958, allocations: 46.97 kB / 394.1 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.2959, allocations: 11.88 kB / 394.1 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.2959, allocations: 0 / 394.1 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/0.2959, allocations: 2.062 kB / 394.1 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001952/0.2978, allocations: 0.9188 MB / 395 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.2979, allocations: 1.531 kB / 395 MB, free: 2.258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004499/0.2983, allocations: 86.72 kB / 395.1 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.144e-06/0.2983, allocations: 3.375 kB / 395.1 MB, free: 2.254 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.859e-05/0.2984, allocations: 13.09 kB / 395.1 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.781e-06/0.2984, allocations: 5.875 kB / 395.1 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2984, allocations: 1.344 kB / 395.1 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.2999, allocations: 0.6685 MB / 395.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.3, allocations: 137.6 kB / 396 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.187e-05/0.3001, allocations: 7.984 kB / 396 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000304/0.3004, allocations: 35.64 kB / 396 MB, free: 1.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.678e-05/0.3005, allocations: 23.8 kB / 396 MB, free: 1.766 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/0.3005, allocations: 7.516 kB / 396 MB, free: 1.766 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002738/0.3008, allocations: 250.8 kB / 396.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3008, allocations: 1.125 kB / 396.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005906/0.3014, allocations: 138.5 kB / 396.4 MB, free: 1.613 MB / 318.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.0001181/0.3015, allocations: 114.5 kB / 396.5 MB, free: 1.512 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001968/0.3035, allocations: 0.6911 MB / 397.2 MB, free: 1.359 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3035, allocations: 0 / 397.2 MB, free: 1.359 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004484/0.3039, allocations: 182.3 kB / 397.4 MB, free: 1.32 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006589/0.3046, allocations: 104.5 kB / 397.5 MB, free: 1.285 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/0.3064, allocations: 1.04 MB / 398.5 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003147/0.3067, allocations: 0.821 MB / 399.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.3068, allocations: 36.84 kB / 399.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3068, allocations: 0 / 399.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of Templates: time 0.01002/0.3168, allocations: 6.045 MB / 405.4 MB, free: 13.64 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches