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) 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) 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=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/ModelicaServices trunk/package.mo): time 0.01823/0.01823, allocations: 117.7 kB / 18.46 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.01158/0.01158, allocations: 208.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 7.912/7.912, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002342/0.002342, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4782/0.4806, allocations: 50.55 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.007794/0.4884, allocations: 3.117 MB / 413 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003506/0.492, allocations: 0.997 MB / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006383/0.4927, allocations: 15.94 kB / 414 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006643/0.4934, allocations: 87.17 kB / 414.1 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006903/0.4942, allocations: 99.08 kB / 414.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001283/0.4955, allocations: 239.1 kB / 414.5 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001129/0.4966, allocations: 0.5068 MB / 415 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005123/0.4972, allocations: 173.2 kB / 415.1 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004792/0.4977, allocations: 199.1 kB / 415.3 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004802/0.4982, allocations: 210.9 kB / 415.5 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000174/0.4983, allocations: 44 kB / 415.6 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001354/0.4985, allocations: 40 kB / 415.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001796/0.4987, allocations: 99.69 kB / 415.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003626/0.4991, allocations: 218.7 kB / 415.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008676/0.5, allocations: 0.4914 MB / 416.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.5, allocations: 0 / 416.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5, allocations: 0 / 416.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.645e-05/0.5, allocations: 0 / 416.4 MB, free: 11.06 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.00238/0.5024, allocations: 0.76 MB / 417.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.832e-05/0.5025, allocations: 12.03 kB / 417.2 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002055/0.5028, allocations: 52.28 kB / 417.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.5038, allocations: 367.8 kB / 417.6 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.16e-05/0.5039, allocations: 29.38 kB / 417.6 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.504, allocations: 44.27 kB / 417.7 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.5057, allocations: 459.5 kB / 418.1 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.606e-05/0.5057, allocations: 0 / 418.1 MB, free: 9.238 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.031e-05/0.5058, allocations: 23.97 kB / 418.2 MB, free: 9.215 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.5059, allocations: 11.94 kB / 418.2 MB, free: 9.203 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001583/0.5074, allocations: 379.6 kB / 418.5 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003839/0.5113, allocations: 1.559 MB / 420.1 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001419/0.5128, allocations: 309.8 kB / 420.4 MB, free: 6.867 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007558/0.5136, allocations: 164.8 kB / 420.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.098e-05/0.5137, allocations: 11.86 kB / 420.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.58e-05/0.5137, allocations: 38.56 kB / 420.6 MB, free: 6.645 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 4.418e-06/0.5137, allocations: 0 / 420.6 MB, free: 6.645 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.005577/0.5193, allocations: 1.38 MB / 422 MB, free: 5.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/0.5195, allocations: 106.8 kB / 422.1 MB, free: 5.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000718/0.5202, allocations: 357.6 kB / 422.4 MB, free: 4.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.191e-05/0.5203, allocations: 29.7 kB / 422.5 MB, free: 4.648 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.5206, allocations: 244 kB / 422.7 MB, free: 4.402 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.5207, allocations: 114.3 kB / 422.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002006/0.5209, allocations: 82.12 kB / 422.9 MB, free: 4.203 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.5211, allocations: 350.7 kB / 423.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007324/0.5219, allocations: 170.5 kB / 423.4 MB, free: 3.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008465/0.5227, allocations: 257.7 kB / 423.7 MB, free: 3.398 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.5243, allocations: 399.8 kB / 424.1 MB, free: 2.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.5243, allocations: 0 / 424.1 MB, free: 2.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001918/0.5262, allocations: 496.6 kB / 424.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.659e-05/0.5263, allocations: 8 kB / 424.5 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.5263, allocations: 0 / 424.5 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.952e-05/0.5264, allocations: 4 kB / 424.5 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001576/0.528, allocations: 215.9 kB / 424.8 MB, free: 2.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002875/0.5308, allocations: 1.568 MB / 426.3 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007313/0.5316, allocations: 51.98 kB / 426.4 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.665e-05/0.5317, allocations: 16 kB / 426.4 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001028/0.5327, allocations: 272.9 kB / 426.7 MB, free: 232 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009035/0.5337, allocations: 241.7 kB / 426.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001561/0.5352, allocations: 371.7 kB / 427.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.158e-06/0.5353, allocations: 0 / 427.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.002049/0.5373, allocations: 472.8 kB / 427.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.5374, allocations: 4 kB / 427.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.5374, allocations: 4 kB / 427.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.5374, allocations: 4 kB / 427.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.5385, allocations: 115.9 kB / 427.8 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.576e-05/0.5385, allocations: 19.8 kB / 427.9 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006839/0.5392, allocations: 44.09 kB / 427.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.742e-05/0.5393, allocations: 16 kB / 427.9 MB, free: 14.89 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.0003272/0.5397, allocations: 204.1 kB / 428.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00018/0.5398, allocations: 35.53 kB / 428.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00019/0.5401, allocations: 44.25 kB / 428.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.5401, allocations: 11.92 kB / 428.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.5401, allocations: 0 / 428.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.5401, allocations: 4 kB / 428.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003321/0.5435, allocations: 0.9231 MB / 429.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.5435, allocations: 0 / 429.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008582/0.5444, allocations: 87.86 kB / 429.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.15e-05/0.5444, allocations: 0 / 429.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-05/0.5445, allocations: 12 kB / 429.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.574e-05/0.5445, allocations: 7.938 kB / 429.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.5445, allocations: 128 / 429.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002721/0.5473, allocations: 0.6631 MB / 429.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004642/0.5478, allocations: 140.7 kB / 430 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001101/0.5479, allocations: 8 kB / 430.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006042/0.5485, allocations: 31.97 kB / 430.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000154/0.5487, allocations: 31.89 kB / 430.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.703e-05/0.5488, allocations: 11.94 kB / 430.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005225/0.5493, allocations: 247.2 kB / 430.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5493, allocations: 0 / 430.4 MB, free: 12.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001084/0.5504, allocations: 135.9 kB / 430.5 MB, free: 12.19 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.0002306/0.5507, allocations: 111.2 kB / 430.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003568/0.5542, allocations: 0.6957 MB / 431.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/0.5543, allocations: 0 / 431.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008865/0.5552, allocations: 171.8 kB / 431.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001253/0.5565, allocations: 108.8 kB / 431.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003485/0.56, allocations: 1.035 MB / 432.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000849/0.5609, allocations: 0.8194 MB / 433.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/0.5612, allocations: 39.44 kB / 433.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of SimCode: time 2.274e-06/0.5612, allocations: 0 / 433.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of Templates: time 0.0179/0.5791, allocations: 6.04 MB / 439.5 MB, free: 3.109 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches