Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001132/0.001132, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001229/0.00123, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002007/0.002007, allocations: 63.66 kB / 306.2 MB, free: 1.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1343, allocations: 50.53 MB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005392/0.1397, allocations: 3.156 MB / 359.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002407/0.1422, allocations: 0.9856 MB / 360.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005367/0.1428, allocations: 11.94 kB / 360.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004744/0.1433, allocations: 63.5 kB / 361 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004188/0.1437, allocations: 83.34 kB / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006682/0.1444, allocations: 211.3 kB / 361.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006243/0.145, allocations: 498.9 kB / 361.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003314/0.1454, allocations: 165.2 kB / 361.9 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002967/0.1457, allocations: 167.2 kB / 362.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002888/0.146, allocations: 198.9 kB / 362.3 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.482e-05/0.1461, allocations: 24 kB / 362.3 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.327e-05/0.1462, allocations: 24 kB / 362.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.1463, allocations: 87.59 kB / 362.4 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001994/0.1465, allocations: 194.8 kB / 362.6 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004292/0.1469, allocations: 450.6 kB / 363 MB, free: 8.211 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.147, allocations: 0 / 363 MB, free: 8.211 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.147, allocations: 4 kB / 363 MB, free: 8.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.04e-05/0.147, allocations: 0 / 363 MB, free: 8.207 MB / 302.1 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.001426/0.1484, allocations: 0.7717 MB / 363.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.1485, allocations: 11.97 kB / 363.8 MB, free: 7.375 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/0.1486, allocations: 56.36 kB / 363.9 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004778/0.1491, allocations: 355.7 kB / 364.2 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.858e-05/0.1491, allocations: 25.38 kB / 364.3 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.683e-05/0.1492, allocations: 40.36 kB / 364.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/0.1503, allocations: 459.5 kB / 364.7 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.1503, allocations: 3.906 kB / 364.8 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.055e-05/0.1504, allocations: 19.98 kB / 364.8 MB, free: 6.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.1504, allocations: 12 kB / 364.8 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001039/0.1514, allocations: 371.7 kB / 365.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002253/0.1537, allocations: 1.571 MB / 366.7 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008392/0.1545, allocations: 322.2 kB / 367 MB, free: 4.008 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004468/0.155, allocations: 168.7 kB / 367.2 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.396e-05/0.1551, allocations: 11.92 kB / 367.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.1551, allocations: 34.56 kB / 367.2 MB, free: 3.785 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.434e-06/0.1551, allocations: 4 kB / 367.2 MB, free: 3.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003337/0.1584, allocations: 1.373 MB / 368.6 MB, free: 2.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.918e-05/0.1585, allocations: 106.8 kB / 368.7 MB, free: 2.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004334/0.159, allocations: 357.6 kB / 369.1 MB, free: 1.828 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.211e-05/0.159, allocations: 33.7 kB / 369.1 MB, free: 1.789 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001745/0.1592, allocations: 239.9 kB / 369.3 MB, free: 1.551 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.089e-05/0.1593, allocations: 118.5 kB / 369.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.1594, allocations: 78.03 kB / 369.5 MB, free: 1.352 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1596, allocations: 354.8 kB / 369.9 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004745/0.1601, allocations: 166.5 kB / 370 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005111/0.1606, allocations: 261.6 kB / 370.3 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008746/0.1615, allocations: 399.3 kB / 370.7 MB, free: 124 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.1615, allocations: 0 / 370.7 MB, free: 124 kB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.2019/0.3634, allocations: 488.5 kB / 371.2 MB, free: 20.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.758e-05/0.3635, allocations: 5.312 kB / 371.2 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.3635, allocations: 1.75 kB / 371.2 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.3635, allocations: 4.969 kB / 371.2 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009457/0.3645, allocations: 209.7 kB / 371.4 MB, free: 20.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001405/0.3659, allocations: 1.473 MB / 372.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003774/0.3663, allocations: 40.3 kB / 372.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.3663, allocations: 19.67 kB / 372.9 MB, free: 18.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005431/0.3669, allocations: 273 kB / 373.2 MB, free: 18.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004597/0.3674, allocations: 242.2 kB / 373.4 MB, free: 18.81 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008173/0.3682, allocations: 371.7 kB / 373.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.334e-06/0.3682, allocations: 2.719 kB / 373.8 MB, free: 18.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009874/0.3692, allocations: 466.9 kB / 374.2 MB, free: 18.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.232e-05/0.3692, allocations: 7.141 kB / 374.2 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.3692, allocations: 2.219 kB / 374.2 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.74e-06/0.3692, allocations: 4.781 kB / 374.2 MB, free: 18.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005287/0.3698, allocations: 115.6 kB / 374.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.3698, allocations: 12.94 kB / 374.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003525/0.3702, allocations: 40.84 kB / 374.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.524e-05/0.3702, allocations: 16.28 kB / 374.4 MB, free: 18.68 MB / 302.1 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 (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001324/0.3703, allocations: 204.5 kB / 374.6 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.631e-05/0.3704, allocations: 40.36 kB / 374.7 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.824e-05/0.3705, allocations: 46.55 kB / 374.7 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3705, allocations: 7.188 kB / 374.7 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3705, allocations: 0 / 374.7 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.104e-06/0.3706, allocations: 4.469 kB / 374.7 MB, free: 18.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001595/0.3722, allocations: 0.9148 MB / 375.6 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.576e-06/0.3722, allocations: 2.547 kB / 375.6 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004219/0.3726, allocations: 89.7 kB / 375.7 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.3726, allocations: 3.266 kB / 375.7 MB, free: 17.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.443e-05/0.3726, allocations: 7.266 kB / 375.7 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.3727, allocations: 11.17 kB / 375.8 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.3727, allocations: 1.375 kB / 375.8 MB, free: 17.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001385/0.3741, allocations: 0.6707 MB / 376.4 MB, free: 17.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.3742, allocations: 139.4 kB / 376.6 MB, free: 17.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.092e-05/0.3742, allocations: 6.922 kB / 376.6 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003146/0.3746, allocations: 33.92 kB / 376.6 MB, free: 17.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.3747, allocations: 31.11 kB / 376.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.157e-05/0.3747, allocations: 7.625 kB / 376.6 MB, free: 17.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003315/0.375, allocations: 249.1 kB / 376.9 MB, free: 17.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3751, allocations: 1.406 kB / 376.9 MB, free: 17.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006253/0.3757, allocations: 134 kB / 377 MB, free: 17.37 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000139/0.3758, allocations: 112.2 kB / 377.1 MB, free: 17.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002032/0.3779, allocations: 0.6856 MB / 377.8 MB, free: 17.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.3779, allocations: 448 / 377.8 MB, free: 17.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004811/0.3784, allocations: 182.5 kB / 378 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007456/0.3791, allocations: 95 kB / 378.1 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.3809, allocations: 1.162 MB / 379.2 MB, free: 16.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.3812, allocations: 0.8239 MB / 380.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003012/0.3815, allocations: 64.42 kB / 380.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.3816, allocations: 28.88 kB / 380.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3816, allocations: 1.281 kB / 380.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of Templates: time 0.00963/0.3912, allocations: 4.292 MB / 384.5 MB, free: 14.93 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches