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.001392/0.001392, allocations: 112 kB / 17.07 MB, free: 5.945 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.001236/0.001237, allocations: 196 kB / 18.01 MB, free: 5.035 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.398/1.398, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009597/0.0009597, allocations: 51.92 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3363/0.3373, allocations: 49.44 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004615/0.342, allocations: 3.117 MB / 403.8 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001668/0.3437, allocations: 0.966 MB / 404.8 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002119/0.3439, allocations: 11.94 kB / 404.8 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003613/0.3442, allocations: 83.19 kB / 404.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002364/0.3445, allocations: 107.1 kB / 405 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000559/0.3451, allocations: 235.6 kB / 405.2 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005479/0.3456, allocations: 0.5107 MB / 405.7 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003305/0.346, allocations: 169.2 kB / 405.9 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002569/0.3462, allocations: 203.1 kB / 406.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002528/0.3465, allocations: 206.9 kB / 406.3 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.98e-05/0.3466, allocations: 44 kB / 406.3 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.937e-05/0.3466, allocations: 44 kB / 406.4 MB, free: 3.152 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.3468, allocations: 99.67 kB / 406.5 MB, free: 3.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001798/0.3469, allocations: 214.8 kB / 406.7 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000456/0.3474, allocations: 0.4992 MB / 407.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.3474, allocations: 0 / 407.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3474, allocations: 0 / 407.2 MB, free: 2.348 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.3474, allocations: 0 / 407.2 MB, free: 2.348 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.001363/0.3488, allocations: 0.76 MB / 408 MB, free: 1.539 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.3489, allocations: 15.89 kB / 408 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001097/0.349, allocations: 52.28 kB / 408 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000524/0.3495, allocations: 371.7 kB / 408.4 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.3495, allocations: 25.38 kB / 408.4 MB, free: 1.043 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.805e-05/0.3496, allocations: 47.84 kB / 408.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009103/0.3506, allocations: 450.3 kB / 408.9 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.3506, allocations: 0 / 408.9 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.3506, allocations: 16 kB / 408.9 MB, free: 0.5078 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.3506, allocations: 8 kB / 408.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009914/0.3516, allocations: 379.6 kB / 409.3 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00205/0.3537, allocations: 1.567 MB / 410.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008334/0.3545, allocations: 322.6 kB / 411.2 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004305/0.355, allocations: 156.8 kB / 411.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.766e-05/0.355, allocations: 4.5 kB / 411.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.3551, allocations: 38.56 kB / 411.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.453e-06/0.3551, allocations: 4 kB / 411.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003296/0.3584, allocations: 1.38 MB / 412.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.38e-05/0.3585, allocations: 81.11 kB / 412.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004112/0.3589, allocations: 361.5 kB / 413.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.149e-05/0.3589, allocations: 33.7 kB / 413.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.3591, allocations: 244 kB / 413.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.083e-05/0.3592, allocations: 114.3 kB / 413.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.3594, allocations: 78.12 kB / 413.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.3596, allocations: 354.7 kB / 414 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000484/0.3601, allocations: 170.5 kB / 414.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005412/0.3606, allocations: 248.8 kB / 414.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009224/0.3615, allocations: 388 kB / 414.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.3616, allocations: 4 kB / 414.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00112/0.3627, allocations: 0.4927 MB / 415.3 MB, free: 9.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.82e-05/0.3627, allocations: 4 kB / 415.3 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.3627, allocations: 4 kB / 415.3 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.3627, allocations: 8.219 kB / 415.3 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000906/0.3637, allocations: 207.7 kB / 415.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00173/0.3654, allocations: 1.576 MB / 417.1 MB, free: 7.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/0.3657, allocations: 31.95 kB / 417.1 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.676e-05/0.3658, allocations: 16 kB / 417.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005538/0.3663, allocations: 268.9 kB / 417.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004703/0.3668, allocations: 236.9 kB / 417.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008103/0.3676, allocations: 371.7 kB / 418 MB, free: 6.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.754e-06/0.3677, allocations: 0 / 418 MB, free: 6.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001008/0.3687, allocations: 476.8 kB / 418.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.3687, allocations: 4 kB / 418.4 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3687, allocations: 7.938 kB / 418.5 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.901e-06/0.3687, allocations: 4 kB / 418.5 MB, free: 6.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004953/0.3692, allocations: 127.7 kB / 418.6 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.3692, allocations: 8.156 kB / 418.6 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003042/0.3695, allocations: 31.97 kB / 418.6 MB, free: 6.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.739e-05/0.3696, allocations: 19.98 kB / 418.6 MB, free: 6.238 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.0001595/0.3697, allocations: 200.1 kB / 418.8 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.11e-05/0.3698, allocations: 43.47 kB / 418.9 MB, free: 5.992 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.221e-05/0.3699, allocations: 48.25 kB / 418.9 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.3699, allocations: 0 / 418.9 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3699, allocations: 4 kB / 418.9 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.37, allocations: 7.984 kB / 418.9 MB, free: 5.934 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/0.3716, allocations: 0.9122 MB / 419.8 MB, free: 4.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.3716, allocations: 4 kB / 419.9 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004247/0.3721, allocations: 83.88 kB / 419.9 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.3721, allocations: 4 kB / 419.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.588e-05/0.3721, allocations: 8 kB / 419.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.3721, allocations: 4.125 kB / 419.9 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.3721, allocations: 4 kB / 420 MB, free: 4.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00145/0.3736, allocations: 0.6636 MB / 420.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001545/0.3738, allocations: 136.7 kB / 420.8 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.421e-05/0.3738, allocations: 8 kB / 420.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003102/0.3741, allocations: 35.95 kB / 420.8 MB, free: 3.961 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.3743, allocations: 23.91 kB / 420.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.3743, allocations: 12.12 kB / 420.8 MB, free: 3.926 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002565/0.3745, allocations: 247.2 kB / 421.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3745, allocations: 0 / 421.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005734/0.3751, allocations: 136 kB / 421.2 MB, free: 3.551 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.0001386/0.3753, allocations: 119.1 kB / 421.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002026/0.3773, allocations: 0.6918 MB / 422 MB, free: 2.73 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.3773, allocations: 0 / 422 MB, free: 2.73 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004704/0.3778, allocations: 179.7 kB / 422.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000688/0.3785, allocations: 121.1 kB / 422.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.3803, allocations: 1.002 MB / 423.3 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003783/0.3807, allocations: 0.8195 MB / 424.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000232/0.381, allocations: 59.23 kB / 424.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.3811, allocations: 31.44 kB / 424.2 MB, free: 480 kB / 334.1 MB Notification: Performance of SimCode: time 6.42e-07/0.3811, allocations: 0 / 424.2 MB, free: 480 kB / 334.1 MB Notification: Performance of Templates: time 0.01034/0.3914, allocations: 4.724 MB / 428.9 MB, free: 11.79 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/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