Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_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_3.2.3_cpp_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.001428/0.001432, allocations: 188.3 kB / 16.41 MB, free: 5.723 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.793/1.793, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001084/0.001084, allocations: 84.38 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003613/0.0003614, allocations: 11.98 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3131, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1227/0.4359, allocations: 81.82 MB / 456.3 MB, free: 14.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002563/0.4362, allocations: 71.97 kB / 456.4 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03521/0.4714, allocations: 8.327 MB / 464.7 MB, free: 6.527 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4714, allocations: 3.938 kB / 464.7 MB, free: 6.523 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.108e-05/0.4715, allocations: 12 kB / 464.8 MB, free: 6.512 MB / 346.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.001768/0.4733, allocations: 0.7325 MB / 465.5 MB, free: 5.727 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.4733, allocations: 12.02 kB / 465.5 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001246/0.4735, allocations: 47.44 kB / 465.5 MB, free: 5.668 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006656/0.4741, allocations: 364 kB / 465.9 MB, free: 5.277 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.206e-05/0.4742, allocations: 29 kB / 465.9 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.872e-05/0.4743, allocations: 39.91 kB / 466 MB, free: 5.211 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.4757, allocations: 462.4 kB / 466.4 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.826e-05/0.4758, allocations: 3.984 kB / 466.4 MB, free: 4.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.344e-05/0.4758, allocations: 16 kB / 466.4 MB, free: 4.715 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.4758, allocations: 12 kB / 466.5 MB, free: 4.703 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00175/0.4776, allocations: 423.6 kB / 466.9 MB, free: 4.289 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002996/0.4806, allocations: 1.595 MB / 468.5 MB, free: 2.605 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.482, allocations: 346.7 kB / 468.8 MB, free: 2.25 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.862e-05/0.482, allocations: 11.95 kB / 468.8 MB, free: 2.238 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.4821, allocations: 34.56 kB / 468.8 MB, free: 2.195 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 2.935e-06/0.4821, allocations: 0 / 468.8 MB, free: 2.195 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.005413/0.4875, allocations: 1.516 MB / 470.4 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.09e-05/0.4876, allocations: 77.11 kB / 470.4 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005212/0.4881, allocations: 328.7 kB / 470.8 MB, free: 164 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.98e-05/0.4882, allocations: 37.69 kB / 470.8 MB, free: 120 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002087/0.4884, allocations: 290.5 kB / 471.1 MB, free: 15.83 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.4885, allocations: 110.4 kB / 471.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.546e-05/0.4886, allocations: 8 kB / 471.2 MB, free: 15.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.4887, allocations: 326.8 kB / 471.5 MB, free: 15.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008196/0.4895, allocations: 184.8 kB / 471.7 MB, free: 15.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008918/0.4904, allocations: 272.8 kB / 472 MB, free: 14.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008559/0.4913, allocations: 196.6 kB / 472.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.4913, allocations: 4 kB / 472.2 MB, free: 14.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001887/0.4932, allocations: 0.5072 MB / 472.7 MB, free: 14.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002974/0.4935, allocations: 0.7862 MB / 473.4 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.4936, allocations: 4 kB / 473.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.896e-05/0.4936, allocations: 4 kB / 473.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001782/0.4954, allocations: 259.7 kB / 473.7 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009749/0.4964, allocations: 0.6952 MB / 474.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006144/0.497, allocations: 52.05 kB / 474.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.232e-05/0.497, allocations: 16 kB / 474.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.4971, allocations: 7.281 kB / 474.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001631/0.4987, allocations: 443.6 kB / 474.9 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.4987, allocations: 4 kB / 474.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.656e-06/0.4988, allocations: 7.938 kB / 474.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009402/0.4997, allocations: 128 kB / 475.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.268e-05/0.4997, allocations: 11.92 kB / 475.1 MB, free: 11.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004459/0.5002, allocations: 39.97 kB / 475.1 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.726e-05/0.5002, allocations: 20 kB / 475.1 MB, free: 11.66 MB / 362.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.0003089/0.5006, allocations: 244.9 kB / 475.4 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.92e-05/0.5007, allocations: 39.53 kB / 475.4 MB, free: 11.37 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001174/0.5008, allocations: 40.25 kB / 475.4 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.5008, allocations: 4 kB / 475.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.5008, allocations: 0 / 475.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.5008, allocations: 4 kB / 475.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002621/0.5035, allocations: 0.9696 MB / 476.4 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.5035, allocations: 0 / 476.4 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009238/0.5044, allocations: 104 kB / 476.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.071e-05/0.5045, allocations: 4 kB / 476.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.205e-05/0.5045, allocations: 8 kB / 476.5 MB, free: 10.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.558e-06/0.5045, allocations: 7.891 kB / 476.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.5046, allocations: 4 kB / 476.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002604/0.5072, allocations: 0.7824 MB / 477.3 MB, free: 9.324 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.5074, allocations: 140.7 kB / 477.5 MB, free: 9.168 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.87e-05/0.5075, allocations: 8 kB / 477.5 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000538/0.508, allocations: 47.95 kB / 477.5 MB, free: 9.113 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.5081, allocations: 27.91 kB / 477.5 MB, free: 9.086 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.775e-05/0.5082, allocations: 7.953 kB / 477.5 MB, free: 9.078 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003889/0.5086, allocations: 259.2 kB / 477.8 MB, free: 8.832 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5086, allocations: 0 / 477.8 MB, free: 8.832 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000773/0.5094, allocations: 144 kB / 477.9 MB, free: 8.691 MB / 362.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 0.0001617/0.5095, allocations: 111.1 kB / 478.1 MB, free: 8.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003337/0.5129, allocations: 0.7779 MB / 478.8 MB, free: 7.793 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5129, allocations: 0 / 478.8 MB, free: 7.793 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008324/0.5137, allocations: 208.1 kB / 479 MB, free: 7.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000779/0.5145, allocations: 98.05 kB / 479.1 MB, free: 7.496 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00274/0.5173, allocations: 1.239 MB / 480.4 MB, free: 6.215 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004354/0.5178, allocations: 0.8315 MB / 481.2 MB, free: 5.355 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.518, allocations: 31.44 kB / 481.2 MB, free: 5.324 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.518, allocations: 4 kB / 481.2 MB, free: 5.32 MB / 362.7 MB Notification: Performance of Templates: time 0.01196/0.5299, allocations: 5.773 MB / 487 MB, free: 15.56 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches