Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001587/0.001587, allocations: 197 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.6 MB / 244.4 MB, free: 8.293 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001039/0.001039, allocations: 96.77 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002217/0.0002218, allocations: 4 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1924/0.1926, allocations: 51.3 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.002217/0.1949, allocations: 2.643 MB / 410.1 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.196, allocations: 0.945 MB / 411.1 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.1962, allocations: 15.88 kB / 411.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002339/0.1964, allocations: 60.12 kB / 411.1 MB, free: 24.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.1966, allocations: 90.52 kB / 411.2 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000375/0.1969, allocations: 167.3 kB / 411.4 MB, free: 23.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002938/0.1972, allocations: 467 kB / 411.9 MB, free: 23.44 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00019/0.1974, allocations: 126.1 kB / 412 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001258/0.1976, allocations: 155.2 kB / 412.1 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.1977, allocations: 164.9 kB / 412.3 MB, free: 23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.876e-05/0.1978, allocations: 16 kB / 412.3 MB, free: 22.99 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.343e-05/0.1978, allocations: 19.94 kB / 412.3 MB, free: 22.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.313e-05/0.1979, allocations: 71.67 kB / 412.4 MB, free: 22.9 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.745e-05/0.1979, allocations: 93.45 kB / 412.5 MB, free: 22.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.1982, allocations: 348.1 kB / 412.8 MB, free: 22.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1982, allocations: 0 / 412.8 MB, free: 22.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1982, allocations: 0 / 412.8 MB, free: 22.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.1982, allocations: 0 / 412.8 MB, free: 22.46 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.0009339/0.1991, allocations: 0.7132 MB / 413.5 MB, free: 21.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.206e-05/0.1992, allocations: 12.03 kB / 413.6 MB, free: 21.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.311e-05/0.1992, allocations: 47.44 kB / 413.6 MB, free: 21.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003151/0.1996, allocations: 350.6 kB / 413.9 MB, free: 21.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.1996, allocations: 29 kB / 414 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.1e-05/0.1997, allocations: 39.95 kB / 414 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007345/0.2004, allocations: 474.3 kB / 414.5 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.2004, allocations: 7.906 kB / 414.5 MB, free: 20.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.147e-05/0.2005, allocations: 12 kB / 414.5 MB, free: 20.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.2005, allocations: 8 kB / 414.5 MB, free: 20.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008656/0.2013, allocations: 423.6 kB / 414.9 MB, free: 20.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.2029, allocations: 1.586 MB / 416.5 MB, free: 18.59 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006988/0.2036, allocations: 342.8 kB / 416.8 MB, free: 18.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003897/0.204, allocations: 184.8 kB / 417 MB, free: 18.05 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.204, allocations: 4 kB / 417 MB, free: 18.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.785e-05/0.204, allocations: 30.56 kB / 417 MB, free: 18.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.392e-06/0.204, allocations: 0 / 417 MB, free: 18.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=32): time 0.002824/0.2069, allocations: 1.527 MB / 418.6 MB, free: 16.39 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.549e-05/0.2069, allocations: 81.11 kB / 418.7 MB, free: 16.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002575/0.2072, allocations: 345.7 kB / 419 MB, free: 15.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.2072, allocations: 33.7 kB / 419 MB, free: 15.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.084e-05/0.2073, allocations: 239.9 kB / 419.3 MB, free: 15.67 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.313e-05/0.2074, allocations: 118.5 kB / 419.4 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.533e-05/0.2074, allocations: 4 kB / 419.4 MB, free: 15.55 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.742e-05/0.2074, allocations: 358.8 kB / 419.7 MB, free: 15.19 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004209/0.2079, allocations: 180.8 kB / 419.9 MB, free: 15.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004381/0.2083, allocations: 272.8 kB / 420.2 MB, free: 14.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004228/0.2088, allocations: 203.8 kB / 420.4 MB, free: 14.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2088, allocations: 7.938 kB / 420.4 MB, free: 14.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009448/0.2097, allocations: 0.5125 MB / 420.9 MB, free: 13.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.193e-05/0.2098, allocations: 148 kB / 421 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.2098, allocations: 4 kB / 421 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.2098, allocations: 7.984 kB / 421 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008452/0.2106, allocations: 263.7 kB / 421.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001171/0.2118, allocations: 1.529 MB / 422.8 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003097/0.2122, allocations: 55.98 kB / 422.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.35e-05/0.2122, allocations: 16 kB / 422.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.939e-06/0.2122, allocations: 6.188 kB / 422.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008103/0.213, allocations: 451.5 kB / 423.3 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.213, allocations: 4 kB / 423.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.569e-06/0.213, allocations: 8 kB / 423.4 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004529/0.2135, allocations: 128 kB / 423.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.2135, allocations: 7.938 kB / 423.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002655/0.2138, allocations: 47.91 kB / 423.5 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/0.2138, allocations: 16 kB / 423.6 MB, free: 11.16 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001635/0.214, allocations: 237.1 kB / 423.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.45e-05/0.214, allocations: 39.53 kB / 423.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.632e-05/0.2141, allocations: 52.22 kB / 423.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.2141, allocations: 4 kB / 423.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.2141, allocations: 0 / 423.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.2141, allocations: 3.953 kB / 423.9 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001311/0.2155, allocations: 0.9619 MB / 424.8 MB, free: 9.789 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.2155, allocations: 3.984 kB / 424.9 MB, free: 9.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003955/0.2159, allocations: 95.88 kB / 424.9 MB, free: 9.691 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.2159, allocations: 8.078 kB / 425 MB, free: 9.684 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.2159, allocations: 8 kB / 425 MB, free: 9.676 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.2159, allocations: 4 kB / 425 MB, free: 9.672 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2159, allocations: 3.938 kB / 425 MB, free: 9.668 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.2171, allocations: 0.7247 MB / 425.7 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.008e-05/0.2172, allocations: 140.7 kB / 425.8 MB, free: 8.758 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.906e-05/0.2173, allocations: 11.95 kB / 425.8 MB, free: 8.746 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.2176, allocations: 47.89 kB / 425.9 MB, free: 8.699 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.472e-05/0.2176, allocations: 31.91 kB / 425.9 MB, free: 8.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.493e-05/0.2176, allocations: 12 kB / 425.9 MB, free: 8.656 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001715/0.2178, allocations: 239.2 kB / 426.2 MB, free: 8.426 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2178, allocations: 0 / 426.2 MB, free: 8.426 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000423/0.2183, allocations: 136 kB / 426.3 MB, free: 8.293 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.644e-05/0.2183, allocations: 107.1 kB / 426.4 MB, free: 8.176 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.22, allocations: 0.7943 MB / 427.2 MB, free: 7.383 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.22, allocations: 4.062 kB / 427.2 MB, free: 7.379 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004057/0.2205, allocations: 204 kB / 427.4 MB, free: 7.18 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005719/0.221, allocations: 92.56 kB / 427.5 MB, free: 7.094 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.2225, allocations: 1.247 MB / 428.7 MB, free: 5.801 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.2227, allocations: 0.8196 MB / 429.6 MB, free: 4.953 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001018/0.2228, allocations: 35.38 kB / 429.6 MB, free: 4.918 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2228, allocations: 4 kB / 429.6 MB, free: 4.914 MB / 298.7 MB Notification: Performance of Templates: time 0.006077/0.2289, allocations: 5.877 MB / 435.5 MB, free: 15.05 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_trunk_cpp_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches