Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001251/0.001251, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001409, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 55.91 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3458/0.3471, allocations: 50.56 MB / 409.2 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.005471/0.3526, allocations: 3.116 MB / 412.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003043/0.3557, allocations: 0.9931 MB / 413.4 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006412/0.3563, allocations: 15.88 kB / 413.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004683/0.3568, allocations: 87.23 kB / 413.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005061/0.3574, allocations: 103.1 kB / 413.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008415/0.3582, allocations: 227.6 kB / 413.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008514/0.3591, allocations: 0.5185 MB / 414.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004027/0.3595, allocations: 169.2 kB / 414.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004144/0.3599, allocations: 199.2 kB / 414.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003983/0.3603, allocations: 210.9 kB / 414.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001145/0.3605, allocations: 40 kB / 414.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.3606, allocations: 44 kB / 414.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.3607, allocations: 99.67 kB / 415 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002674/0.361, allocations: 214.8 kB / 415.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006807/0.3617, allocations: 0.4954 MB / 415.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3617, allocations: 0 / 415.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3617, allocations: 0 / 415.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.716e-05/0.3617, allocations: 0 / 415.7 MB, free: 11.18 MB / 334.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.001676/0.3634, allocations: 0.764 MB / 416.5 MB, free: 10.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.55e-05/0.3635, allocations: 11.97 kB / 416.5 MB, free: 10.36 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.3636, allocations: 56.28 kB / 416.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007897/0.3644, allocations: 359.8 kB / 416.9 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.423e-05/0.3645, allocations: 33.31 kB / 417 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-05/0.3646, allocations: 40.28 kB / 417 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.3656, allocations: 467.5 kB / 417.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.559e-05/0.3657, allocations: 0 / 417.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.13e-05/0.3657, allocations: 16 kB / 417.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.3658, allocations: 8 kB / 417.5 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001055/0.3668, allocations: 379.6 kB / 417.9 MB, free: 8.957 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002462/0.3693, allocations: 1.559 MB / 419.4 MB, free: 7.301 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008221/0.3701, allocations: 310.6 kB / 419.7 MB, free: 6.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004062/0.3706, allocations: 160.8 kB / 419.9 MB, free: 6.824 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.3706, allocations: 7.938 kB / 419.9 MB, free: 6.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.3706, allocations: 38.56 kB / 419.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.392e-06/0.3706, allocations: 0 / 419.9 MB, free: 6.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003626/0.3743, allocations: 1.392 MB / 421.3 MB, free: 5.281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.263e-05/0.3744, allocations: 106.8 kB / 421.4 MB, free: 5.152 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004975/0.3749, allocations: 353.6 kB / 421.8 MB, free: 4.801 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.3749, allocations: 33.7 kB / 421.8 MB, free: 4.762 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.3751, allocations: 244 kB / 422 MB, free: 4.516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001097/0.3753, allocations: 114.3 kB / 422.1 MB, free: 4.402 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/0.3754, allocations: 74.14 kB / 422.2 MB, free: 4.324 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.3756, allocations: 358.8 kB / 422.6 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004996/0.3761, allocations: 170.5 kB / 422.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005191/0.3767, allocations: 257.6 kB / 423 MB, free: 3.512 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009176/0.3776, allocations: 395.9 kB / 423.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3776, allocations: 0 / 423.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001152/0.3788, allocations: 0.4889 MB / 423.9 MB, free: 2.602 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.3788, allocations: 8 kB / 423.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.3788, allocations: 0 / 423.9 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.3789, allocations: 4 kB / 423.9 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008431/0.3797, allocations: 208 kB / 424.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/0.3814, allocations: 1.58 MB / 425.7 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003741/0.3818, allocations: 40.05 kB / 425.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.831e-05/0.3819, allocations: 16 kB / 425.7 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005451/0.3824, allocations: 268.9 kB / 426 MB, free: 360 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004928/0.3829, allocations: 245.6 kB / 426.2 MB, free: 80 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000821/0.3838, allocations: 379.8 kB / 426.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.945e-06/0.3838, allocations: 7.875 kB / 426.6 MB, free: 15.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001141/0.3849, allocations: 464.8 kB / 427 MB, free: 15.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3849, allocations: 4 kB / 427 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.385, allocations: 4 kB / 427 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.385, allocations: 4 kB / 427.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004935/0.3855, allocations: 119.8 kB / 427.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/0.3855, allocations: 11.92 kB / 427.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003487/0.3859, allocations: 40.11 kB / 427.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.039e-05/0.3859, allocations: 16 kB / 427.2 MB, free: 15.02 MB / 350.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.0002119/0.3861, allocations: 208.1 kB / 427.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.602e-05/0.3862, allocations: 35.53 kB / 427.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.3863, allocations: 48.25 kB / 427.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.3863, allocations: 7.938 kB / 427.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3863, allocations: 0 / 427.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.3864, allocations: 3.984 kB / 427.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001743/0.3881, allocations: 0.9231 MB / 428.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.3881, allocations: 0 / 428.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004112/0.3885, allocations: 87.88 kB / 428.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/0.3886, allocations: 0 / 428.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.182e-05/0.3886, allocations: 8 kB / 428.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.3886, allocations: 4 kB / 428.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3886, allocations: 0 / 428.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001459/0.3901, allocations: 0.6709 MB / 429.2 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001844/0.3903, allocations: 136.7 kB / 429.4 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.433e-05/0.3903, allocations: 12.12 kB / 429.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003073/0.3907, allocations: 35.95 kB / 429.4 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.3908, allocations: 23.97 kB / 429.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/0.3908, allocations: 15.94 kB / 429.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003022/0.3911, allocations: 247.2 kB / 429.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3911, allocations: 0 / 429.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006117/0.3917, allocations: 139.9 kB / 429.8 MB, free: 12.3 MB / 350.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.0001793/0.3919, allocations: 111.2 kB / 429.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001931/0.3939, allocations: 0.6918 MB / 430.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.3939, allocations: 3.938 kB / 430.6 MB, free: 11.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000459/0.3943, allocations: 179.8 kB / 430.8 MB, free: 11.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006814/0.395, allocations: 96.77 kB / 430.9 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.3972, allocations: 0.998 MB / 431.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/0.3978, allocations: 0.8155 MB / 432.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003093/0.3981, allocations: 67.22 kB / 432.8 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.3982, allocations: 35.44 kB / 432.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of SimCode: time 2.474e-06/0.3982, allocations: 0 / 432.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of Templates: time 0.01055/0.4088, allocations: 4.704 MB / 437.5 MB, free: 4.57 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_trunk_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches