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.001409/0.001409, allocations: 110.9 kB / 17.74 MB, free: 5.359 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.001474/0.001474, allocations: 180.5 kB / 18.66 MB, free: 4.449 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.521/1.521, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 51.92 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3786/0.3798, allocations: 49.43 MB / 401.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.00456/0.3844, allocations: 3.122 MB / 404.5 MB, free: 5.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002162/0.3866, allocations: 0.9583 MB / 405.5 MB, free: 4.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002859/0.3869, allocations: 15.94 kB / 405.5 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004003/0.3873, allocations: 91.11 kB / 405.6 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000244/0.3876, allocations: 107.1 kB / 405.7 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006227/0.3882, allocations: 227 kB / 405.9 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005534/0.3888, allocations: 0.5185 MB / 406.4 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003111/0.3891, allocations: 161.3 kB / 406.6 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002256/0.3893, allocations: 203.1 kB / 406.8 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002722/0.3896, allocations: 207 kB / 407 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.3e-05/0.3897, allocations: 40 kB / 407 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.988e-05/0.3898, allocations: 44 kB / 407.1 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.3899, allocations: 107.5 kB / 407.2 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001785/0.3901, allocations: 214.8 kB / 407.4 MB, free: 3.023 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005289/0.3906, allocations: 0.4916 MB / 407.9 MB, free: 2.535 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3906, allocations: 0 / 407.9 MB, free: 2.535 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3906, allocations: 0 / 407.9 MB, free: 2.535 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.3907, allocations: 0 / 407.9 MB, free: 2.535 MB / 318.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.00134/0.392, allocations: 0.7717 MB / 408.6 MB, free: 1.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3921, allocations: 11.89 kB / 408.7 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.3922, allocations: 52.28 kB / 408.7 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005654/0.3927, allocations: 367.8 kB / 409.1 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.3928, allocations: 33.31 kB / 409.1 MB, free: 1.219 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.857e-05/0.3929, allocations: 43.84 kB / 409.1 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008748/0.3937, allocations: 446.4 kB / 409.6 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.225e-05/0.3938, allocations: 3.938 kB / 409.6 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.799e-05/0.3938, allocations: 16 kB / 409.6 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.3938, allocations: 16 kB / 409.6 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009445/0.3948, allocations: 371.6 kB / 410 MB, free: 320 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002028/0.3968, allocations: 1.563 MB / 411.5 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000792/0.3976, allocations: 318.6 kB / 411.8 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004236/0.3981, allocations: 168.6 kB / 412 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.3981, allocations: 0.5 kB / 412 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.3982, allocations: 42.56 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.814e-06/0.3982, allocations: 0 / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003204/0.4014, allocations: 1.369 MB / 413.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.318e-05/0.4014, allocations: 81.11 kB / 413.5 MB, free: 12.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004137/0.4019, allocations: 361.5 kB / 413.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.038e-05/0.4019, allocations: 33.7 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001641/0.4021, allocations: 247.9 kB / 414.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.431e-05/0.4022, allocations: 114.3 kB / 414.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.4023, allocations: 82.06 kB / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.4024, allocations: 350.7 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004466/0.4029, allocations: 178.5 kB / 414.8 MB, free: 11.17 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004879/0.4034, allocations: 244.8 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008703/0.4043, allocations: 395.9 kB / 415.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.4043, allocations: 0 / 415.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00107/0.4054, allocations: 496.7 kB / 415.9 MB, free: 9.988 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.4054, allocations: 4 kB / 415.9 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.4054, allocations: 4.219 kB / 416 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.564e-05/0.4054, allocations: 8 kB / 416 MB, free: 9.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008767/0.4063, allocations: 215.6 kB / 416.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001648/0.408, allocations: 1.568 MB / 417.7 MB, free: 8.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003417/0.4083, allocations: 35.95 kB / 417.8 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.43e-05/0.4084, allocations: 20 kB / 417.8 MB, free: 8.004 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005468/0.4089, allocations: 268.9 kB / 418.1 MB, free: 7.738 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004371/0.4094, allocations: 236.9 kB / 418.3 MB, free: 7.48 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007915/0.4102, allocations: 371.7 kB / 418.7 MB, free: 7.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.673e-06/0.4102, allocations: 0 / 418.7 MB, free: 7.09 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009657/0.4112, allocations: 472.8 kB / 419.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.4112, allocations: 8 kB / 419.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.4112, allocations: 7.875 kB / 419.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.29e-06/0.4112, allocations: 4 kB / 419.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004847/0.4117, allocations: 123.8 kB / 419.3 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.4117, allocations: 8.156 kB / 419.3 MB, free: 6.473 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003022/0.412, allocations: 31.97 kB / 419.3 MB, free: 6.441 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.2e-05/0.4121, allocations: 12 kB / 419.3 MB, free: 6.43 MB / 334.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.0001784/0.4122, allocations: 208.1 kB / 419.5 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.325e-05/0.4123, allocations: 39.47 kB / 419.5 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.4124, allocations: 48.25 kB / 419.6 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.4125, allocations: 8 kB / 419.6 MB, free: 6.125 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.613e-06/0.4125, allocations: 3.938 kB / 419.6 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.4125, allocations: 0 / 419.6 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001615/0.4141, allocations: 0.9239 MB / 420.5 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.4141, allocations: 0 / 420.5 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004063/0.4145, allocations: 83.88 kB / 420.6 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.4145, allocations: 0 / 420.6 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.4146, allocations: 8 kB / 420.6 MB, free: 5.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.4146, allocations: 8.125 kB / 420.6 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4146, allocations: 0 / 420.6 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001394/0.416, allocations: 0.6675 MB / 421.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.4161, allocations: 132.7 kB / 421.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.688e-05/0.4162, allocations: 12 kB / 421.4 MB, free: 4.176 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.4165, allocations: 35.95 kB / 421.5 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.965e-05/0.4166, allocations: 27.91 kB / 421.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.581e-05/0.4166, allocations: 4 kB / 421.5 MB, free: 4.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002613/0.4169, allocations: 251.2 kB / 421.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4169, allocations: 0 / 421.7 MB, free: 3.863 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005117/0.4174, allocations: 140 kB / 421.9 MB, free: 3.727 MB / 334.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.0001434/0.4175, allocations: 107.1 kB / 422 MB, free: 3.609 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001865/0.4194, allocations: 0.6957 MB / 422.7 MB, free: 2.914 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4194, allocations: 0 / 422.7 MB, free: 2.914 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004434/0.4199, allocations: 175.8 kB / 422.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006403/0.4205, allocations: 120.2 kB / 423 MB, free: 2.629 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001769/0.4223, allocations: 1.031 MB / 424 MB, free: 1.551 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003684/0.4227, allocations: 0.8195 MB / 424.8 MB, free: 0.707 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.4228, allocations: 31.44 kB / 424.9 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4228, allocations: 0 / 424.9 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of Templates: time 0.008306/0.4311, allocations: 5.995 MB / 430.8 MB, free: 10.69 MB / 350.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