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: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 107.3 kB / 17.06 MB, free: 5.82 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.001129/0.001129, allocations: 195.9 kB / 18 MB, free: 4.965 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.314/1.314, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 47.94 kB / 350.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.273, allocations: 49.44 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004745/0.2778, allocations: 3.112 MB / 403.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.2796, allocations: 0.9699 MB / 404.3 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002218/0.2799, allocations: 11.94 kB / 404.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003592/0.2802, allocations: 87.17 kB / 404.4 MB, free: 4.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000246/0.2805, allocations: 111.1 kB / 404.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005307/0.281, allocations: 222.1 kB / 404.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005783/0.2816, allocations: 0.5146 MB / 405.2 MB, free: 3.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000348/0.282, allocations: 173.2 kB / 405.4 MB, free: 3.637 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002435/0.2822, allocations: 207.1 kB / 405.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002778/0.2825, allocations: 203 kB / 405.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.234e-05/0.2826, allocations: 47.98 kB / 405.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.014e-05/0.2827, allocations: 43.94 kB / 405.9 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.2828, allocations: 95.69 kB / 406 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002063/0.283, allocations: 214.8 kB / 406.2 MB, free: 2.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005494/0.2836, allocations: 0.497 MB / 406.7 MB, free: 2.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2836, allocations: 3.938 kB / 406.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2836, allocations: 0 / 406.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.644e-06/0.2836, allocations: 0 / 406.7 MB, free: 2.34 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.00128/0.2849, allocations: 0.7752 MB / 407.5 MB, free: 1.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.2849, allocations: 12.03 kB / 407.5 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.525e-05/0.285, allocations: 74.72 kB / 407.6 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.194e-05/0.2851, allocations: 56.59 kB / 407.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005451/0.2857, allocations: 372 kB / 408 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.004e-05/0.2857, allocations: 33.12 kB / 408 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.746e-05/0.2858, allocations: 43.95 kB / 408.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008425/0.2867, allocations: 442.4 kB / 408.5 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.2867, allocations: 3.984 kB / 408.5 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.558e-05/0.2867, allocations: 16 kB / 408.5 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.2867, allocations: 12 kB / 408.5 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009378/0.2877, allocations: 379.6 kB / 408.9 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002016/0.2897, allocations: 1.567 MB / 410.5 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008167/0.2905, allocations: 312 kB / 410.8 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004332/0.291, allocations: 172.7 kB / 410.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.008e-05/0.291, allocations: 4.5 kB / 410.9 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.2911, allocations: 38.5 kB / 411 MB, free: 13.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.383e-06/0.2911, allocations: 0 / 411 MB, free: 13.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.003208/0.2943, allocations: 1.389 MB / 412.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.55e-05/0.2944, allocations: 81.11 kB / 412.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003384/0.2947, allocations: 361.6 kB / 412.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.09e-05/0.2947, allocations: 29.7 kB / 412.8 MB, free: 11.84 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.2949, allocations: 244.3 kB / 413.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.328e-05/0.295, allocations: 127.1 kB / 413.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.2951, allocations: 78.12 kB / 413.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.2952, allocations: 350.7 kB / 413.6 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004988/0.2957, allocations: 182.4 kB / 413.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005774/0.2963, allocations: 248.8 kB / 414 MB, free: 10.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008919/0.2972, allocations: 391.9 kB / 414.4 MB, free: 10.17 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.2972, allocations: 4 kB / 414.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001061/0.2983, allocations: 0.4893 MB / 414.9 MB, free: 9.668 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.2983, allocations: 4 kB / 414.9 MB, free: 9.664 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.2983, allocations: 4 kB / 414.9 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/0.2984, allocations: 4 kB / 414.9 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008602/0.2992, allocations: 215.7 kB / 415.1 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/0.3008, allocations: 1.564 MB / 416.7 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000316/0.3012, allocations: 35.95 kB / 416.7 MB, free: 7.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.386e-05/0.3012, allocations: 12 kB / 416.7 MB, free: 7.699 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005087/0.3017, allocations: 277 kB / 417 MB, free: 7.426 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004397/0.3022, allocations: 240.8 kB / 417.2 MB, free: 7.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007654/0.3029, allocations: 363.8 kB / 417.6 MB, free: 6.777 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.463e-06/0.303, allocations: 0 / 417.6 MB, free: 6.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009679/0.3039, allocations: 484.9 kB / 418.1 MB, free: 6.297 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.304, allocations: 14.44 kB / 418.1 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.725e-06/0.304, allocations: 0 / 418.1 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.649e-06/0.304, allocations: 4 kB / 418.1 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004764/0.3045, allocations: 124 kB / 418.2 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.3045, allocations: 4 kB / 418.2 MB, free: 6.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002919/0.3048, allocations: 35.95 kB / 418.3 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.3048, allocations: 16 kB / 418.3 MB, free: 6.105 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.0001469/0.305, allocations: 200.2 kB / 418.5 MB, free: 5.902 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.085e-05/0.305, allocations: 43.7 kB / 418.5 MB, free: 5.859 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.938e-05/0.3051, allocations: 48.25 kB / 418.6 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-06/0.3051, allocations: 4 kB / 418.6 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.3051, allocations: 0 / 418.6 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.3052, allocations: 3.984 kB / 418.6 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001646/0.3068, allocations: 0.9238 MB / 419.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.3068, allocations: 4 kB / 419.5 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000423/0.3073, allocations: 92.05 kB / 419.6 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3073, allocations: 0 / 419.6 MB, free: 4.723 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.3073, allocations: 8 kB / 419.6 MB, free: 4.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.3073, allocations: 7.938 kB / 419.6 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3073, allocations: 0 / 419.6 MB, free: 4.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001397/0.3087, allocations: 0.6678 MB / 420.3 MB, free: 4.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.3089, allocations: 144.8 kB / 420.4 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.924e-05/0.3089, allocations: 15.92 kB / 420.4 MB, free: 3.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002949/0.3092, allocations: 27.97 kB / 420.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.93e-05/0.3093, allocations: 27.91 kB / 420.5 MB, free: 3.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/0.3093, allocations: 11.98 kB / 420.5 MB, free: 3.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002463/0.3096, allocations: 247.2 kB / 420.7 MB, free: 3.527 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3096, allocations: 4 kB / 420.7 MB, free: 3.523 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004998/0.3101, allocations: 132 kB / 420.9 MB, free: 3.395 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.00165/0.3118, allocations: 1.228 MB / 422.1 MB, free: 2.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001909/0.3137, allocations: 0.6917 MB / 422.8 MB, free: 1.434 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3137, allocations: 0 / 422.8 MB, free: 1.434 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004369/0.3141, allocations: 180.2 kB / 423 MB, free: 1.258 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006392/0.3148, allocations: 105.8 kB / 423.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005786/0.3206, allocations: 4.012 MB / 427.1 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.321, allocations: 0.8234 MB / 427.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002468/0.3212, allocations: 63.22 kB / 428 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002073/0.3214, allocations: 139.3 kB / 428.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3214, allocations: 0 / 428.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02995/0.3514, allocations: 8.733 MB / 436.8 MB, free: 3.352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.62, allocations: 10.86 kB / 436.8 MB, free: 3.344 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.csv","/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