Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001511/0.001511, allocations: 112.9 kB / 19.17 MB, free: 3.891 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.001636/0.001636, allocations: 210.5 kB / 22.13 MB, free: 0.9375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.741/1.741, allocations: 230.4 MB / 255.4 MB, free: 14.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 75.81 kB / 374.7 MB, free: 9.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09229/0.09433, allocations: 53.31 MB / 428 MB, free: 4.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004844/0.09918, allocations: 3.138 MB / 431.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002355/0.1015, allocations: 1.001 MB / 432.2 MB, free: 288 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005254/0.1021, allocations: 11.94 kB / 432.2 MB, free: 276 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004995/0.1026, allocations: 91.16 kB / 432.3 MB, free: 184 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004883/0.103, allocations: 103.1 kB / 432.4 MB, free: 80 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1841/0.2871, allocations: 233.9 kB / 432.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006974/0.2878, allocations: 0.5079 MB / 433.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002578/0.2881, allocations: 130.6 kB / 433.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002226/0.2883, allocations: 201 kB / 433.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002167/0.2885, allocations: 200.4 kB / 433.6 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.89e-05/0.2886, allocations: 40.53 kB / 433.7 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.343e-05/0.2887, allocations: 40.94 kB / 433.7 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.656e-05/0.2888, allocations: 106.3 kB / 433.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001552/0.2889, allocations: 218.2 kB / 434 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004615/0.2894, allocations: 0.4937 MB / 434.5 MB, free: 7.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2894, allocations: 0 / 434.5 MB, free: 7.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2894, allocations: 0.8438 kB / 434.5 MB, free: 7.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.2894, allocations: 0 / 434.5 MB, free: 7.684 MB / 350.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.001123/0.2905, allocations: 0.7788 MB / 435.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2906, allocations: 9.312 kB / 435.3 MB, free: 7.168 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.582e-05/0.2907, allocations: 55.92 kB / 435.4 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004334/0.2911, allocations: 371.9 kB / 435.7 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.2911, allocations: 31.62 kB / 435.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.072e-05/0.2912, allocations: 35.5 kB / 435.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008136/0.292, allocations: 456.2 kB / 436.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.292, allocations: 11.2 kB / 436.3 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.2921, allocations: 16.75 kB / 436.3 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.938e-06/0.2921, allocations: 12.78 kB / 436.3 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009868/0.2931, allocations: 379.4 kB / 436.7 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001892/0.295, allocations: 1.566 MB / 438.2 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007989/0.2958, allocations: 295.7 kB / 438.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004164/0.2962, allocations: 157.5 kB / 438.7 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.203e-05/0.2962, allocations: 6.875 kB / 438.7 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.2962, allocations: 42.81 kB / 438.7 MB, free: 5.836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.784e-06/0.2962, allocations: 0 / 438.7 MB, free: 5.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003158/0.2994, allocations: 1.389 MB / 440.1 MB, free: 5.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.2994, allocations: 114.7 kB / 440.2 MB, free: 5.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003878/0.2998, allocations: 359.3 kB / 440.6 MB, free: 4.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.2998, allocations: 30.8 kB / 440.6 MB, free: 4.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.3, allocations: 249.5 kB / 440.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.345e-05/0.3, allocations: 115.1 kB / 441 MB, free: 4.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.3001, allocations: 77.27 kB / 441 MB, free: 4.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.112e-05/0.3002, allocations: 349.5 kB / 441.4 MB, free: 4.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004741/0.3007, allocations: 171.9 kB / 441.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004965/0.3012, allocations: 261.4 kB / 441.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008629/0.302, allocations: 391 kB / 442.2 MB, free: 3.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3021, allocations: 5 kB / 442.2 MB, free: 3.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001091/0.3031, allocations: 495.2 kB / 442.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3032, allocations: 6.891 kB / 442.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3032, allocations: 2.094 kB / 442.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.3032, allocations: 4.375 kB / 442.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008963/0.3041, allocations: 208.5 kB / 442.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.3055, allocations: 1.568 MB / 444.5 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003572/0.3058, allocations: 39.92 kB / 444.5 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/0.3059, allocations: 19.72 kB / 444.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005089/0.3064, allocations: 272.5 kB / 444.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000429/0.3068, allocations: 242.7 kB / 445 MB, free: 1.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007582/0.3076, allocations: 373 kB / 445.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.354e-06/0.3076, allocations: 1.156 kB / 445.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009854/0.3086, allocations: 477.7 kB / 445.8 MB, free: 1.453 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.3086, allocations: 7.266 kB / 445.9 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.3086, allocations: 6.594 kB / 445.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.631e-06/0.3086, allocations: 4.062 kB / 445.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004808/0.3091, allocations: 115.9 kB / 446 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.3091, allocations: 13.08 kB / 446 MB, free: 1.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003223/0.3094, allocations: 37.56 kB / 446 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.481e-05/0.3094, allocations: 12 kB / 446 MB, free: 1.434 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.0001213/0.3095, allocations: 207.3 kB / 446.2 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.961e-05/0.3096, allocations: 42.89 kB / 446.3 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000102/0.3097, allocations: 46.52 kB / 446.3 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.3097, allocations: 9.953 kB / 446.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3097, allocations: 0 / 446.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.122e-06/0.3097, allocations: 3 kB / 446.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001583/0.3113, allocations: 0.9129 MB / 447.3 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.3113, allocations: 5.969 kB / 447.3 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004185/0.3117, allocations: 86.34 kB / 447.3 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.3117, allocations: 6.797 kB / 447.4 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.422e-05/0.3118, allocations: 8.062 kB / 447.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3118, allocations: 3.156 kB / 447.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.3118, allocations: 1.062 kB / 447.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001369/0.3131, allocations: 0.6723 MB / 448 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.3133, allocations: 137.1 kB / 448.2 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.3133, allocations: 9.438 kB / 448.2 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.3136, allocations: 36.23 kB / 448.2 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.552e-05/0.3137, allocations: 27.12 kB / 448.2 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.747e-05/0.3137, allocations: 11.91 kB / 448.3 MB, free: 140 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002527/0.314, allocations: 249 kB / 448.5 MB, free: 4 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.314, allocations: 1.312 kB / 448.5 MB, free: 4 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005952/0.3145, allocations: 132.8 kB / 448.6 MB, free: 0 / 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.0001601/0.3147, allocations: 114.7 kB / 448.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001986/0.3167, allocations: 0.6566 MB / 449.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3167, allocations: 448 / 449.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004575/0.3172, allocations: 179 kB / 449.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006261/0.3178, allocations: 97.78 kB / 449.7 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002/0.3198, allocations: 1.055 MB / 450.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004803/0.3203, allocations: 0.8219 MB / 451.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001329/0.3204, allocations: 37.05 kB / 451.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3204, allocations: 0 / 451.6 MB, free: 14.31 MB / 366.1 MB Notification: Performance of Templates: time 0.01022/0.3306, allocations: 6.002 MB / 457.6 MB, free: 12.41 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.626301747048274]