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.001174/0.001174, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 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.001466/0.001466, allocations: 167.4 kB / 25.61 MB, free: 8.578 MB / 18.57 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 0.9531/0.9531, allocations: 177 MB / 205.9 MB, free: 4.453 MB / 186.7 MB " [Timeout remaining time 179] 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 9.52e-07/9.52e-07, allocations: 0 / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.164e-05/1.259e-05, allocations: 6.312 kB / 274.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00421/0.004222, allocations: 3.031 MB / 277.1 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001642/0.005864, allocations: 0.9777 MB / 278.1 MB, free: 272 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002159/0.00608, allocations: 19.88 kB / 278.1 MB, free: 252 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002905/0.006371, allocations: 95.09 kB / 278.2 MB, free: 156 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.006598, allocations: 104.5 kB / 278.3 MB, free: 52 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005147/0.007113, allocations: 228.4 kB / 278.6 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004884/0.007601, allocations: 0.5306 MB / 279.1 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002067/0.007808, allocations: 125.6 kB / 279.2 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002696/0.008077, allocations: 291.2 kB / 279.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.008269, allocations: 151.5 kB / 279.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.27e-05/0.008322, allocations: 44 kB / 279.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.843e-05/0.008371, allocations: 40 kB / 279.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.163e-05/0.008462, allocations: 107.6 kB / 279.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.008583, allocations: 143.6 kB / 280 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003314/0.008914, allocations: 338.6 kB / 280.3 MB, free: 14.08 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.633e-06/0.008916, allocations: 0 / 280.3 MB, free: 14.08 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.008916, allocations: 3.938 kB / 280.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.008921, allocations: 0 / 280.3 MB, free: 14.07 MB / 266.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.0009233/0.009844, allocations: 0.7764 MB / 281.1 MB, free: 13.26 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.772e-05/0.009872, allocations: 8.031 kB / 281.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.009976, allocations: 92.5 kB / 281.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003354/0.01031, allocations: 312.3 kB / 281.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/0.01034, allocations: 29.38 kB / 281.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.025e-05/0.01039, allocations: 36.38 kB / 281.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004341/0.01083, allocations: 406.5 kB / 281.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.691e-05/0.01084, allocations: 8.141 kB / 282 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.01087, allocations: 24.36 kB / 282 MB, free: 12.28 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.01e-05/0.01088, allocations: 11.94 kB / 282 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002154/0.0111, allocations: 126.8 kB / 282.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001495/0.01259, allocations: 1.534 MB / 283.6 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002952/0.01289, allocations: 171.3 kB / 283.8 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.856e-05/0.01299, allocations: 56.16 kB / 283.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.01301, allocations: 7.984 kB / 283.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.578e-05/0.01303, allocations: 45.39 kB / 283.9 MB, free: 10.24 MB / 266.7 MB Notification: Performance of pre-optimization done (n=30): time 1.332e-06/0.01303, allocations: 0 / 283.9 MB, free: 10.24 MB / 266.7 MB Notification: Performance of matching and sorting (n=32): time 0.0009756/0.01401, allocations: 0.681 MB / 284.6 MB, free: 9.496 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.248e-05/0.01405, allocations: 106.8 kB / 284.7 MB, free: 9.367 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003533/0.01441, allocations: 366.5 kB / 285.1 MB, free: 8.992 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.01443, allocations: 29.7 kB / 285.1 MB, free: 8.957 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.01457, allocations: 303.2 kB / 285.4 MB, free: 8.656 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.501e-05/0.01464, allocations: 118.9 kB / 285.5 MB, free: 8.539 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.01475, allocations: 83.81 kB / 285.6 MB, free: 8.445 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.01489, allocations: 0.5195 MB / 286.1 MB, free: 7.914 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.852e-05/0.01498, allocations: 61.64 kB / 286.2 MB, free: 7.852 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001616/0.01514, allocations: 216.8 kB / 286.4 MB, free: 7.582 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000214/0.01535, allocations: 209.5 kB / 286.6 MB, free: 7.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.01536, allocations: 3.984 kB / 286.6 MB, free: 7.336 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0003503/0.01571, allocations: 293.2 kB / 286.9 MB, free: 7.043 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.01572, allocations: 8 kB / 286.9 MB, free: 7.035 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.01572, allocations: 3.938 kB / 286.9 MB, free: 7.031 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.01573, allocations: 4 kB / 286.9 MB, free: 7.027 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004676/0.0162, allocations: 159.8 kB / 287 MB, free: 6.871 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001131/0.01733, allocations: 1.826 MB / 288.9 MB, free: 4.938 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.01751, allocations: 23.98 kB / 288.9 MB, free: 4.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.01753, allocations: 12 kB / 288.9 MB, free: 4.902 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001541/0.01769, allocations: 184 kB / 289.1 MB, free: 4.719 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001664/0.01785, allocations: 220.8 kB / 289.3 MB, free: 4.445 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0002203/0.01807, allocations: 210.5 kB / 289.5 MB, free: 4.203 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.743e-06/0.01807, allocations: 0 / 289.5 MB, free: 4.203 MB / 266.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0003629/0.01844, allocations: 283.9 kB / 289.8 MB, free: 3.922 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.536e-06/0.01845, allocations: 8 kB / 289.8 MB, free: 3.914 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.745e-06/0.01845, allocations: 0 / 289.8 MB, free: 3.914 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.829e-06/0.01845, allocations: 8 kB / 289.8 MB, free: 3.906 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003135/0.01877, allocations: 111.8 kB / 289.9 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.01877, allocations: 4 kB / 289.9 MB, free: 3.793 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001682/0.01894, allocations: 28.2 kB / 289.9 MB, free: 3.766 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.01896, allocations: 12 kB / 290 MB, free: 3.754 MB / 266.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 (PI.I.local_reset,integrator.local_reset,kinematicPTP.noWphase) * 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.0001152/0.01907, allocations: 288 kB / 290.2 MB, free: 3.465 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.717e-05/0.01914, allocations: 51.72 kB / 290.3 MB, free: 3.414 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.724e-05/0.0192, allocations: 48.09 kB / 290.3 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.0192, allocations: 0 / 290.3 MB, free: 3.363 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.0192, allocations: 4 kB / 290.3 MB, free: 3.359 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.01921, allocations: 11.92 kB / 290.3 MB, free: 3.348 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006846/0.01989, allocations: 0.6074 MB / 291 MB, free: 2.691 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.01989, allocations: 0 / 291 MB, free: 2.691 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002403/0.02013, allocations: 75.89 kB / 291 MB, free: 2.617 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.02014, allocations: 7.984 kB / 291 MB, free: 2.609 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.02016, allocations: 8 kB / 291 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.02016, allocations: 0 / 291 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.02016, allocations: 4 kB / 291 MB, free: 2.598 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004072/0.02057, allocations: 451.1 kB / 291.5 MB, free: 2.121 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.351e-05/0.02065, allocations: 55.72 kB / 291.5 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.419e-05/0.02069, allocations: 12.06 kB / 291.6 MB, free: 2.055 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/0.02085, allocations: 19.98 kB / 291.6 MB, free: 2.035 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.02091, allocations: 31.89 kB / 291.6 MB, free: 2.004 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.323e-05/0.02092, allocations: 8 kB / 291.6 MB, free: 1.996 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001338/0.02105, allocations: 235 kB / 291.8 MB, free: 1.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02105, allocations: 0 / 291.8 MB, free: 1.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004534/0.02151, allocations: 136 kB / 292 MB, free: 1.637 MB / 266.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.225e-05/0.02159, allocations: 107.1 kB / 292.1 MB, free: 1.52 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006432/0.02223, allocations: 373.3 kB / 292.4 MB, free: 1.148 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.02223, allocations: 0.875 kB / 292.4 MB, free: 1.148 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.02236, allocations: 83.94 kB / 292.5 MB, free: 1.062 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004871/0.02284, allocations: 101.8 kB / 292.6 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001448/0.02429, allocations: 0.8874 MB / 293.5 MB, free: 32 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001002/0.02439, allocations: 109.7 kB / 293.6 MB, free: 15.91 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001832/0.02457, allocations: 51.19 kB / 293.7 MB, free: 15.86 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002371/0.02481, allocations: 166.1 kB / 293.8 MB, free: 15.7 MB / 282.7 MB Notification: Performance of SimCode: time 7.11e-07/0.02481, allocations: 0 / 293.8 MB, free: 15.7 MB / 282.7 MB Notification: Performance of Templates: time 0.009191/0.034, allocations: 5.377 MB / 299.2 MB, free: 10.41 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9340802868828177]