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.001011/0.001011, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.595/1.595, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008609/0.000861, allocations: 74.73 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.058e-05/3.061e-05, allocations: 4 kB / 322.4 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1092, allocations: 47.57 MB / 370 MB, free: 1.711 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3567/0.466, allocations: 81.72 MB / 451.7 MB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002484/0.4663, allocations: 69.19 kB / 451.8 MB, free: 11.56 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02338/0.4897, allocations: 8.311 MB / 460.1 MB, free: 4.586 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4897, allocations: 4.188 kB / 460.1 MB, free: 4.582 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.572e-05/0.4898, allocations: 11.94 kB / 460.1 MB, free: 4.57 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.001111/0.4909, allocations: 0.6725 MB / 460.8 MB, free: 3.879 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.4909, allocations: 12.03 kB / 460.8 MB, free: 3.867 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.4911, allocations: 51.44 kB / 460.9 MB, free: 3.816 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005187/0.4916, allocations: 366.5 kB / 461.2 MB, free: 3.457 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.151e-05/0.4916, allocations: 24.47 kB / 461.2 MB, free: 3.441 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.775e-05/0.4917, allocations: 47.28 kB / 461.3 MB, free: 3.41 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006301/0.4923, allocations: 387.1 kB / 461.7 MB, free: 3.094 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.823e-05/0.4924, allocations: 0 / 461.7 MB, free: 3.094 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.129e-05/0.4924, allocations: 16 kB / 461.7 MB, free: 3.078 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.4924, allocations: 8 kB / 461.7 MB, free: 3.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004708/0.4929, allocations: 267 kB / 462 MB, free: 2.805 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.4951, allocations: 1.586 MB / 463.5 MB, free: 1.129 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005199/0.4956, allocations: 255.6 kB / 463.8 MB, free: 0.8633 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001837/0.4958, allocations: 112.8 kB / 463.9 MB, free: 0.75 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.157e-05/0.4958, allocations: 8 kB / 463.9 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.4959, allocations: 34.56 kB / 463.9 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 1.493e-06/0.4959, allocations: 0 / 463.9 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of matching and sorting (n=32): time 0.001717/0.4976, allocations: 1.017 MB / 465 MB, free: 15.59 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.4977, allocations: 85.05 kB / 465 MB, free: 15.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003695/0.4981, allocations: 323.5 kB / 465.4 MB, free: 15.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.4981, allocations: 29.7 kB / 465.4 MB, free: 15.13 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001553/0.4982, allocations: 239.9 kB / 465.6 MB, free: 14.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.472e-05/0.4983, allocations: 118.3 kB / 465.7 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.89e-05/0.4984, allocations: 8 kB / 465.7 MB, free: 14.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.4985, allocations: 350.8 kB / 466.1 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.4987, allocations: 112.9 kB / 466.2 MB, free: 14.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002517/0.499, allocations: 196.9 kB / 466.4 MB, free: 14.08 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002224/0.4992, allocations: 124 kB / 466.5 MB, free: 13.96 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4992, allocations: 0 / 466.5 MB, free: 13.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005858/0.4998, allocations: 389.3 kB / 466.9 MB, free: 13.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003524/0.5002, allocations: 0.7863 MB / 467.7 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.5002, allocations: 4 kB / 467.7 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.724e-05/0.5002, allocations: 4 kB / 467.7 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009674/0.5012, allocations: 263.7 kB / 467.9 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005621/0.5018, allocations: 0.6562 MB / 468.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003416/0.5021, allocations: 56.05 kB / 468.6 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.1e-05/0.5022, allocations: 19.94 kB / 468.7 MB, free: 11.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.394e-06/0.5022, allocations: 4 kB / 468.7 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004858/0.5027, allocations: 320.2 kB / 469 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.5027, allocations: 4 kB / 469 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.5027, allocations: 4 kB / 469 MB, free: 11.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004834/0.5032, allocations: 128.1 kB / 469.1 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.806e-06/0.5032, allocations: 11.92 kB / 469.1 MB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002783/0.5035, allocations: 43.97 kB / 469.2 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.5035, allocations: 16 kB / 469.2 MB, free: 11.18 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.0001258/0.5037, allocations: 128.8 kB / 469.3 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.139e-05/0.5037, allocations: 39.44 kB / 469.4 MB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/0.5039, allocations: 52.36 kB / 469.4 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.5039, allocations: 4 kB / 469.4 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.5039, allocations: 0 / 469.4 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.5039, allocations: 4 kB / 469.4 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001199/0.5051, allocations: 0.8185 MB / 470.2 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.5051, allocations: 0 / 470.2 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004383/0.5056, allocations: 100 kB / 470.3 MB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.554e-06/0.5056, allocations: 4 kB / 470.3 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.58e-05/0.5056, allocations: 11.98 kB / 470.3 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.5056, allocations: 3.953 kB / 470.3 MB, free: 9.945 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.5057, allocations: 11.88 kB / 470.4 MB, free: 9.934 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007243/0.5064, allocations: 0.56 MB / 470.9 MB, free: 9.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/0.5066, allocations: 140.7 kB / 471.1 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.928e-05/0.5066, allocations: 12 kB / 471.1 MB, free: 9.152 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003035/0.5069, allocations: 43.95 kB / 471.1 MB, free: 9.109 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.08e-05/0.507, allocations: 27.91 kB / 471.1 MB, free: 9.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.5071, allocations: 11.95 kB / 471.1 MB, free: 9.07 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002953/0.5074, allocations: 254.2 kB / 471.4 MB, free: 8.828 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5074, allocations: 0 / 471.4 MB, free: 8.828 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000549/0.5079, allocations: 140 kB / 471.5 MB, free: 8.691 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.0001948/0.5081, allocations: 115.1 kB / 471.6 MB, free: 8.57 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.5094, allocations: 0.5803 MB / 472.2 MB, free: 7.992 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5094, allocations: 0 / 472.2 MB, free: 7.992 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002002/0.5096, allocations: 132.5 kB / 472.4 MB, free: 7.863 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005248/0.5101, allocations: 91.41 kB / 472.4 MB, free: 7.777 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001574/0.5117, allocations: 0.808 MB / 473.3 MB, free: 6.934 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.5121, allocations: 0.8397 MB / 474.1 MB, free: 6.066 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003242/0.5125, allocations: 73.22 kB / 474.2 MB, free: 5.992 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.319e-05/0.5125, allocations: 31.44 kB / 474.2 MB, free: 5.961 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5126, allocations: 0 / 474.2 MB, free: 5.961 MB / 346.7 MB Notification: Performance of Templates: time 0.009218/0.5218, allocations: 4.809 MB / 479 MB, free: 1.156 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