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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001567/0.001567, allocations: 103.2 kB / 17.59 MB, free: 5.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001975/0.001975, allocations: 191.3 kB / 18.52 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 222.9 MB / 242.2 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 43.88 kB / 301.3 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.104, allocations: 49.46 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004499/0.1085, allocations: 3.087 MB / 353.8 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002014/0.1105, allocations: 0.9661 MB / 354.8 MB, free: 352 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002371/0.1108, allocations: 11.94 kB / 354.8 MB, free: 340 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003621/0.1112, allocations: 87.11 kB / 354.9 MB, free: 252 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002403/0.1114, allocations: 107.1 kB / 355 MB, free: 144 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005587/0.112, allocations: 233.4 kB / 355.2 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004769/0.1125, allocations: 0.5106 MB / 355.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002826/0.1128, allocations: 169.2 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.113, allocations: 195.2 kB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/0.1132, allocations: 210.9 kB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.542e-05/0.1133, allocations: 40 kB / 356.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.97e-05/0.1134, allocations: 44 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001066/0.1135, allocations: 95.62 kB / 356.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.1137, allocations: 222.8 kB / 356.7 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000459/0.1141, allocations: 482.6 kB / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1142, allocations: 0 / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1142, allocations: 0 / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.1142, allocations: 0 / 357.1 MB, free: 13.96 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.001286/0.1155, allocations: 0.7755 MB / 357.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.1155, allocations: 11.89 kB / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.221e-05/0.1156, allocations: 56.25 kB / 358 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000411/0.116, allocations: 363.6 kB / 358.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.158e-05/0.1161, allocations: 29.38 kB / 358.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.674e-05/0.1161, allocations: 44.12 kB / 358.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008271/0.117, allocations: 446.3 kB / 358.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.117, allocations: 7.906 kB / 358.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.593e-05/0.1171, allocations: 16 kB / 358.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.1171, allocations: 8 kB / 358.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009617/0.118, allocations: 375.6 kB / 359.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001981/0.12, allocations: 1.567 MB / 360.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007888/0.1208, allocations: 323.6 kB / 361.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004152/0.1213, allocations: 164.8 kB / 361.3 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/0.1213, allocations: 4 kB / 361.3 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.1213, allocations: 34.56 kB / 361.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.502e-06/0.1213, allocations: 0 / 361.3 MB, free: 9.547 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003134/0.1245, allocations: 1.388 MB / 362.7 MB, free: 8.062 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.1245, allocations: 81.11 kB / 362.8 MB, free: 7.965 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003571/0.1249, allocations: 357.6 kB / 363.2 MB, free: 7.609 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.57e-05/0.1249, allocations: 29.7 kB / 363.2 MB, free: 7.574 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.1251, allocations: 244 kB / 363.4 MB, free: 7.332 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.079e-05/0.1252, allocations: 114.3 kB / 363.5 MB, free: 7.219 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/0.1253, allocations: 78.03 kB / 363.6 MB, free: 7.137 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.1254, allocations: 362.7 kB / 364 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004509/0.1259, allocations: 170.5 kB / 364.1 MB, free: 6.602 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005038/0.1264, allocations: 248.8 kB / 364.4 MB, free: 6.332 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009009/0.1273, allocations: 391.9 kB / 364.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1273, allocations: 0 / 364.8 MB, free: 5.922 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001082/0.1284, allocations: 492.8 kB / 365.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.1285, allocations: 11.98 kB / 365.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1285, allocations: 0 / 365.2 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.1285, allocations: 4 kB / 365.2 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009504/0.1294, allocations: 211.8 kB / 365.5 MB, free: 5.211 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/0.1312, allocations: 1.564 MB / 367 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/0.1316, allocations: 40.06 kB / 367.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.518e-05/0.1316, allocations: 16 kB / 367.1 MB, free: 3.453 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005229/0.1321, allocations: 276.8 kB / 367.3 MB, free: 3.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004531/0.1326, allocations: 244.8 kB / 367.6 MB, free: 2.906 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007975/0.1334, allocations: 363.7 kB / 367.9 MB, free: 2.523 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.336e-06/0.1334, allocations: 4 kB / 367.9 MB, free: 2.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001067/0.1345, allocations: 468.9 kB / 368.4 MB, free: 2.055 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.1345, allocations: 8 kB / 368.4 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-06/0.1345, allocations: 0 / 368.4 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.969e-06/0.1345, allocations: 7.938 kB / 368.4 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005432/0.1351, allocations: 123.8 kB / 368.5 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.1351, allocations: 4 kB / 368.5 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.1354, allocations: 36.03 kB / 368.6 MB, free: 1.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.252e-05/0.1354, allocations: 23.92 kB / 368.6 MB, free: 1.855 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.0001565/0.1356, allocations: 204.1 kB / 368.8 MB, free: 1.648 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.556e-05/0.1357, allocations: 47.38 kB / 368.8 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.78e-05/0.1358, allocations: 44.23 kB / 368.9 MB, free: 1.559 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.1358, allocations: 4 kB / 368.9 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1358, allocations: 0 / 368.9 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.1358, allocations: 0 / 368.9 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001639/0.1374, allocations: 0.9208 MB / 369.8 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.1374, allocations: 4 kB / 369.8 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004008/0.1379, allocations: 83.88 kB / 369.9 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5e-06/0.1379, allocations: 4 kB / 369.9 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.1379, allocations: 8 kB / 369.9 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.1379, allocations: 4 kB / 369.9 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1379, allocations: 0 / 369.9 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1885/0.3264, allocations: 0.671 MB / 370.6 MB, free: 25.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002062/0.3266, allocations: 134.2 kB / 370.7 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.341e-05/0.3267, allocations: 7.172 kB / 370.7 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000336/0.327, allocations: 35.84 kB / 370.8 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.463e-05/0.3271, allocations: 27.34 kB / 370.8 MB, free: 25.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.188e-05/0.3272, allocations: 10.12 kB / 370.8 MB, free: 25.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003049/0.3275, allocations: 248.4 kB / 371 MB, free: 25.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3275, allocations: 0 / 371 MB, free: 25.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000624/0.3281, allocations: 136.5 kB / 371.2 MB, free: 25.18 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.000114/0.3282, allocations: 103.6 kB / 371.3 MB, free: 25.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002153/0.3304, allocations: 0.7105 MB / 372 MB, free: 25.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3304, allocations: 4.906 kB / 372 MB, free: 25.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004704/0.3309, allocations: 181.2 kB / 372.2 MB, free: 25.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007251/0.3316, allocations: 96.27 kB / 372.3 MB, free: 25.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001827/0.3335, allocations: 1.051 MB / 373.3 MB, free: 24.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002676/0.3338, allocations: 0.8151 MB / 374.1 MB, free: 23.91 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.3339, allocations: 34.31 kB / 374.2 MB, free: 23.91 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3339, allocations: 0 / 374.2 MB, free: 23.91 MB / 302.1 MB Notification: Performance of Templates: time 0.00993/0.3438, allocations: 5.964 MB / 380.1 MB, free: 22.91 MB / 302.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches