Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001104/0.001104, allocations: 113.3 kB / 18.4 MB, free: 4.699 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.0009716/0.0009717, allocations: 189.2 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.273/1.273, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 47.94 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08994/0.09126, allocations: 46.61 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004727/0.09603, allocations: 3.118 MB / 378.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002178/0.09824, allocations: 1.006 MB / 379.9 MB, free: 444 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004103/0.09867, allocations: 19.94 kB / 379.9 MB, free: 424 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004731/0.09918, allocations: 91.17 kB / 380 MB, free: 332 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004074/0.0996, allocations: 103.1 kB / 380.1 MB, free: 228 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1922/0.2918, allocations: 231.9 kB / 380.4 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009753/0.2929, allocations: 0.5195 MB / 380.9 MB, free: 9.789 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004473/0.2933, allocations: 172.5 kB / 381.1 MB, free: 9.773 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004134/0.2937, allocations: 201.4 kB / 381.2 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003878/0.2942, allocations: 215.2 kB / 381.5 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001295/0.2943, allocations: 39.75 kB / 381.5 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001135/0.2944, allocations: 41.16 kB / 381.5 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.2945, allocations: 101.3 kB / 381.6 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002558/0.2948, allocations: 220.4 kB / 381.9 MB, free: 9.594 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006467/0.2955, allocations: 0.4917 MB / 382.3 MB, free: 9.523 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2955, allocations: 1.375 kB / 382.3 MB, free: 9.523 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2955, allocations: 0 / 382.3 MB, free: 9.523 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.185e-05/0.2955, allocations: 0 / 382.3 MB, free: 9.523 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.001416/0.2969, allocations: 0.767 MB / 383.1 MB, free: 9.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.297, allocations: 16.86 kB / 383.1 MB, free: 9.012 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.2971, allocations: 60.11 kB / 383.2 MB, free: 8.984 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005548/0.2977, allocations: 375.9 kB / 383.6 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.047e-05/0.2977, allocations: 25.38 kB / 383.6 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.614e-05/0.2978, allocations: 41.88 kB / 383.6 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009051/0.2987, allocations: 448.8 kB / 384.1 MB, free: 8.629 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.379e-05/0.2988, allocations: 13.97 kB / 384.1 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.2988, allocations: 14.44 kB / 384.1 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.2988, allocations: 9.125 kB / 384.1 MB, free: 8.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00096/0.2998, allocations: 377.7 kB / 384.5 MB, free: 8.613 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001763/0.3016, allocations: 1.565 MB / 386 MB, free: 7.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007656/0.3023, allocations: 306.2 kB / 386.3 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000409/0.3028, allocations: 168.4 kB / 386.5 MB, free: 7.594 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.796e-05/0.3028, allocations: 3.5 kB / 386.5 MB, free: 7.594 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.3028, allocations: 40.78 kB / 386.5 MB, free: 7.547 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.373e-06/0.3028, allocations: 0 / 386.5 MB, free: 7.547 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.002954/0.3058, allocations: 1.383 MB / 387.9 MB, free: 6.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.67e-05/0.3058, allocations: 79.98 kB / 388 MB, free: 6.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/0.3062, allocations: 366.5 kB / 388.4 MB, free: 6.469 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.186e-05/0.3062, allocations: 30.98 kB / 388.4 MB, free: 6.434 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.3063, allocations: 240.1 kB / 388.6 MB, free: 6.238 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.871e-05/0.3064, allocations: 122.2 kB / 388.7 MB, free: 6.145 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.3065, allocations: 75.31 kB / 388.8 MB, free: 6.098 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.487e-05/0.3066, allocations: 353.7 kB / 389.2 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004464/0.307, allocations: 169.4 kB / 389.3 MB, free: 5.715 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000478/0.3075, allocations: 254.1 kB / 389.6 MB, free: 5.574 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008518/0.3084, allocations: 394.5 kB / 390 MB, free: 5.391 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3084, allocations: 5 kB / 390 MB, free: 5.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001048/0.3095, allocations: 497.7 kB / 390.4 MB, free: 5.215 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3095, allocations: 7.219 kB / 390.5 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/0.3095, allocations: 2.25 kB / 390.5 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.448e-05/0.3095, allocations: 3.375 kB / 390.5 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008769/0.3104, allocations: 212.7 kB / 390.7 MB, free: 5.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.3118, allocations: 1.575 MB / 392.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003331/0.3121, allocations: 41.91 kB / 392.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.944e-05/0.3121, allocations: 12.59 kB / 392.3 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004745/0.3126, allocations: 278.2 kB / 392.6 MB, free: 3.566 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004172/0.313, allocations: 237.7 kB / 392.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007236/0.3138, allocations: 377.8 kB / 393.2 MB, free: 3.246 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.495e-06/0.3138, allocations: 1.188 kB / 393.2 MB, free: 3.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009131/0.3147, allocations: 466.6 kB / 393.6 MB, free: 3.086 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.3147, allocations: 5.719 kB / 393.6 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.3147, allocations: 2.875 kB / 393.6 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.055e-06/0.3147, allocations: 4.125 kB / 393.6 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004692/0.3152, allocations: 115.7 kB / 393.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.3152, allocations: 8.641 kB / 393.8 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003026/0.3155, allocations: 47.81 kB / 393.8 MB, free: 3.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.3156, allocations: 14 kB / 393.8 MB, free: 3.059 MB / 318.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.0001094/0.3157, allocations: 202.7 kB / 394 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.489e-05/0.3158, allocations: 39.27 kB / 394.1 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.794e-05/0.3159, allocations: 46.7 kB / 394.1 MB, free: 2.812 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3159, allocations: 8.031 kB / 394.1 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3159, allocations: 1.125 kB / 394.1 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.3159, allocations: 1.969 kB / 394.1 MB, free: 2.809 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001529/0.3174, allocations: 0.9239 MB / 395 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.3174, allocations: 1.844 kB / 395 MB, free: 2.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004061/0.3178, allocations: 86.5 kB / 395.1 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.3179, allocations: 2.922 kB / 395.1 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.633e-05/0.3179, allocations: 8.047 kB / 395.1 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.3179, allocations: 1.812 kB / 395.1 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.3179, allocations: 5.156 kB / 395.1 MB, free: 2.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.3193, allocations: 0.6722 MB / 395.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.3194, allocations: 132.5 kB / 395.9 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.18e-05/0.3195, allocations: 7.422 kB / 395.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002944/0.3198, allocations: 36.19 kB / 396 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.846e-05/0.3199, allocations: 30.78 kB / 396 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.837e-05/0.3199, allocations: 7.188 kB / 396 MB, free: 1.777 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002673/0.3202, allocations: 251.9 kB / 396.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.3202, allocations: 0 / 396.3 MB, free: 1.645 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005563/0.3207, allocations: 134.8 kB / 396.4 MB, free: 1.629 MB / 318.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.0001041/0.3208, allocations: 108 kB / 396.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001878/0.3227, allocations: 0.6944 MB / 397.2 MB, free: 1.379 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3227, allocations: 4 kB / 397.2 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000449/0.3232, allocations: 178.8 kB / 397.4 MB, free: 1.332 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006378/0.3238, allocations: 106.6 kB / 397.5 MB, free: 1.297 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.3255, allocations: 1.04 MB / 398.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000335/0.3258, allocations: 0.8172 MB / 399.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.326, allocations: 37.61 kB / 399.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.326, allocations: 0.75 kB / 399.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of Templates: time 0.01314/0.3391, allocations: 6.043 MB / 405.4 MB, free: 13.66 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches