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.001329/0.001329, allocations: 111.7 kB / 17.29 MB, free: 6.207 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.001259/0.001259, allocations: 197.3 kB / 18.21 MB, free: 5.281 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.335/1.335, allocations: 222.9 MB / 241.9 MB, free: 15.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.001151, allocations: 52.58 kB / 300.8 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09453/0.0957, allocations: 49.45 MB / 350.2 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004816/0.1006, allocations: 3.132 MB / 353.4 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002195/0.1028, allocations: 0.9388 MB / 354.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004665/0.1033, allocations: 15.94 kB / 354.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004385/0.1037, allocations: 71.42 kB / 354.4 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003848/0.1042, allocations: 91.33 kB / 354.5 MB, free: 480 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006904/0.1049, allocations: 213.7 kB / 354.7 MB, free: 268 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007047/0.1056, allocations: 0.5068 MB / 355.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003431/0.1059, allocations: 173.2 kB / 355.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003031/0.1063, allocations: 195.2 kB / 355.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003018/0.1066, allocations: 207 kB / 355.8 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.569e-05/0.1067, allocations: 40 kB / 355.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.741e-05/0.1067, allocations: 44 kB / 355.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.1069, allocations: 107.5 kB / 355.9 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002373/0.1071, allocations: 218.7 kB / 356.2 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004251/0.1076, allocations: 371.4 kB / 356.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1076, allocations: 0 / 356.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1076, allocations: 0 / 356.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.044e-05/0.1076, allocations: 0 / 356.5 MB, free: 14.41 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.001447/0.1091, allocations: 0.7677 MB / 357.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.1091, allocations: 15.89 kB / 357.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001087/0.1092, allocations: 52.38 kB / 357.4 MB, free: 13.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004715/0.1097, allocations: 355.7 kB / 357.7 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.734e-05/0.1097, allocations: 29.31 kB / 357.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.414e-05/0.1098, allocations: 44.12 kB / 357.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009069/0.1107, allocations: 446.4 kB / 358.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.1108, allocations: 7.844 kB / 358.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.735e-05/0.1108, allocations: 16 kB / 358.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.41e-05/0.1108, allocations: 8 kB / 358.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000965/0.1118, allocations: 379.6 kB / 358.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002182/0.114, allocations: 1.567 MB / 360.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008145/0.1148, allocations: 318.6 kB / 360.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003998/0.1152, allocations: 164.7 kB / 360.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.1153, allocations: 4 kB / 360.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.33e-05/0.1153, allocations: 42.55 kB / 360.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.294e-06/0.1153, allocations: 3.938 kB / 360.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003207/0.1186, allocations: 1.378 MB / 362.1 MB, free: 8.535 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.178e-05/0.1186, allocations: 77.11 kB / 362.2 MB, free: 8.441 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003863/0.119, allocations: 361.6 kB / 362.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/0.1191, allocations: 33.7 kB / 362.5 MB, free: 8.043 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.1192, allocations: 239.9 kB / 362.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.792e-05/0.1193, allocations: 118.5 kB / 362.9 MB, free: 7.688 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.1195, allocations: 82.03 kB / 363 MB, free: 7.602 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1196, allocations: 358.7 kB / 363.3 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004499/0.1201, allocations: 170.5 kB / 363.5 MB, free: 7.07 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004888/0.1206, allocations: 244.8 kB / 363.7 MB, free: 6.805 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008918/0.1215, allocations: 383.5 kB / 364.1 MB, free: 6.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.1215, allocations: 4 kB / 364.1 MB, free: 6.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001085/0.1226, allocations: 497 kB / 364.6 MB, free: 5.906 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/0.1226, allocations: 7.938 kB / 364.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.1226, allocations: 4 kB / 364.6 MB, free: 5.895 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.1227, allocations: 7.984 kB / 364.6 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008645/0.1235, allocations: 207.9 kB / 364.8 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001839/0.1254, allocations: 1.576 MB / 366.4 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003884/0.1258, allocations: 39.98 kB / 366.4 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-05/0.1258, allocations: 16 kB / 366.4 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005828/0.1264, allocations: 273 kB / 366.7 MB, free: 3.641 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004718/0.1269, allocations: 236.8 kB / 366.9 MB, free: 3.379 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007975/0.1277, allocations: 367.5 kB / 367.3 MB, free: 2.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.716e-06/0.1277, allocations: 0 / 367.3 MB, free: 2.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001042/0.1288, allocations: 477 kB / 367.8 MB, free: 2.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.259e-05/0.1288, allocations: 4 kB / 367.8 MB, free: 2.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.1288, allocations: 4 kB / 367.8 MB, free: 2.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.083e-05/0.1289, allocations: 7.938 kB / 367.8 MB, free: 2.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004734/0.1293, allocations: 120 kB / 367.9 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.988e-05/0.1294, allocations: 11.98 kB / 367.9 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003077/0.1297, allocations: 31.97 kB / 367.9 MB, free: 2.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.554e-05/0.1297, allocations: 16 kB / 368 MB, free: 2.328 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.0001584/0.1299, allocations: 196.2 kB / 368.1 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.492e-05/0.13, allocations: 47.38 kB / 368.2 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.956e-05/0.1301, allocations: 44.23 kB / 368.2 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.1301, allocations: 8 kB / 368.2 MB, free: 2.031 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.1301, allocations: 3.938 kB / 368.2 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1301, allocations: 0 / 368.2 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001634/0.1317, allocations: 0.915 MB / 369.2 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.1318, allocations: 7.984 kB / 369.2 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004057/0.1322, allocations: 79.88 kB / 369.3 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.1322, allocations: 4 kB / 369.3 MB, free: 0.957 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.1322, allocations: 16.12 kB / 369.3 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1322, allocations: 0 / 369.3 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.1322, allocations: 4 kB / 369.3 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.1336, allocations: 0.6699 MB / 369.9 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.1337, allocations: 144.7 kB / 370.1 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.359e-05/0.1338, allocations: 4 kB / 370.1 MB, free: 76 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003074/0.1341, allocations: 39.94 kB / 370.1 MB, free: 36 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.645e-05/0.1342, allocations: 23.91 kB / 370.2 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.1342, allocations: 8.125 kB / 370.2 MB, free: 4 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.1906/0.3248, allocations: 245.4 kB / 370.4 MB, free: 25.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3249, allocations: 8.766 kB / 370.4 MB, free: 25.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000939/0.3258, allocations: 135.8 kB / 370.5 MB, free: 25.61 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.000145/0.326, allocations: 106.9 kB / 370.6 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002159/0.3281, allocations: 0.7013 MB / 371.3 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.3282, allocations: 0 / 371.3 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004893/0.3286, allocations: 181.4 kB / 371.5 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007687/0.3294, allocations: 105.3 kB / 371.6 MB, free: 25.52 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001887/0.3313, allocations: 1.201 MB / 372.8 MB, free: 24.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003513/0.3317, allocations: 0.8186 MB / 373.6 MB, free: 24.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.3318, allocations: 36.94 kB / 373.7 MB, free: 24.16 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3318, allocations: 0 / 373.7 MB, free: 24.16 MB / 302.1 MB Notification: Performance of Templates: time 0.0109/0.3427, allocations: 5.952 MB / 379.6 MB, free: 23.23 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