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.001166/0.001166, allocations: 114.2 kB / 17.69 MB, free: 5.309 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.00114/0.00114, allocations: 191 kB / 18.63 MB, free: 4.375 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.357/1.357, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009618/0.0009618, allocations: 47.78 kB / 302 MB, free: 5.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.09735, allocations: 49.45 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004693/0.1021, allocations: 3.112 MB / 354.6 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001841/0.104, allocations: 0.9543 MB / 355.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002255/0.1042, allocations: 11.94 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003551/0.1046, allocations: 95.16 kB / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002233/0.1048, allocations: 99.08 kB / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005585/0.1054, allocations: 241.8 kB / 356 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005008/0.1059, allocations: 0.5146 MB / 356.5 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002941/0.1062, allocations: 165.2 kB / 356.7 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001923/0.1064, allocations: 195.2 kB / 356.9 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002262/0.1067, allocations: 210.9 kB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.156e-05/0.1067, allocations: 40 kB / 357.1 MB, free: 14.06 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.521e-05/0.1068, allocations: 44 kB / 357.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.972e-05/0.1069, allocations: 99.67 kB / 357.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001683/0.1071, allocations: 218.8 kB / 357.5 MB, free: 13.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004258/0.1075, allocations: 0.4942 MB / 358 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1075, allocations: 0 / 358 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1075, allocations: 0 / 358 MB, free: 13.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.1075, allocations: 0 / 358 MB, free: 13.21 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.001179/0.1087, allocations: 0.7638 MB / 358.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.1088, allocations: 11.89 kB / 358.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.071e-05/0.1088, allocations: 52.38 kB / 358.8 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005126/0.1094, allocations: 371.6 kB / 359.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.15e-05/0.1094, allocations: 33.36 kB / 359.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.873e-05/0.1095, allocations: 40.12 kB / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000805/0.1103, allocations: 446.4 kB / 359.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.351e-05/0.1103, allocations: 11.89 kB / 359.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.791e-05/0.1104, allocations: 16 kB / 359.7 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.1104, allocations: 8 kB / 359.7 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000868/0.1113, allocations: 371.7 kB / 360 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001977/0.1132, allocations: 1.571 MB / 361.6 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007466/0.114, allocations: 319 kB / 361.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003721/0.1144, allocations: 168.7 kB / 362.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.621e-05/0.1144, allocations: 7.938 kB / 362.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.1145, allocations: 34.56 kB / 362.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.663e-06/0.1145, allocations: 0 / 362.1 MB, free: 8.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002909/0.1174, allocations: 1.381 MB / 363.5 MB, free: 7.316 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.549e-05/0.1175, allocations: 81.11 kB / 363.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003557/0.1178, allocations: 357.6 kB / 363.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.078e-05/0.1179, allocations: 29.7 kB / 364 MB, free: 6.828 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.118, allocations: 239.9 kB / 364.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.281e-05/0.1181, allocations: 122.4 kB / 364.3 MB, free: 6.469 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.1182, allocations: 78.03 kB / 364.4 MB, free: 6.387 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1184, allocations: 358.7 kB / 364.8 MB, free: 6.027 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004131/0.1188, allocations: 170.5 kB / 364.9 MB, free: 5.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004522/0.1192, allocations: 252.8 kB / 365.2 MB, free: 5.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007786/0.12, allocations: 388 kB / 365.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.12, allocations: 0 / 365.5 MB, free: 5.176 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009948/0.121, allocations: 492.7 kB / 366 MB, free: 4.688 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.1211, allocations: 8 kB / 366 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1211, allocations: 0 / 366 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.1211, allocations: 4 kB / 366 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007993/0.1219, allocations: 215.8 kB / 366.3 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001596/0.1235, allocations: 1.568 MB / 367.8 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002945/0.1238, allocations: 44.05 kB / 367.9 MB, free: 2.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/0.1239, allocations: 16 kB / 367.9 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004864/0.1244, allocations: 268.9 kB / 368.1 MB, free: 2.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004346/0.1248, allocations: 240.8 kB / 368.4 MB, free: 2.164 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007099/0.1255, allocations: 367.8 kB / 368.7 MB, free: 1.777 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.234e-06/0.1255, allocations: 4 kB / 368.7 MB, free: 1.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009411/0.1265, allocations: 468.9 kB / 369.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.1265, allocations: 11.98 kB / 369.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.1265, allocations: 4 kB / 369.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.033e-06/0.1265, allocations: 7.938 kB / 369.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004787/0.127, allocations: 115.8 kB / 369.3 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.127, allocations: 4 kB / 369.3 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002845/0.1273, allocations: 39.95 kB / 369.4 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.277e-05/0.1274, allocations: 15.97 kB / 369.4 MB, free: 1.113 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.0001951/0.1276, allocations: 208.1 kB / 369.6 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.93e-05/0.1276, allocations: 47.38 kB / 369.6 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.101e-05/0.1277, allocations: 44.25 kB / 369.7 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.161e-06/0.1278, allocations: 7.984 kB / 369.7 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.1278, allocations: 0 / 369.7 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.1278, allocations: 3.984 kB / 369.7 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1959/0.3237, allocations: 0.9069 MB / 370.6 MB, free: 25.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/0.3238, allocations: 1.844 kB / 370.6 MB, free: 25.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004605/0.3242, allocations: 87.16 kB / 370.7 MB, free: 25.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.786e-06/0.3242, allocations: 2.719 kB / 370.7 MB, free: 25.49 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.711e-05/0.3243, allocations: 8.266 kB / 370.7 MB, free: 25.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.3243, allocations: 2.734 kB / 370.7 MB, free: 25.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3243, allocations: 5.344 kB / 370.7 MB, free: 25.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001485/0.3258, allocations: 0.6675 MB / 371.4 MB, free: 25.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001836/0.326, allocations: 136.3 kB / 371.5 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.16e-05/0.326, allocations: 7.781 kB / 371.5 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000308/0.3264, allocations: 36.67 kB / 371.6 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.3265, allocations: 30.08 kB / 371.6 MB, free: 25.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.3265, allocations: 14.62 kB / 371.6 MB, free: 25.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003432/0.3269, allocations: 247 kB / 371.8 MB, free: 25.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3269, allocations: 0 / 371.8 MB, free: 25.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006477/0.3275, allocations: 135.5 kB / 372 MB, free: 25.15 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.0001205/0.3277, allocations: 108.1 kB / 372.1 MB, free: 25.06 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001832/0.3295, allocations: 0.6943 MB / 372.8 MB, free: 25.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.638e-06/0.3295, allocations: 0 / 372.8 MB, free: 25.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004754/0.33, allocations: 183.6 kB / 373 MB, free: 25.05 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006367/0.3306, allocations: 103.5 kB / 373.1 MB, free: 25.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001736/0.3324, allocations: 1.002 MB / 374.1 MB, free: 24.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002904/0.3327, allocations: 0.8234 MB / 374.9 MB, free: 23.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002447/0.333, allocations: 61.91 kB / 374.9 MB, free: 23.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.3331, allocations: 35.34 kB / 375 MB, free: 23.85 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3331, allocations: 0 / 375 MB, free: 23.85 MB / 302.1 MB Notification: Performance of Templates: time 0.01063/0.3437, allocations: 4.665 MB / 379.6 MB, free: 23.55 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 -s cvode -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