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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009369/0.000937, allocations: 182.6 kB / 18.04 MB, free: 3.789 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.274/1.274, allocations: 205.4 MB / 224.2 MB, free: 9.047 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006997/0.0006997, allocations: 88.98 kB / 272.5 MB, free: 8.281 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002828/0.000283, allocations: 12 kB / 329.4 MB, free: 15.31 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1869/0.1872, allocations: 47.58 MB / 377 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08751/0.2747, allocations: 81.88 MB / 458.9 MB, free: 14.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.275, allocations: 75.97 kB / 459 MB, free: 14.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02253/0.2975, allocations: 8.332 MB / 467.3 MB, free: 6.266 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2976, allocations: 3.938 kB / 467.3 MB, free: 6.262 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.844e-05/0.2976, allocations: 16 kB / 467.3 MB, free: 6.246 MB / 346.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.001291/0.2989, allocations: 0.7289 MB / 468.1 MB, free: 5.461 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.299, allocations: 12.03 kB / 468.1 MB, free: 5.449 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.2991, allocations: 48.38 kB / 468.1 MB, free: 5.402 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005401/0.2997, allocations: 376.6 kB / 468.5 MB, free: 4.996 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.2997, allocations: 25.38 kB / 468.5 MB, free: 4.973 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.935e-05/0.2998, allocations: 44.28 kB / 468.5 MB, free: 4.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008826/0.3007, allocations: 470.9 kB / 469 MB, free: 4.445 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.3007, allocations: 4.188 kB / 469 MB, free: 4.441 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.927e-05/0.3007, allocations: 19.94 kB / 469 MB, free: 4.422 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.3008, allocations: 8 kB / 469 MB, free: 4.414 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009574/0.3017, allocations: 419.6 kB / 469.4 MB, free: 4.004 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002173/0.3039, allocations: 1.595 MB / 471 MB, free: 2.32 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007915/0.3047, allocations: 350.5 kB / 471.4 MB, free: 1.965 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004321/0.3052, allocations: 184.8 kB / 471.6 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.3052, allocations: 8 kB / 471.6 MB, free: 1.773 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.3052, allocations: 38.48 kB / 471.6 MB, free: 1.727 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 2.334e-06/0.3052, allocations: 4 kB / 471.6 MB, free: 1.723 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.003091/0.3083, allocations: 1.508 MB / 473.1 MB, free: 124 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.48e-05/0.3084, allocations: 81.11 kB / 473.2 MB, free: 24 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003812/0.3088, allocations: 369.5 kB / 473.6 MB, free: 15.65 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.138e-05/0.3088, allocations: 37.7 kB / 473.6 MB, free: 15.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/0.309, allocations: 243.9 kB / 473.8 MB, free: 15.37 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.822e-05/0.3091, allocations: 114.5 kB / 473.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.531e-05/0.3091, allocations: 4 kB / 474 MB, free: 15.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3092, allocations: 358.8 kB / 474.3 MB, free: 14.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004316/0.3097, allocations: 180.8 kB / 474.5 MB, free: 14.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004955/0.3102, allocations: 272.8 kB / 474.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008399/0.311, allocations: 423.5 kB / 475.2 MB, free: 13.97 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.311, allocations: 3.984 kB / 475.2 MB, free: 13.97 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001035/0.3121, allocations: 0.5285 MB / 475.7 MB, free: 13.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-05/0.3122, allocations: 148 kB / 475.8 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3122, allocations: 0 / 475.8 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/0.3122, allocations: 4 kB / 475.8 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008695/0.3131, allocations: 259.7 kB / 476.1 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00158/0.3147, allocations: 1.54 MB / 477.6 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.315, allocations: 60.02 kB / 477.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.765e-05/0.3151, allocations: 12 kB / 477.7 MB, free: 11.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.933e-06/0.3151, allocations: 4 kB / 477.7 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008891/0.316, allocations: 451.6 kB / 478.1 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-06/0.316, allocations: 3.938 kB / 478.2 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.771e-06/0.316, allocations: 4 kB / 478.2 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004589/0.3165, allocations: 127.8 kB / 478.3 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.3165, allocations: 8.156 kB / 478.3 MB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002683/0.3167, allocations: 39.97 kB / 478.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.336e-05/0.3168, allocations: 12 kB / 478.3 MB, free: 10.62 MB / 362.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.000216/0.317, allocations: 252.9 kB / 478.6 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.134e-05/0.3171, allocations: 39.53 kB / 478.6 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.969e-05/0.3172, allocations: 48.25 kB / 478.7 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3172, allocations: 4 kB / 478.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.204e-06/0.3172, allocations: 0 / 478.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.3172, allocations: 3.984 kB / 478.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.3188, allocations: 0.9658 MB / 479.6 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.3188, allocations: 8 kB / 479.7 MB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004105/0.3192, allocations: 95.88 kB / 479.7 MB, free: 9.137 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.3192, allocations: 3.984 kB / 479.8 MB, free: 9.133 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.726e-05/0.3193, allocations: 8 kB / 479.8 MB, free: 9.125 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.79e-06/0.3193, allocations: 7.969 kB / 479.8 MB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.3193, allocations: 4 kB / 479.8 MB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.3207, allocations: 0.7411 MB / 480.5 MB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000137/0.3209, allocations: 136.7 kB / 480.6 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.124e-05/0.3209, allocations: 8 kB / 480.7 MB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002834/0.3212, allocations: 55.89 kB / 480.7 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/0.3213, allocations: 23.97 kB / 480.7 MB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.3213, allocations: 8 kB / 480.7 MB, free: 8.098 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002521/0.3216, allocations: 255.2 kB / 481 MB, free: 7.852 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3216, allocations: 0 / 481 MB, free: 7.852 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005392/0.3221, allocations: 148 kB / 481.1 MB, free: 7.707 MB / 362.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.0001292/0.3222, allocations: 111.1 kB / 481.2 MB, free: 7.59 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001821/0.3241, allocations: 0.7928 MB / 482 MB, free: 6.797 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3241, allocations: 0 / 482 MB, free: 6.797 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004431/0.3245, allocations: 212.1 kB / 482.2 MB, free: 6.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006136/0.3252, allocations: 85.94 kB / 482.3 MB, free: 6.504 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001889/0.3271, allocations: 1.222 MB / 483.5 MB, free: 5.238 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004154/0.3275, allocations: 0.8198 MB / 484.4 MB, free: 4.395 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002515/0.3278, allocations: 63.22 kB / 484.4 MB, free: 4.336 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.697e-05/0.3278, allocations: 31.44 kB / 484.5 MB, free: 4.305 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3279, allocations: 0 / 484.5 MB, free: 4.305 MB / 362.7 MB Notification: Performance of Templates: time 0.008255/0.3361, allocations: 4.256 MB / 488.7 MB, free: 76 kB / 362.7 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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches