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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001661/0.001661, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001006/0.001006, allocations: 110.7 kB / 296.7 MB, free: 6.445 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.001041, allocations: 51.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2169/0.2179, allocations: 50.45 MB / 407 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00342/0.2214, allocations: 3.149 MB / 410.2 MB, free: 24.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.2229, allocations: 0.9817 MB / 411.2 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002434/0.2232, allocations: 11.94 kB / 411.2 MB, free: 23.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003641/0.2236, allocations: 75.42 kB / 411.3 MB, free: 23.58 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.2238, allocations: 83.33 kB / 411.3 MB, free: 23.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005257/0.2243, allocations: 203.7 kB / 411.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004055/0.2248, allocations: 0.4912 MB / 412 MB, free: 22.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002867/0.2251, allocations: 157.2 kB / 412.2 MB, free: 22.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.2252, allocations: 175.2 kB / 412.3 MB, free: 22.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.2254, allocations: 206.9 kB / 412.6 MB, free: 22.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.807e-05/0.2255, allocations: 20 kB / 412.6 MB, free: 22.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.027e-05/0.2255, allocations: 24 kB / 412.6 MB, free: 22.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.666e-05/0.2256, allocations: 75.69 kB / 412.7 MB, free: 22.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.2257, allocations: 202.8 kB / 412.9 MB, free: 21.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002717/0.226, allocations: 455.8 kB / 413.3 MB, free: 21.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.226, allocations: 0 / 413.3 MB, free: 21.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.226, allocations: 4 kB / 413.3 MB, free: 21.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.226, allocations: 0 / 413.3 MB, free: 21.5 MB / 298.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.00113/0.2272, allocations: 0.7678 MB / 414.1 MB, free: 20.68 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.2272, allocations: 8.875 kB / 414.1 MB, free: 20.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.778e-05/0.2273, allocations: 52.38 kB / 414.1 MB, free: 20.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003587/0.2277, allocations: 359.7 kB / 414.5 MB, free: 20.24 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.2277, allocations: 29.38 kB / 414.5 MB, free: 20.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.026e-05/0.2278, allocations: 36.38 kB / 414.6 MB, free: 20.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000729/0.2285, allocations: 450.7 kB / 415 MB, free: 19.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.2285, allocations: 7.906 kB / 415 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.096e-05/0.2286, allocations: 16 kB / 415 MB, free: 19.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.677e-06/0.2286, allocations: 8 kB / 415 MB, free: 19.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008793/0.2295, allocations: 383.6 kB / 415.4 MB, free: 19.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.2312, allocations: 1.571 MB / 417 MB, free: 17.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007633/0.2319, allocations: 323.2 kB / 417.3 MB, free: 17.31 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003928/0.2323, allocations: 160.8 kB / 417.4 MB, free: 17.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.2324, allocations: 3.938 kB / 417.5 MB, free: 17.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.698e-05/0.2324, allocations: 38.56 kB / 417.5 MB, free: 17.1 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.923e-06/0.2324, allocations: 0 / 417.5 MB, free: 17.1 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.00287/0.2353, allocations: 1.377 MB / 418.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.2353, allocations: 81.11 kB / 418.9 MB, free: 15.53 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002738/0.2356, allocations: 349.7 kB / 419.3 MB, free: 15.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.2356, allocations: 33.7 kB / 419.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.917e-05/0.2357, allocations: 251.8 kB / 419.6 MB, free: 14.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.512e-05/0.2358, allocations: 110.5 kB / 419.7 MB, free: 14.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.2359, allocations: 82.03 kB / 419.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.812e-05/0.236, allocations: 350.8 kB / 420.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004163/0.2364, allocations: 178.5 kB / 420.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004365/0.2369, allocations: 244.8 kB / 420.5 MB, free: 13.89 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007924/0.2377, allocations: 396.9 kB / 420.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.2377, allocations: 0 / 420.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009582/0.2386, allocations: 496.7 kB / 421.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.2387, allocations: 11.03 kB / 421.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.2387, allocations: 7.984 kB / 421.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.2387, allocations: 4 kB / 421.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008873/0.2396, allocations: 211.7 kB / 421.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001197/0.2408, allocations: 1.462 MB / 423.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003133/0.2411, allocations: 35.94 kB / 423.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.476e-05/0.2412, allocations: 16 kB / 423.1 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004545/0.2416, allocations: 274.4 kB / 423.4 MB, free: 10.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003945/0.242, allocations: 236.9 kB / 423.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006961/0.2427, allocations: 375.7 kB / 424 MB, free: 10.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.633e-06/0.2427, allocations: 0 / 424 MB, free: 10.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0008963/0.2436, allocations: 468.9 kB / 424.4 MB, free: 9.73 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.334e-06/0.2437, allocations: 4 kB / 424.5 MB, free: 9.727 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.115e-06/0.2437, allocations: 4 kB / 424.5 MB, free: 9.723 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.057e-06/0.2437, allocations: 4 kB / 424.5 MB, free: 9.719 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004608/0.2441, allocations: 119.8 kB / 424.6 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.2442, allocations: 4 kB / 424.6 MB, free: 9.598 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002906/0.2445, allocations: 40.12 kB / 424.6 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.2445, allocations: 12 kB / 424.6 MB, free: 9.547 MB / 298.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 (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 9.476e-05/0.2446, allocations: 219.9 kB / 424.8 MB, free: 9.324 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.728e-05/0.2446, allocations: 39.53 kB / 424.9 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.321e-05/0.2447, allocations: 44.23 kB / 424.9 MB, free: 9.242 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.2447, allocations: 4 kB / 424.9 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.2448, allocations: 4 kB / 424.9 MB, free: 9.234 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.2448, allocations: 3.938 kB / 424.9 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001404/0.2462, allocations: 0.9189 MB / 425.9 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.2462, allocations: 4 kB / 425.9 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004/0.2466, allocations: 95.75 kB / 426 MB, free: 8.148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.2466, allocations: 4 kB / 426 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.2466, allocations: 11.94 kB / 426 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.2466, allocations: 4.125 kB / 426 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2466, allocations: 0 / 426 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004727/0.2514, allocations: 3.147 MB / 429.1 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.2515, allocations: 128.7 kB / 429.2 MB, free: 4.684 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.12e-05/0.2515, allocations: 15.98 kB / 429.3 MB, free: 4.668 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002923/0.2518, allocations: 31.97 kB / 429.3 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.333e-05/0.2519, allocations: 27.84 kB / 429.3 MB, free: 4.609 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.694e-05/0.252, allocations: 11.98 kB / 429.3 MB, free: 4.598 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001836/0.2521, allocations: 251.2 kB / 429.6 MB, free: 4.355 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2521, allocations: 0 / 429.6 MB, free: 4.355 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007092/0.2529, allocations: 196 kB / 429.8 MB, free: 4.164 MB / 298.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 9.664e-05/0.253, allocations: 103.2 kB / 429.9 MB, free: 4.055 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.2547, allocations: 0.6871 MB / 430.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2547, allocations: 0 / 430.6 MB, free: 3.367 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004161/0.2551, allocations: 184.5 kB / 430.7 MB, free: 3.188 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007187/0.2559, allocations: 96 kB / 430.8 MB, free: 3.098 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00167/0.2575, allocations: 1.386 MB / 432.2 MB, free: 1.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.2578, allocations: 0.8276 MB / 433 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002829/0.2581, allocations: 71.17 kB / 433.1 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000109/0.2582, allocations: 31.44 kB / 433.1 MB, free: 0.707 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2582, allocations: 0 / 433.1 MB, free: 0.707 MB / 298.7 MB Notification: Performance of Templates: time 0.009403/0.2676, allocations: 5.045 MB / 438.2 MB, free: 11.7 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches