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.001048/0.001048, allocations: 203 kB / 18.07 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.5 MB / 245.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008006/0.0008006, allocations: 103.4 kB / 297.4 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002936/0.0002937, allocations: 8 kB / 357.4 MB, free: 10.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2872, allocations: 51.29 MB / 408.6 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1396/0.4269, allocations: 83.31 MB / 492 MB, free: 8.297 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002593/0.4272, allocations: 79.97 kB / 492 MB, free: 8.219 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02894/0.4562, allocations: 8.357 MB / 0.4887 GB, free: 15.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4562, allocations: 4 kB / 0.4887 GB, free: 15.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.556e-05/0.4562, allocations: 8 kB / 0.4887 GB, free: 15.83 MB / 378.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.001252/0.4575, allocations: 0.7249 MB / 0.4894 GB, free: 15.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.321e-05/0.4575, allocations: 12.03 kB / 0.4894 GB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/0.4577, allocations: 52.28 kB / 0.4894 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005127/0.4582, allocations: 364.7 kB / 0.4898 GB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.4582, allocations: 29.36 kB / 0.4898 GB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.571e-05/0.4583, allocations: 36.38 kB / 0.4899 GB, free: 14.53 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008911/0.4592, allocations: 470.9 kB / 0.4903 GB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/0.4592, allocations: 4.172 kB / 0.4903 GB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.723e-05/0.4593, allocations: 19.94 kB / 0.4903 GB, free: 14.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.4593, allocations: 12 kB / 0.4903 GB, free: 14.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009542/0.4602, allocations: 419.6 kB / 0.4907 GB, free: 13.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00207/0.4623, allocations: 1.586 MB / 0.4923 GB, free: 11.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007684/0.4631, allocations: 342.8 kB / 0.4926 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004217/0.4635, allocations: 184.8 kB / 0.4928 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.4636, allocations: 3.984 kB / 0.4928 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.4636, allocations: 46.44 kB / 0.4928 GB, free: 11.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.763e-06/0.4636, allocations: 0 / 0.4928 GB, free: 11.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.003142/0.4668, allocations: 1.507 MB / 0.4943 GB, free: 9.73 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.4668, allocations: 81.11 kB / 0.4944 GB, free: 9.633 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003772/0.4672, allocations: 361.6 kB / 0.4947 GB, free: 9.27 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.929e-05/0.4672, allocations: 33.7 kB / 0.4948 GB, free: 9.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001438/0.4674, allocations: 235.9 kB / 0.495 GB, free: 8.996 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.523e-05/0.4675, allocations: 122.3 kB / 0.4951 GB, free: 8.875 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.022e-05/0.4675, allocations: 4 kB / 0.4951 GB, free: 8.871 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.4677, allocations: 358.7 kB / 0.4954 GB, free: 8.512 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004531/0.4681, allocations: 184.8 kB / 0.4956 GB, free: 8.332 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004924/0.4686, allocations: 276.8 kB / 0.4959 GB, free: 8.031 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009058/0.4695, allocations: 436.5 kB / 0.4963 GB, free: 7.578 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4695, allocations: 3.938 kB / 0.4963 GB, free: 7.574 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001082/0.4706, allocations: 0.5242 MB / 0.4968 GB, free: 7.043 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.386e-05/0.4707, allocations: 148.5 kB / 0.497 GB, free: 6.867 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.4707, allocations: 4 kB / 0.497 GB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.4708, allocations: 7.938 kB / 0.497 GB, free: 6.855 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008697/0.4716, allocations: 263.7 kB / 0.4972 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001483/0.4731, allocations: 1.536 MB / 0.4987 GB, free: 4.926 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003269/0.4735, allocations: 56.05 kB / 0.4988 GB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.471e-05/0.4735, allocations: 8 kB / 0.4988 GB, free: 4.863 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.971e-06/0.4735, allocations: 4 kB / 0.4988 GB, free: 4.859 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000886/0.4744, allocations: 439.6 kB / 0.4992 GB, free: 4.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.938e-06/0.4744, allocations: 3.984 kB / 0.4992 GB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.258e-06/0.4744, allocations: 4 kB / 0.4992 GB, free: 4.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004596/0.4749, allocations: 132 kB / 0.4993 GB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.4749, allocations: 7.938 kB / 0.4994 GB, free: 4.285 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002581/0.4752, allocations: 47.95 kB / 0.4994 GB, free: 4.238 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/0.4752, allocations: 16 kB / 0.4994 GB, free: 4.223 MB / 378.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.0002046/0.4754, allocations: 237 kB / 0.4996 GB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.863e-05/0.4755, allocations: 39.53 kB / 0.4997 GB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.047e-05/0.4756, allocations: 56.22 kB / 0.4997 GB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.4756, allocations: 0 / 0.4997 GB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.4756, allocations: 4 kB / 0.4997 GB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.4756, allocations: 7.938 kB / 0.4997 GB, free: 3.875 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001547/0.4772, allocations: 0.9657 MB / 0.5007 GB, free: 2.844 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.4772, allocations: 0 / 0.5007 GB, free: 2.844 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000408/0.4776, allocations: 100 kB / 0.5008 GB, free: 2.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.4776, allocations: 4 kB / 0.5008 GB, free: 2.742 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.478e-05/0.4776, allocations: 8 kB / 0.5008 GB, free: 2.734 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.4776, allocations: 3.938 kB / 0.5008 GB, free: 2.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/0.4776, allocations: 7.938 kB / 0.5008 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001327/0.479, allocations: 0.7364 MB / 0.5015 GB, free: 1.957 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.4791, allocations: 132.7 kB / 0.5016 GB, free: 1.809 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.105e-05/0.4792, allocations: 8 kB / 0.5017 GB, free: 1.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002828/0.4795, allocations: 51.89 kB / 0.5017 GB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.993e-05/0.4795, allocations: 27.91 kB / 0.5017 GB, free: 1.723 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.4796, allocations: 12 kB / 0.5017 GB, free: 1.711 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002435/0.4798, allocations: 251.2 kB / 0.502 GB, free: 1.469 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4798, allocations: 0 / 0.502 GB, free: 1.469 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005033/0.4803, allocations: 147.9 kB / 0.5021 GB, free: 1.324 MB / 378.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.0001382/0.4805, allocations: 115.1 kB / 0.5022 GB, free: 1.203 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001812/0.4823, allocations: 0.7895 MB / 0.503 GB, free: 424 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.4823, allocations: 0 / 0.503 GB, free: 424 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004359/0.4827, allocations: 204.1 kB / 0.5032 GB, free: 220 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005967/0.4833, allocations: 98.38 kB / 0.5033 GB, free: 128 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.143/0.6264, allocations: 1.232 MB / 0.5045 GB, free: 95.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.6267, allocations: 0.8175 MB / 0.5053 GB, free: 94.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.6269, allocations: 32.97 kB / 0.5053 GB, free: 94.46 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.6269, allocations: 0 / 0.5053 GB, free: 94.46 MB / 378.7 MB Notification: Performance of Templates: time 0.007309/0.6342, allocations: 5.888 MB / 0.5111 GB, free: 94.07 MB / 378.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/jenkins1/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