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.001186/0.001185, allocations: 115.3 kB / 17.06 MB, free: 6 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.001275/0.001275, allocations: 196 kB / 18 MB, free: 5.078 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.386/1.386, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 51.92 kB / 351.3 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2827, allocations: 49.42 MB / 400.7 MB, free: 8.73 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004408/0.2872, allocations: 3.119 MB / 403.8 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.2888, allocations: 0.9544 MB / 404.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002413/0.2891, allocations: 23.81 kB / 404.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003659/0.2894, allocations: 87.22 kB / 404.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002598/0.2897, allocations: 107.1 kB / 405 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005307/0.2903, allocations: 223.6 kB / 405.2 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004857/0.2908, allocations: 0.5224 MB / 405.7 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002825/0.2911, allocations: 169.2 kB / 405.9 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002085/0.2913, allocations: 195.2 kB / 406.1 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002225/0.2915, allocations: 210.9 kB / 406.3 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.798e-05/0.2916, allocations: 40 kB / 406.3 MB, free: 3.215 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.533e-05/0.2916, allocations: 40 kB / 406.4 MB, free: 3.176 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.2918, allocations: 107.6 kB / 406.5 MB, free: 3.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.2919, allocations: 214.8 kB / 406.7 MB, free: 2.859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004882/0.2924, allocations: 0.4953 MB / 407.2 MB, free: 2.367 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2924, allocations: 4 kB / 407.2 MB, free: 2.363 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.2924, allocations: 0 / 407.2 MB, free: 2.363 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.2925, allocations: 3.938 kB / 407.2 MB, free: 2.359 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.00124/0.2937, allocations: 0.7639 MB / 408 MB, free: 1.547 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.2937, allocations: 11.89 kB / 408 MB, free: 1.535 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.665e-05/0.2938, allocations: 56.28 kB / 408 MB, free: 1.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005079/0.2944, allocations: 363.8 kB / 408.4 MB, free: 1.082 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/0.2944, allocations: 29.38 kB / 408.4 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.735e-05/0.2945, allocations: 47.84 kB / 408.5 MB, free: 1.008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007913/0.2953, allocations: 446.3 kB / 408.9 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.2953, allocations: 4 kB / 408.9 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.465e-05/0.2953, allocations: 16 kB / 408.9 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.2954, allocations: 8 kB / 408.9 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008698/0.2962, allocations: 375.6 kB / 409.3 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.2982, allocations: 1.563 MB / 410.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007385/0.2989, allocations: 326.7 kB / 411.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003774/0.2993, allocations: 168.7 kB / 411.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.2994, allocations: 4.5 kB / 411.3 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.39e-05/0.2994, allocations: 34.56 kB / 411.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.2994, allocations: 0 / 411.4 MB, free: 13.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.00305/0.3025, allocations: 1.373 MB / 412.8 MB, free: 12.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.451e-05/0.3025, allocations: 85.09 kB / 412.8 MB, free: 12.37 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000372/0.3029, allocations: 357.5 kB / 413.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.646e-05/0.3029, allocations: 33.7 kB / 413.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.3031, allocations: 239.9 kB / 413.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.476e-05/0.3032, allocations: 122.2 kB / 413.6 MB, free: 11.61 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001205/0.3033, allocations: 74.12 kB / 413.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3035, allocations: 354.7 kB / 414 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000438/0.3039, allocations: 178.5 kB / 414.2 MB, free: 11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004836/0.3044, allocations: 248.8 kB / 414.4 MB, free: 10.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000824/0.3053, allocations: 395.9 kB / 414.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.3053, allocations: 0 / 414.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0009929/0.3063, allocations: 496.7 kB / 415.3 MB, free: 9.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.3063, allocations: 8 kB / 415.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.3063, allocations: 0 / 415.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.3063, allocations: 7.938 kB / 415.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008177/0.3072, allocations: 211.9 kB / 415.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001543/0.3087, allocations: 1.564 MB / 417.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002919/0.309, allocations: 39.95 kB / 417.1 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.837e-05/0.3091, allocations: 20.09 kB / 417.1 MB, free: 7.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004707/0.3095, allocations: 272.9 kB / 417.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004271/0.31, allocations: 240.8 kB / 417.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007368/0.3107, allocations: 363.8 kB / 418 MB, free: 6.926 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.643e-06/0.3107, allocations: 0 / 418 MB, free: 6.926 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009248/0.3117, allocations: 476.8 kB / 418.4 MB, free: 6.453 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.637e-06/0.3117, allocations: 7.938 kB / 418.5 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.3117, allocations: 8.156 kB / 418.5 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.829e-06/0.3117, allocations: 8 kB / 418.5 MB, free: 6.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004547/0.3122, allocations: 111.9 kB / 418.6 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.3122, allocations: 4 kB / 418.6 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/0.3125, allocations: 39.95 kB / 418.6 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.3125, allocations: 15.98 kB / 418.6 MB, free: 6.262 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.0001522/0.3127, allocations: 204.1 kB / 418.8 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.975e-05/0.3127, allocations: 51.41 kB / 418.9 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.294e-05/0.3128, allocations: 44.23 kB / 418.9 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.3128, allocations: 4 kB / 418.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.3128, allocations: 0 / 418.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3129, allocations: 0 / 418.9 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001579/0.3144, allocations: 0.9239 MB / 419.9 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3144, allocations: 0 / 419.9 MB, free: 4.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004016/0.3149, allocations: 91.98 kB / 419.9 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.3149, allocations: 4 kB / 420 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/0.3149, allocations: 4 kB / 420 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.3149, allocations: 4 kB / 420 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.3149, allocations: 0 / 420 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.3163, allocations: 0.6714 MB / 420.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/0.3164, allocations: 132.8 kB / 420.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.704e-05/0.3165, allocations: 16 kB / 420.8 MB, free: 4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002726/0.3168, allocations: 31.95 kB / 420.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.968e-05/0.3169, allocations: 31.91 kB / 420.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.779e-05/0.3169, allocations: 8 kB / 420.8 MB, free: 3.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002811/0.3172, allocations: 251.1 kB / 421.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3172, allocations: 0 / 421.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005122/0.3177, 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.0001355/0.3179, allocations: 103.2 kB / 421.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001708/0.3196, allocations: 0.6996 MB / 422 MB, free: 2.738 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3196, allocations: 0 / 422 MB, free: 2.738 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004453/0.32, allocations: 184.5 kB / 422.2 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005875/0.3206, allocations: 97.03 kB / 422.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.3224, allocations: 1.01 MB / 423.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000402/0.3228, allocations: 0.8156 MB / 424.1 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002409/0.3231, allocations: 71.23 kB / 424.2 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.683e-05/0.3232, allocations: 27.44 kB / 424.2 MB, free: 492 kB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3232, allocations: 0 / 424.2 MB, free: 492 kB / 334.1 MB Notification: Performance of Templates: time 0.008779/0.332, allocations: 4.72 MB / 428.9 MB, free: 11.8 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