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.001343/0.001343, allocations: 105.1 kB / 21.23 MB, free: 0.6562 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.001662/0.001662, allocations: 213.9 kB / 24.54 MB, free: 4.016 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.47/1.47, allocations: 230.3 MB / 258 MB, free: 8.262 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: translateModel(Modelica.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,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=5012,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 63.89 kB / 378.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3071, allocations: 53.36 MB / 432.1 MB, free: 7.094 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004787/0.3119, allocations: 3.166 MB / 435.3 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001986/0.3138, allocations: 1.013 MB / 436.3 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002087/0.3141, allocations: 15.88 kB / 436.3 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003716/0.3144, allocations: 87.17 kB / 436.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002552/0.3147, allocations: 107.1 kB / 436.5 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006132/0.3153, allocations: 247.1 kB / 436.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006318/0.3159, allocations: 0.5107 MB / 437.2 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/0.3162, allocations: 125.7 kB / 437.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002597/0.3165, allocations: 203.2 kB / 437.6 MB, free: 1.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002987/0.3168, allocations: 214.9 kB / 437.8 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.111e-05/0.3168, allocations: 44 kB / 437.8 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.552e-05/0.3169, allocations: 40 kB / 437.9 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.317, allocations: 99.62 kB / 438 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002225/0.3173, allocations: 218.8 kB / 438.2 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006102/0.3179, allocations: 499.5 kB / 438.7 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3179, allocations: 0 / 438.7 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3179, allocations: 0 / 438.7 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.3179, allocations: 11.94 kB / 438.7 MB, free: 0.5195 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.001475/0.3194, allocations: 0.7077 MB / 439.4 MB, free: 15.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.3194, allocations: 12.03 kB / 439.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.908e-05/0.3195, allocations: 52.61 kB / 439.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005332/0.32, allocations: 298.2 kB / 439.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.39e-05/0.3201, allocations: 29.38 kB / 439.8 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.861e-05/0.3201, allocations: 44.38 kB / 439.8 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009909/0.3211, allocations: 455.5 kB / 440.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.94e-05/0.3212, allocations: 7.953 kB / 440.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.542e-05/0.3212, allocations: 16 kB / 440.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.3212, allocations: 8 kB / 440.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.3223, allocations: 375.6 kB / 440.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00233/0.3246, allocations: 1.496 MB / 442.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000897/0.3255, allocations: 311.5 kB / 442.4 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004735/0.326, allocations: 152.8 kB / 442.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.326, allocations: 11.94 kB / 442.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.961e-05/0.3261, allocations: 34.56 kB / 442.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.643e-06/0.3261, allocations: 0 / 442.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003588/0.3297, allocations: 1.239 MB / 443.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001126/0.3298, allocations: 114.8 kB / 444 MB, free: 10.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004552/0.3302, allocations: 349.6 kB / 444.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.404e-05/0.3303, allocations: 33.7 kB / 444.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000216/0.3305, allocations: 248.3 kB / 444.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/0.3306, allocations: 119 kB / 444.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001409/0.3307, allocations: 78.12 kB / 444.8 MB, free: 10.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.3309, allocations: 346.8 kB / 445.1 MB, free: 9.738 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005159/0.3314, allocations: 178.5 kB / 445.3 MB, free: 9.562 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005795/0.332, allocations: 257.6 kB / 445.6 MB, free: 9.277 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.333, allocations: 395.3 kB / 445.9 MB, free: 8.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3331, allocations: 4 kB / 446 MB, free: 8.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001222/0.3343, allocations: 0.4895 MB / 446.4 MB, free: 8.363 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.3343, allocations: 8 kB / 446.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.3343, allocations: 0 / 446.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.401e-05/0.3343, allocations: 7.984 kB / 446.5 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009757/0.3353, allocations: 207.9 kB / 446.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001918/0.3372, allocations: 1.465 MB / 448.1 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003635/0.3376, allocations: 43.92 kB / 448.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.131e-05/0.3376, allocations: 16 kB / 448.2 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005917/0.3382, allocations: 277 kB / 448.5 MB, free: 6.234 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005303/0.3387, allocations: 245.6 kB / 448.7 MB, free: 5.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009048/0.3396, allocations: 367.4 kB / 449.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.643e-06/0.3396, allocations: 0 / 449.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001154/0.3408, allocations: 477.2 kB / 449.5 MB, free: 5.102 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.3408, allocations: 10.19 kB / 449.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.775e-06/0.3408, allocations: 224 / 449.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.152e-06/0.3408, allocations: 8 kB / 449.5 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005302/0.3413, allocations: 115.9 kB / 449.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.618e-05/0.3414, allocations: 15.91 kB / 449.7 MB, free: 4.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003359/0.3417, allocations: 31.97 kB / 449.7 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.856e-05/0.3417, allocations: 16 kB / 449.7 MB, free: 4.91 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.0002081/0.3419, allocations: 208.1 kB / 449.9 MB, free: 4.699 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.324e-05/0.342, allocations: 43.72 kB / 450 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.3421, allocations: 48.22 kB / 450 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3421, allocations: 7.938 kB / 450 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3421, allocations: 0 / 450 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.3422, allocations: 3.938 kB / 450 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/0.3441, allocations: 0.8872 MB / 450.9 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3441, allocations: 0 / 450.9 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000474/0.3445, allocations: 91.98 kB / 451 MB, free: 3.555 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.3445, allocations: 4 kB / 451 MB, free: 3.551 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.3446, allocations: 12 kB / 451 MB, free: 3.539 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.3446, allocations: 4 kB / 451 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3446, allocations: 0 / 451 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.3461, allocations: 0.6749 MB / 451.7 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001266/0.3462, allocations: 59.75 kB / 451.7 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.209e-05/0.3463, allocations: 11.98 kB / 451.8 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003131/0.3466, allocations: 31.97 kB / 451.8 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.45e-05/0.3467, allocations: 27.95 kB / 451.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.3467, allocations: 12 kB / 451.8 MB, free: 2.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002776/0.347, allocations: 247.2 kB / 452.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.347, allocations: 0 / 452.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005587/0.3475, allocations: 135.9 kB / 452.2 MB, free: 2.32 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.0001371/0.3477, allocations: 111.1 kB / 452.3 MB, free: 2.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002083/0.3498, allocations: 0.6529 MB / 453 MB, free: 1.547 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.3498, allocations: 0 / 453 MB, free: 1.547 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004992/0.3503, allocations: 180.4 kB / 453.1 MB, free: 1.371 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006572/0.3509, allocations: 99.77 kB / 453.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.3529, allocations: 1.01 MB / 454.2 MB, free: 240 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005201/0.3534, allocations: 0.8195 MB / 455.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002614/0.3536, allocations: 71.16 kB / 455.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.3537, allocations: 39.38 kB / 455.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3537, allocations: 0 / 455.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of Templates: time 0.01053/0.3643, allocations: 4.945 MB / 460.1 MB, free: 10.36 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.781843739561737]