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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002032/0.002032, allocations: 116.7 kB / 20.44 MB, free: 1.469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001792/0.001792, allocations: 214.2 kB / 23.74 MB, free: 4.695 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.868/1.868, allocations: 230.5 MB / 257.4 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 63.91 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2553, allocations: 53.41 MB / 431.2 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004634/0.2599, allocations: 3.148 MB / 434.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002025/0.262, allocations: 1.02 MB / 435.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002549/0.2622, allocations: 23.81 kB / 435.4 MB, free: 2.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003433/0.2626, allocations: 87.17 kB / 435.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.2628, allocations: 95.14 kB / 435.5 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006127/0.2634, allocations: 255 kB / 435.8 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005979/0.264, allocations: 0.5107 MB / 436.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002548/0.2643, allocations: 121.7 kB / 436.4 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002635/0.2645, allocations: 211.1 kB / 436.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002647/0.2648, allocations: 207 kB / 436.8 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.138e-05/0.2649, allocations: 40 kB / 436.9 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6e-05/0.2649, allocations: 40 kB / 436.9 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.265, allocations: 111.5 kB / 437 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.2652, allocations: 214.8 kB / 437.2 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005566/0.2658, allocations: 0.4943 MB / 437.7 MB, free: 132 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2658, allocations: 0 / 437.7 MB, free: 132 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2658, allocations: 0 / 437.7 MB, free: 132 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.2658, allocations: 0 / 437.7 MB, free: 132 kB / 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.001265/0.2671, allocations: 0.7001 MB / 438.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.2671, allocations: 8.031 kB / 438.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.067e-05/0.2672, allocations: 78.7 kB / 438.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.2673, allocations: 56.61 kB / 438.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005604/0.2679, allocations: 306.1 kB / 438.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.2679, allocations: 29.38 kB / 438.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.389e-05/0.268, allocations: 36.38 kB / 438.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008744/0.2688, allocations: 459.3 kB / 439.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.2689, allocations: 11.95 kB / 439.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.959e-05/0.2689, allocations: 12 kB / 439.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.2689, allocations: 11.94 kB / 439.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009643/0.2699, allocations: 379.6 kB / 439.8 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.2719, allocations: 1.5 MB / 441.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007811/0.2727, allocations: 302.3 kB / 441.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000427/0.2731, allocations: 164.6 kB / 441.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.2732, allocations: 4 kB / 441.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.2732, allocations: 34.56 kB / 441.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.493e-06/0.2732, allocations: 0 / 441.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003106/0.2763, allocations: 1.244 MB / 443 MB, free: 10.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.62e-05/0.2764, allocations: 106.8 kB / 443.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003849/0.2768, allocations: 353.6 kB / 443.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.184e-05/0.2768, allocations: 33.7 kB / 443.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/0.277, allocations: 244.3 kB / 443.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.2771, allocations: 126.9 kB / 443.9 MB, free: 9.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000119/0.2772, allocations: 82.12 kB / 443.9 MB, free: 9.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.2774, allocations: 354.7 kB / 444.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004504/0.2778, allocations: 166.5 kB / 444.5 MB, free: 9.078 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005465/0.2784, allocations: 257.7 kB / 444.7 MB, free: 8.793 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009202/0.2793, allocations: 395.3 kB / 445.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.2793, allocations: 0 / 445.1 MB, free: 8.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001154/0.2804, allocations: 0.4895 MB / 445.6 MB, free: 7.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.2805, allocations: 4 kB / 445.6 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.2805, allocations: 4 kB / 445.6 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.2805, allocations: 4 kB / 445.6 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000873/0.2814, allocations: 211.9 kB / 445.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001667/0.283, allocations: 1.476 MB / 447.3 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003392/0.2834, allocations: 31.97 kB / 447.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.96e-05/0.2834, allocations: 19.98 kB / 447.3 MB, free: 6.023 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005276/0.2839, allocations: 264.9 kB / 447.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004644/0.2844, allocations: 245.8 kB / 447.8 MB, free: 5.488 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008015/0.2852, allocations: 379.4 kB / 448.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.794e-06/0.2852, allocations: 0 / 448.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001011/0.2862, allocations: 469.3 kB / 448.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.2862, allocations: 6.5 kB / 448.7 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.2862, allocations: 4 kB / 448.7 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.871e-06/0.2862, allocations: 4 kB / 448.7 MB, free: 4.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004959/0.2867, allocations: 127.7 kB / 448.8 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.2867, allocations: 4 kB / 448.8 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003139/0.287, allocations: 40.12 kB / 448.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.735e-05/0.2871, allocations: 19.98 kB / 448.9 MB, free: 4.426 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.0001726/0.2872, allocations: 200.2 kB / 449.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.12e-05/0.2873, allocations: 47.59 kB / 449.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.2874, allocations: 56.12 kB / 449.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.2874, allocations: 4 kB / 449.2 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.2874, allocations: 4 kB / 449.2 MB, free: 4.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.2874, allocations: 3.984 kB / 449.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.2891, allocations: 0.8833 MB / 450 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2891, allocations: 0 / 450 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004153/0.2895, allocations: 91.86 kB / 450.1 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.2895, allocations: 0 / 450.1 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.2896, allocations: 8 kB / 450.1 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.157e-06/0.2896, allocations: 4 kB / 450.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2896, allocations: 4.125 kB / 450.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/0.291, allocations: 0.6671 MB / 450.8 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001312/0.2911, allocations: 67.73 kB / 450.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.964e-05/0.2911, allocations: 8 kB / 450.9 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002861/0.2914, allocations: 35.95 kB / 450.9 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.161e-05/0.2915, allocations: 27.95 kB / 451 MB, free: 2.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.865e-05/0.2915, allocations: 8 kB / 451 MB, free: 2.215 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002737/0.2918, allocations: 247.1 kB / 451.2 MB, free: 1.977 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2918, allocations: 0 / 451.2 MB, free: 1.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005522/0.2923, allocations: 140 kB / 451.3 MB, free: 1.84 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.001729/0.2941, allocations: 1.212 MB / 452.6 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001904/0.296, allocations: 0.6571 MB / 453.2 MB, free: 15.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.296, allocations: 4.125 kB / 453.2 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004576/0.2964, allocations: 175.8 kB / 453.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006489/0.2971, allocations: 109.2 kB / 453.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006594/0.3037, allocations: 4.009 MB / 457.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004584/0.3041, allocations: 0.8117 MB / 458.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002711/0.3044, allocations: 67.22 kB / 458.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002389/0.3046, allocations: 143.4 kB / 458.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3046, allocations: 0 / 458.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04074/0.3454, allocations: 9.047 MB / 467.6 MB, free: 1.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.76, allocations: 8 kB / 467.6 MB, free: 1.512 MB / 366.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.662289019906893]