Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001068/0.001068, allocations: 172.1 kB / 17.39 MB, free: 4.164 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.576/1.576, allocations: 223.3 MB / 241.4 MB, free: 11.69 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008573/0.0008573, allocations: 98.38 kB / 292.6 MB, free: 10.79 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003415/0.0003416, allocations: 8 kB / 352.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.305, allocations: 50.41 MB / 402.7 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1159/0.4209, allocations: 82.61 MB / 485.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.4212, allocations: 76.53 kB / 485.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02259/0.4438, allocations: 8.326 MB / 493.7 MB, free: 5.332 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.846e-06/0.4439, allocations: 0 / 493.7 MB, free: 5.332 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.714e-05/0.4439, allocations: 8 kB / 493.7 MB, free: 5.324 MB / 362.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.001635/0.4456, allocations: 0.725 MB / 494.5 MB, free: 4.543 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.4457, allocations: 8.031 kB / 494.5 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001875/0.4458, allocations: 52.28 kB / 494.5 MB, free: 4.484 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006872/0.4465, allocations: 360.7 kB / 494.9 MB, free: 4.098 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.807e-05/0.4466, allocations: 29.38 kB / 494.9 MB, free: 4.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.349e-05/0.4467, allocations: 40.38 kB / 494.9 MB, free: 4.031 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009608/0.4477, allocations: 474.8 kB / 495.4 MB, free: 3.543 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/0.4477, allocations: 4.172 kB / 495.4 MB, free: 3.539 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.143e-05/0.4478, allocations: 19.94 kB / 495.4 MB, free: 3.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.4478, allocations: 8 kB / 495.4 MB, free: 3.512 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001069/0.4489, allocations: 423.6 kB / 495.9 MB, free: 3.098 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002705/0.4516, allocations: 1.59 MB / 497.4 MB, free: 1.418 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008218/0.4524, allocations: 332.3 kB / 497.8 MB, free: 1.082 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004341/0.4529, allocations: 185.2 kB / 498 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.791e-05/0.4529, allocations: 4 kB / 498 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.221e-05/0.4529, allocations: 46.44 kB / 498 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 1.983e-06/0.453, allocations: 0 / 498 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.00342/0.4564, allocations: 1.503 MB / 499.5 MB, free: 15.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.351e-05/0.4565, allocations: 81.11 kB / 499.6 MB, free: 15.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004489/0.457, allocations: 365.5 kB / 499.9 MB, free: 14.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.148e-05/0.457, allocations: 29.7 kB / 500 MB, free: 14.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.4572, allocations: 244 kB / 0.4885 GB, free: 14.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.127e-05/0.4573, allocations: 118.4 kB / 0.4886 GB, free: 14.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.843e-05/0.4573, allocations: 8 kB / 0.4886 GB, free: 14.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001456/0.4575, allocations: 350.8 kB / 0.4889 GB, free: 14.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004542/0.4579, allocations: 188.7 kB / 0.4891 GB, free: 13.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004897/0.4584, allocations: 264.8 kB / 0.4894 GB, free: 13.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008695/0.4593, allocations: 439.3 kB / 0.4898 GB, free: 13.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.4593, allocations: 4 kB / 0.4898 GB, free: 13.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001138/0.4605, allocations: 0.5322 MB / 0.4903 GB, free: 12.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001697/0.4606, allocations: 145 kB / 0.4905 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.626e-05/0.4607, allocations: 4 kB / 0.4905 GB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.978e-05/0.4607, allocations: 8 kB / 0.4905 GB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009503/0.4617, allocations: 267.7 kB / 0.4907 GB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001864/0.4635, allocations: 1.541 MB / 0.4922 GB, free: 10.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003664/0.4639, allocations: 43.97 kB / 0.4923 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.955e-05/0.464, allocations: 20.06 kB / 0.4923 GB, free: 10.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.418e-06/0.464, allocations: 4 kB / 0.4923 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009658/0.465, allocations: 443.6 kB / 0.4927 GB, free: 9.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.465, allocations: 4 kB / 0.4927 GB, free: 9.926 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.843e-06/0.465, allocations: 4 kB / 0.4927 GB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004805/0.4655, allocations: 123.9 kB / 0.4928 GB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.4655, allocations: 7.938 kB / 0.4928 GB, free: 9.793 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003246/0.4658, allocations: 48.11 kB / 0.4929 GB, free: 9.746 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.892e-05/0.4659, allocations: 12 kB / 0.4929 GB, free: 9.734 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.000355/0.4662, allocations: 240.9 kB / 0.4931 GB, free: 9.488 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.794e-05/0.4663, allocations: 39.53 kB / 0.4932 GB, free: 9.449 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001176/0.4665, allocations: 52.23 kB / 0.4932 GB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.219e-06/0.4665, allocations: 4 kB / 0.4932 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.4665, allocations: 0 / 0.4932 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.4665, allocations: 0 / 0.4932 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/0.4684, allocations: 0.9618 MB / 0.4942 GB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.4684, allocations: 4.125 kB / 0.4942 GB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004044/0.4688, allocations: 95.88 kB / 0.4943 GB, free: 8.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-06/0.4688, allocations: 4 kB / 0.4943 GB, free: 8.266 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.4689, allocations: 11.98 kB / 0.4943 GB, free: 8.254 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.4689, allocations: 7.875 kB / 0.4943 GB, free: 8.246 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.54e-06/0.4689, allocations: 8 kB / 0.4943 GB, free: 8.238 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.4703, allocations: 0.7372 MB / 0.495 GB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.4705, allocations: 132.6 kB / 0.4951 GB, free: 7.324 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.23e-05/0.4705, allocations: 11.98 kB / 0.4951 GB, free: 7.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003009/0.4708, allocations: 51.91 kB / 0.4952 GB, free: 7.262 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.276e-05/0.4709, allocations: 27.89 kB / 0.4952 GB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.138e-05/0.471, allocations: 12 kB / 0.4952 GB, free: 7.223 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002945/0.4713, allocations: 251.2 kB / 0.4955 GB, free: 6.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4713, allocations: 0 / 0.4955 GB, free: 6.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005765/0.4718, allocations: 144 kB / 0.4956 GB, free: 6.84 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.0001778/0.472, allocations: 119.3 kB / 0.4957 GB, free: 6.715 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001875/0.4739, allocations: 0.789 MB / 0.4965 GB, free: 5.926 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.4739, allocations: 4 kB / 0.4965 GB, free: 5.922 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004489/0.4744, allocations: 200.1 kB / 0.4967 GB, free: 5.727 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006997/0.4751, allocations: 98.05 kB / 0.4968 GB, free: 5.633 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00208/0.4772, allocations: 1.224 MB / 0.498 GB, free: 4.367 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000437/0.4776, allocations: 0.8237 MB / 0.4988 GB, free: 3.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002982/0.4779, allocations: 55.25 kB / 0.4988 GB, free: 3.465 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.311e-05/0.478, allocations: 31.44 kB / 0.4989 GB, free: 3.434 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4781, allocations: 0 / 0.4989 GB, free: 3.434 MB / 378.7 MB Notification: Performance of Templates: time 0.2191/0.6972, allocations: 4.238 MB / 0.503 GB, free: 98.77 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches