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.001053/0.001053, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001007/0.001007, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.302/1.302, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 52.33 kB / 300.6 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09576/0.09688, allocations: 49.45 MB / 350 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004689/0.1016, allocations: 3.102 MB / 353.1 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002126/0.1038, allocations: 0.9699 MB / 354.1 MB, free: 328 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000445/0.1042, allocations: 11.94 kB / 354.1 MB, free: 316 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004258/0.1047, allocations: 87.17 kB / 354.2 MB, free: 228 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003962/0.1051, allocations: 107 kB / 354.3 MB, free: 120 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000699/0.1058, allocations: 234.6 kB / 354.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006887/0.1065, allocations: 0.5068 MB / 355 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003408/0.1069, allocations: 169.2 kB / 355.2 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002796/0.1072, allocations: 199.1 kB / 355.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00029/0.1075, allocations: 203 kB / 355.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.351e-05/0.1075, allocations: 40 kB / 355.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.764e-05/0.1076, allocations: 40 kB / 355.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.1077, allocations: 111.5 kB / 355.8 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002011/0.108, allocations: 214.8 kB / 356 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004801/0.1084, allocations: 482.6 kB / 356.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1085, allocations: 0 / 356.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1085, allocations: 0 / 356.5 MB, free: 13.94 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.1085, allocations: 0 / 356.5 MB, free: 13.94 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.001274/0.1098, allocations: 0.7741 MB / 357.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.1098, allocations: 15.89 kB / 357.3 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.991e-05/0.1099, allocations: 48.38 kB / 357.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004291/0.1103, allocations: 363.6 kB / 357.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.264e-05/0.1104, allocations: 29.38 kB / 357.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.777e-05/0.1105, allocations: 40.12 kB / 357.7 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000871/0.1113, allocations: 450.3 kB / 358.2 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.1114, allocations: 7.906 kB / 358.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.534e-05/0.1114, allocations: 19.94 kB / 358.2 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.1114, allocations: 8 kB / 358.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009311/0.1124, allocations: 379.6 kB / 358.6 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.1144, allocations: 1.575 MB / 360.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008206/0.1152, allocations: 315.1 kB / 360.5 MB, free: 9.738 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004301/0.1156, allocations: 164.8 kB / 360.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.801e-05/0.1157, allocations: 7.938 kB / 360.6 MB, free: 9.566 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.1157, allocations: 38.56 kB / 360.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.402e-06/0.1157, allocations: 0 / 360.7 MB, free: 9.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003318/0.1191, allocations: 1.373 MB / 362 MB, free: 8.051 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.077e-05/0.1192, allocations: 85.09 kB / 362.1 MB, free: 7.949 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005271/0.1197, allocations: 353.6 kB / 362.5 MB, free: 7.598 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.411e-05/0.1198, allocations: 33.7 kB / 362.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002557/0.12, allocations: 239.9 kB / 362.7 MB, free: 7.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.1202, allocations: 122.5 kB / 362.9 MB, free: 7.199 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001913/0.1204, allocations: 85.97 kB / 362.9 MB, free: 7.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002278/0.1206, allocations: 350.7 kB / 363.3 MB, free: 6.758 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006881/0.1213, allocations: 170.5 kB / 363.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007643/0.1221, allocations: 248.8 kB / 363.7 MB, free: 6.316 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/0.1234, allocations: 395.9 kB / 364.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1234, allocations: 0 / 364.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001666/0.1251, allocations: 492.8 kB / 364.6 MB, free: 5.414 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.1252, allocations: 4 kB / 364.6 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.29e-05/0.1252, allocations: 4 kB / 364.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.1252, allocations: 4 kB / 364.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.1266, allocations: 211.9 kB / 364.8 MB, free: 5.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002323/0.1289, allocations: 1.572 MB / 366.4 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004868/0.1294, allocations: 39.98 kB / 366.4 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.176e-05/0.1295, allocations: 16 kB / 366.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007742/0.1302, allocations: 272.9 kB / 366.7 MB, free: 3.156 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006633/0.1309, allocations: 232.9 kB / 366.9 MB, free: 2.898 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001201/0.1321, allocations: 379.7 kB / 367.3 MB, free: 2.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.534e-06/0.1322, allocations: 0 / 367.3 MB, free: 2.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001521/0.1337, allocations: 472.8 kB / 367.7 MB, free: 2.031 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.1337, allocations: 4 kB / 367.7 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.1337, allocations: 4 kB / 367.7 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.357e-06/0.1338, allocations: 11.88 kB / 367.8 MB, free: 2.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007699/0.1345, allocations: 115.8 kB / 367.9 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.1346, allocations: 8.156 kB / 367.9 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004744/0.135, allocations: 35.95 kB / 367.9 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.575e-05/0.1351, allocations: 16 kB / 367.9 MB, free: 1.84 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.0002072/0.1353, allocations: 196.2 kB / 368.1 MB, free: 1.641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.1354, allocations: 51.31 kB / 368.2 MB, free: 1.59 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001321/0.1356, allocations: 48.23 kB / 368.2 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.1356, allocations: 4 kB / 368.2 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1356, allocations: 4 kB / 368.2 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.1356, allocations: 0 / 368.2 MB, free: 1.535 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002412/0.138, allocations: 0.9168 MB / 369.1 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.1381, allocations: 4 kB / 369.1 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005916/0.1387, allocations: 83.92 kB / 369.2 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.396e-06/0.1387, allocations: 7.938 kB / 369.2 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.514e-05/0.1387, allocations: 8.125 kB / 369.2 MB, free: 464 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1388, allocations: 4 kB / 369.2 MB, free: 460 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.1388, allocations: 4 kB / 369.2 MB, free: 456 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2308/0.3695, allocations: 0.666 MB / 369.9 MB, free: 25.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001977/0.3698, allocations: 134.9 kB / 370 MB, free: 25.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.467e-05/0.3698, allocations: 8.719 kB / 370.1 MB, free: 25.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003668/0.3702, allocations: 36.05 kB / 370.1 MB, free: 25.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.976e-05/0.3703, allocations: 26.22 kB / 370.1 MB, free: 25.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-05/0.3703, allocations: 11.47 kB / 370.1 MB, free: 25.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003085/0.3707, allocations: 248.6 kB / 370.4 MB, free: 25.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3707, allocations: 0.6875 kB / 370.4 MB, free: 25.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005851/0.3713, allocations: 136.7 kB / 370.5 MB, free: 25.19 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.00011/0.3714, allocations: 103.4 kB / 370.6 MB, free: 25.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002181/0.3736, allocations: 0.7018 MB / 371.3 MB, free: 25.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.3736, allocations: 0 / 371.3 MB, free: 25.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005055/0.3741, allocations: 183.6 kB / 371.5 MB, free: 25.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007101/0.3748, allocations: 107 kB / 371.6 MB, free: 25.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002001/0.3768, allocations: 1.012 MB / 372.6 MB, free: 24.63 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002791/0.3771, allocations: 0.8152 MB / 373.4 MB, free: 23.93 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002549/0.3774, allocations: 67.22 kB / 373.5 MB, free: 23.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.694e-05/0.3775, allocations: 34.03 kB / 373.5 MB, free: 23.91 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3775, allocations: 0 / 373.5 MB, free: 23.91 MB / 302.1 MB Notification: Performance of Templates: time 0.01252/0.39, allocations: 4.664 MB / 378.2 MB, free: 23.64 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/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_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches