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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001492/0.001492, allocations: 110.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001517/0.001517, allocations: 208 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.639/1.639, allocations: 227.7 MB / 247.9 MB, free: 10.17 MB / 206.1 MB 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.001792/0.001792, allocations: 59.91 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.199/0.2007, allocations: 50.55 MB / 410.2 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004364/0.2051, allocations: 3.124 MB / 413.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.2068, allocations: 0.997 MB / 414.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001753/0.207, allocations: 15.94 kB / 414.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003101/0.2073, allocations: 87.17 kB / 414.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002305/0.2075, allocations: 107.1 kB / 414.5 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005191/0.208, allocations: 235.6 kB / 414.8 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005611/0.2086, allocations: 0.5069 MB / 415.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.2088, allocations: 125.3 kB / 415.4 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.2091, allocations: 203.1 kB / 415.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002352/0.2093, allocations: 210.9 kB / 415.8 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.326e-05/0.2094, allocations: 40 kB / 415.8 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.943e-05/0.2094, allocations: 44 kB / 415.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.2095, allocations: 95.67 kB / 416 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.2097, allocations: 226.7 kB / 416.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005203/0.2103, allocations: 493.8 kB / 416.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.2103, allocations: 0 / 416.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2103, allocations: 0 / 416.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.2103, allocations: 0 / 416.7 MB, free: 10.9 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.001326/0.2116, allocations: 0.783 MB / 417.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.2116, allocations: 8.031 kB / 417.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.234e-05/0.2117, allocations: 52.61 kB / 417.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005205/0.2122, allocations: 376 kB / 417.9 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.186e-05/0.2123, allocations: 29.38 kB / 417.9 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.282e-05/0.2123, allocations: 36.38 kB / 417.9 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009085/0.2133, allocations: 463.5 kB / 418.4 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.2133, allocations: 7.953 kB / 418.4 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.406e-05/0.2133, allocations: 12 kB / 418.4 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.666e-05/0.2133, allocations: 8 kB / 418.4 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009821/0.2143, allocations: 379.6 kB / 418.8 MB, free: 8.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002104/0.2164, allocations: 1.571 MB / 420.4 MB, free: 6.992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008134/0.2172, allocations: 310.5 kB / 420.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004355/0.2177, allocations: 148.8 kB / 420.8 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.2177, allocations: 7.938 kB / 420.8 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.2177, allocations: 38.56 kB / 420.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.363e-06/0.2177, allocations: 0 / 420.9 MB, free: 6.473 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003267/0.221, allocations: 1.39 MB / 422.3 MB, free: 4.988 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.423e-05/0.2211, allocations: 106.8 kB / 422.4 MB, free: 4.859 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003802/0.2215, allocations: 353.6 kB / 422.7 MB, free: 4.508 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.336e-05/0.2215, allocations: 33.7 kB / 422.7 MB, free: 4.469 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001869/0.2217, allocations: 252.4 kB / 423 MB, free: 4.215 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.532e-05/0.2218, allocations: 115 kB / 423.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.2219, allocations: 78.12 kB / 423.2 MB, free: 4.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.2221, allocations: 350.8 kB / 423.5 MB, free: 3.668 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004655/0.2225, allocations: 174.5 kB / 423.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005299/0.2231, allocations: 249.7 kB / 423.9 MB, free: 3.219 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009134/0.224, allocations: 395.9 kB / 424.3 MB, free: 2.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.224, allocations: 0 / 424.3 MB, free: 2.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001134/0.2251, allocations: 0.493 MB / 424.8 MB, free: 2.305 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.2251, allocations: 11.98 kB / 424.8 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2251, allocations: 0 / 424.8 MB, free: 2.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.2251, allocations: 4.219 kB / 424.8 MB, free: 2.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000899/0.226, allocations: 211.7 kB / 425 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001759/0.2278, allocations: 1.58 MB / 426.6 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/0.2281, allocations: 35.97 kB / 426.6 MB, free: 340 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.049e-05/0.2282, allocations: 16 kB / 426.7 MB, free: 324 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005445/0.2287, allocations: 272.9 kB / 426.9 MB, free: 48 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004964/0.2292, allocations: 241.8 kB / 427.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008247/0.23, allocations: 375.7 kB / 427.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.553e-06/0.23, allocations: 3.938 kB / 427.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001022/0.231, allocations: 469.1 kB / 428 MB, free: 14.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.004e-05/0.2311, allocations: 4 kB / 428 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.2311, allocations: 4 kB / 428 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.969e-06/0.2311, allocations: 4 kB / 428 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005004/0.2316, allocations: 123.8 kB / 428.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.133e-06/0.2316, allocations: 12.09 kB / 428.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003043/0.2319, allocations: 31.97 kB / 428.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.2319, allocations: 19.94 kB / 428.2 MB, free: 14.71 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.0001645/0.2321, allocations: 216 kB / 428.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.659e-05/0.2321, allocations: 39.72 kB / 428.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.978e-05/0.2322, allocations: 48.25 kB / 428.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.2322, allocations: 11.94 kB / 428.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-06/0.2322, allocations: 0 / 428.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.2322, allocations: 0 / 428.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001648/0.2339, allocations: 0.9154 MB / 429.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2339, allocations: 0 / 429.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004246/0.2343, allocations: 87.88 kB / 429.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.2343, allocations: 3.938 kB / 429.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.2343, allocations: 8 kB / 429.5 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.2343, allocations: 8.125 kB / 429.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2343, allocations: 0 / 429.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.2358, allocations: 0.671 MB / 430.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001599/0.236, allocations: 144.8 kB / 430.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.063e-05/0.236, allocations: 12 kB / 430.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003075/0.2363, allocations: 32.08 kB / 430.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.095e-05/0.2364, allocations: 23.97 kB / 430.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.2364, allocations: 16 kB / 430.4 MB, free: 12.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002589/0.2367, allocations: 247.2 kB / 430.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2367, allocations: 0 / 430.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005178/0.2372, allocations: 139.9 kB / 430.8 MB, free: 11.99 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.0001129/0.2373, allocations: 107.2 kB / 430.9 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.2392, allocations: 0.6567 MB / 431.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2392, allocations: 0 / 431.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004744/0.2397, allocations: 175.7 kB / 431.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006222/0.2403, allocations: 113.5 kB / 431.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.2421, allocations: 1.016 MB / 432.8 MB, free: 9.891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004593/0.2425, allocations: 0.8195 MB / 433.7 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002303/0.2428, allocations: 59.23 kB / 433.7 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.969e-05/0.2429, allocations: 35.42 kB / 433.8 MB, free: 8.949 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.2429, allocations: 0 / 433.8 MB, free: 8.949 MB / 350.1 MB Notification: Performance of Templates: time 0.009479/0.2524, allocations: 4.723 MB / 438.5 MB, free: 4.258 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches