Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001561/0.001561, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.652/1.652, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007832/0.0007832, allocations: 86.69 kB / 262.5 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.26e-05/1.264e-05, allocations: 4 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09101/0.09103, allocations: 47.58 MB / 363.1 MB, free: 7.082 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3605/0.4516, allocations: 81.3 MB / 444.4 MB, free: 14.44 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.4519, allocations: 71.34 kB / 444.4 MB, free: 14.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03516/0.4871, allocations: 8.245 MB / 452.7 MB, free: 7.617 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4872, allocations: 4 kB / 452.7 MB, free: 7.613 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.519e-05/0.4872, allocations: 8 kB / 452.7 MB, free: 7.605 MB / 330.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.001231/0.4884, allocations: 0.6791 MB / 453.4 MB, free: 6.91 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.97e-05/0.4885, allocations: 12.03 kB / 453.4 MB, free: 6.898 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001049/0.4886, allocations: 47.44 kB / 453.4 MB, free: 6.852 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006595/0.4893, allocations: 364.2 kB / 453.8 MB, free: 6.492 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.896e-05/0.4893, allocations: 8 kB / 453.8 MB, free: 6.484 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.353e-05/0.4894, allocations: 39.88 kB / 453.8 MB, free: 6.445 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004961/0.4899, allocations: 240.7 kB / 454.1 MB, free: 6.293 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005402/0.4905, allocations: 334.8 kB / 454.4 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.4905, allocations: 0 / 454.4 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/0.4905, allocations: 0 / 454.4 MB, free: 6.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.4906, allocations: 16 kB / 454.4 MB, free: 6.004 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.4926, allocations: 1.515 MB / 455.9 MB, free: 4.656 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004974/0.4932, allocations: 233.2 kB / 456.2 MB, free: 4.492 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.4933, allocations: 109.2 kB / 456.3 MB, free: 4.422 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.494e-05/0.4934, allocations: 4 kB / 456.3 MB, free: 4.418 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.953e-05/0.4934, allocations: 38.52 kB / 456.3 MB, free: 4.371 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 2.204e-06/0.4934, allocations: 7.938 kB / 456.3 MB, free: 4.363 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.001533/0.495, allocations: 0.9297 MB / 457.2 MB, free: 3.484 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.495, allocations: 81.11 kB / 457.3 MB, free: 3.387 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003229/0.4954, allocations: 295.6 kB / 457.6 MB, free: 3.156 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/0.4954, allocations: 25.7 kB / 457.6 MB, free: 3.125 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.4956, allocations: 242.9 kB / 457.9 MB, free: 2.938 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.277e-05/0.4957, allocations: 116.5 kB / 458 MB, free: 2.836 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-05/0.4957, allocations: 0 / 458 MB, free: 2.836 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.4959, allocations: 347.8 kB / 458.3 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.496, allocations: 104.9 kB / 458.4 MB, free: 2.438 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002222/0.4963, allocations: 187.1 kB / 458.6 MB, free: 2.273 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001766/0.4964, allocations: 113.9 kB / 458.7 MB, free: 2.203 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.582e-06/0.4965, allocations: 0 / 458.7 MB, free: 2.203 MB / 330.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004989/0.497, allocations: 351.9 kB / 459.1 MB, free: 1.93 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003506/0.4973, allocations: 0.7915 MB / 459.9 MB, free: 1.094 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.4973, allocations: 4 kB / 459.9 MB, free: 1.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.855e-05/0.4974, allocations: 4 kB / 459.9 MB, free: 1.086 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009734/0.4983, allocations: 255.1 kB / 460.1 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005491/0.4989, allocations: 0.6664 MB / 460.8 MB, free: 164 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003258/0.4992, allocations: 39.95 kB / 460.8 MB, free: 124 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.75e-05/0.4993, allocations: 15.44 kB / 460.8 MB, free: 112 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.112e-06/0.4993, allocations: 0 / 460.8 MB, free: 112 kB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004218/0.4997, allocations: 286.2 kB / 461.1 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.4997, allocations: 4 kB / 461.1 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.61e-06/0.4997, allocations: 4 kB / 461.1 MB, free: 15.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004884/0.5002, allocations: 123.6 kB / 461.2 MB, free: 15.78 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.5003, allocations: 11.98 kB / 461.3 MB, free: 15.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002723/0.5005, allocations: 35.95 kB / 461.3 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.679e-05/0.5006, allocations: 19.23 kB / 461.3 MB, free: 15.72 MB / 346.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 () * 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.0001244/0.5007, allocations: 116.8 kB / 461.4 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.575e-05/0.5008, allocations: 39.53 kB / 461.5 MB, free: 15.56 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.969e-05/0.5009, allocations: 41.52 kB / 461.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.5009, allocations: 4 kB / 461.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.5009, allocations: 0 / 461.5 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.5009, allocations: 3.984 kB / 461.5 MB, free: 15.53 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009752/0.5019, allocations: 0.7453 MB / 462.3 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.5019, allocations: 0 / 462.3 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004582/0.5024, allocations: 99.73 kB / 462.3 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.5024, allocations: 4 kB / 462.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.122e-05/0.5024, allocations: 8.062 kB / 462.4 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.5024, allocations: 4 kB / 462.4 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5024, allocations: 0 / 462.4 MB, free: 14.79 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005877/0.503, allocations: 0.5487 MB / 462.9 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.5032, allocations: 129.8 kB / 463 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.947e-05/0.5032, allocations: 4 kB / 463 MB, free: 14.17 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003181/0.5035, allocations: 43.95 kB / 463.1 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.912e-05/0.5036, allocations: 25.97 kB / 463.1 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.05e-05/0.5037, allocations: 8.125 kB / 463.1 MB, free: 14.1 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002123/0.5039, allocations: 221.6 kB / 463.3 MB, free: 13.92 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5039, allocations: 0 / 463.3 MB, free: 13.92 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000532/0.5044, allocations: 123.9 kB / 463.5 MB, free: 13.8 MB / 346.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 () * 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 0.0001659/0.5046, allocations: 108.9 kB / 463.6 MB, free: 13.69 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001128/0.5057, allocations: 0.5495 MB / 464.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.5057, allocations: 0 / 464.1 MB, free: 13.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002009/0.5059, allocations: 125.7 kB / 464.2 MB, free: 13.19 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005792/0.5065, allocations: 75.86 kB / 464.3 MB, free: 13.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.508, allocations: 0.7947 MB / 465.1 MB, free: 12.36 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.5084, allocations: 0.835 MB / 465.9 MB, free: 11.5 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000315/0.5088, allocations: 85.2 kB / 466 MB, free: 11.41 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.489e-05/0.5089, allocations: 27.44 kB / 466.1 MB, free: 11.39 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5089, allocations: 0 / 466.1 MB, free: 11.39 MB / 346.7 MB Notification: Performance of Templates: time 0.008363/0.5172, allocations: 4.388 MB / 470.4 MB, free: 7.008 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches