Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001334/0.001335, allocations: 117.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001463/0.001463, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.888/1.888, allocations: 227.7 MB / 247.2 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 67.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.261, allocations: 50.54 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004512/0.2656, allocations: 3.127 MB / 412.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001949/0.2675, allocations: 0.9892 MB / 413.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002288/0.2678, allocations: 15.88 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003399/0.2682, allocations: 87.22 kB / 413.3 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000239/0.2684, allocations: 103.1 kB / 413.4 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005826/0.269, allocations: 238.3 kB / 413.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000583/0.2696, allocations: 0.5107 MB / 414.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003341/0.2699, allocations: 177.2 kB / 414.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002282/0.2702, allocations: 191.2 kB / 414.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002792/0.2705, allocations: 206.9 kB / 414.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.098e-05/0.2705, allocations: 44 kB / 414.7 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.864e-05/0.2706, allocations: 40 kB / 414.8 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.2707, allocations: 103.7 kB / 414.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002066/0.271, allocations: 210.8 kB / 415.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005957/0.2716, allocations: 0.4969 MB / 415.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2716, allocations: 0 / 415.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2716, allocations: 0 / 415.6 MB, free: 10.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.2716, allocations: 4 kB / 415.6 MB, free: 10.82 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.001375/0.273, allocations: 0.7791 MB / 416.4 MB, free: 9.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.273, allocations: 15.97 kB / 416.4 MB, free: 9.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.787e-05/0.2731, allocations: 66.72 kB / 416.4 MB, free: 9.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.688e-05/0.2732, allocations: 60.61 kB / 416.5 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005568/0.2738, allocations: 364 kB / 416.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.193e-05/0.2738, allocations: 37.38 kB / 416.9 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.518e-05/0.2739, allocations: 36.38 kB / 416.9 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009211/0.2748, allocations: 467.3 kB / 417.4 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.992e-05/0.2748, allocations: 3.953 kB / 417.4 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.594e-05/0.2749, allocations: 16 kB / 417.4 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.2749, allocations: 8 kB / 417.4 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.2759, allocations: 383.6 kB / 417.8 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002131/0.2781, allocations: 1.552 MB / 419.3 MB, free: 6.844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008256/0.2789, allocations: 314.8 kB / 419.6 MB, free: 6.523 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004608/0.2794, allocations: 164.7 kB / 419.8 MB, free: 6.359 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.2794, allocations: 7.984 kB / 419.8 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.2795, allocations: 38.56 kB / 419.8 MB, free: 6.305 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 3.546e-06/0.2795, allocations: 0 / 419.8 MB, free: 6.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=32): time 0.00332/0.2828, allocations: 1.397 MB / 421.2 MB, free: 4.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.273e-05/0.2829, allocations: 106.8 kB / 421.3 MB, free: 4.684 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003963/0.2833, allocations: 353.6 kB / 421.7 MB, free: 4.332 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.224e-05/0.2833, allocations: 37.7 kB / 421.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.2835, allocations: 244.3 kB / 422 MB, free: 4.043 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.544e-05/0.2836, allocations: 122.9 kB / 422.1 MB, free: 3.922 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001271/0.2838, allocations: 74.14 kB / 422.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.2839, allocations: 358.7 kB / 422.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004836/0.2844, allocations: 174.5 kB / 422.7 MB, free: 3.312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005574/0.285, allocations: 257.6 kB / 422.9 MB, free: 3.027 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009577/0.286, allocations: 392 kB / 423.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.286, allocations: 0 / 423.3 MB, free: 2.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001166/0.2871, allocations: 0.4892 MB / 423.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.2872, allocations: 8 kB / 423.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2872, allocations: 0 / 423.8 MB, free: 2.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.2872, allocations: 4 kB / 423.8 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009051/0.2881, allocations: 207.9 kB / 424 MB, free: 1.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001875/0.29, allocations: 1.576 MB / 425.6 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003574/0.2904, allocations: 40.05 kB / 425.6 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.15e-05/0.2904, allocations: 16 kB / 425.6 MB, free: 144 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006062/0.291, allocations: 269 kB / 425.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005084/0.2916, allocations: 245.6 kB / 426.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008638/0.2924, allocations: 375.7 kB / 426.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.833e-06/0.2924, allocations: 4 kB / 426.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001079/0.2935, allocations: 468.9 kB / 427 MB, free: 14.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.2936, allocations: 12.16 kB / 427 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.2936, allocations: 4 kB / 427 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.3e-06/0.2936, allocations: 4 kB / 427 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004932/0.2941, allocations: 127.8 kB / 427.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.2941, allocations: 4 kB / 427.1 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003141/0.2944, allocations: 31.97 kB / 427.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.2945, allocations: 23.98 kB / 427.2 MB, free: 14.53 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.0001875/0.2946, allocations: 204.1 kB / 427.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.925e-05/0.2947, allocations: 39.72 kB / 427.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001154/0.2948, allocations: 52.19 kB / 427.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.2949, allocations: 4 kB / 427.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.2949, allocations: 0 / 427.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.2949, allocations: 3.984 kB / 427.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001718/0.2966, allocations: 0.9116 MB / 428.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.2966, allocations: 4.031 kB / 428.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004168/0.297, allocations: 87.88 kB / 428.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.297, allocations: 0 / 428.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.2971, allocations: 8 kB / 428.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.2971, allocations: 4 kB / 428.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.2971, allocations: 0 / 428.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/0.2986, allocations: 0.6749 MB / 429.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/0.2987, allocations: 140.9 kB / 429.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.2988, allocations: 11.94 kB / 429.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003158/0.2991, allocations: 31.95 kB / 429.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.696e-05/0.2992, allocations: 27.97 kB / 429.4 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.2992, allocations: 12 kB / 429.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002785/0.2995, allocations: 251.1 kB / 429.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2995, allocations: 3.938 kB / 429.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005413/0.3001, allocations: 132 kB / 429.8 MB, free: 11.83 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.001869/0.302, allocations: 1.22 MB / 431 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002116/0.3041, allocations: 0.6872 MB / 431.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3041, allocations: 0 / 431.7 MB, free: 9.879 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000508/0.3046, allocations: 188.4 kB / 431.9 MB, free: 9.695 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006756/0.3053, allocations: 103.7 kB / 432 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006639/0.3119, allocations: 4.008 MB / 436 MB, free: 5.434 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004612/0.3124, allocations: 0.8234 MB / 436.8 MB, free: 4.582 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002585/0.3127, allocations: 59.23 kB / 436.8 MB, free: 4.527 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002147/0.3129, allocations: 139.4 kB / 437 MB, free: 4.391 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3129, allocations: 0 / 437 MB, free: 4.391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03584/0.3488, allocations: 8.701 MB / 445.7 MB, free: 11.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.55/11.9, allocations: 18.08 kB / 445.7 MB, free: 11.84 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1)