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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001683/0.001683, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002146/0.002146, allocations: 212.6 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 2.051/2.051, allocations: 230.6 MB / 258.3 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.001974/0.001974, allocations: 68.75 kB / 378.6 MB, free: 3.219 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/0.2514, allocations: 53.36 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004494/0.2559, allocations: 3.16 MB / 435.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.2578, allocations: 1.013 MB / 436.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002003/0.258, allocations: 19.81 kB / 436.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003362/0.2583, allocations: 87.17 kB / 436.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002267/0.2585, allocations: 103.1 kB / 436.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005732/0.2591, allocations: 249.7 kB / 436.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005767/0.2597, allocations: 0.5107 MB / 437 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002449/0.2599, allocations: 125.7 kB / 437.2 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002493/0.2602, allocations: 207.2 kB / 437.4 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002631/0.2604, allocations: 210.9 kB / 437.6 MB, free: 1.172 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.029e-05/0.2605, allocations: 40 kB / 437.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.434e-05/0.2605, allocations: 44 kB / 437.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.2607, allocations: 107.5 kB / 437.8 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000193/0.2609, allocations: 214.8 kB / 438 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005386/0.2614, allocations: 0.4908 MB / 438.5 MB, free: 296 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.2614, allocations: 0 / 438.5 MB, free: 296 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2614, allocations: 0 / 438.5 MB, free: 296 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.2614, allocations: 0 / 438.5 MB, free: 296 kB / 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.001227/0.2626, allocations: 0.7077 MB / 439.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.2627, allocations: 12.03 kB / 439.2 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.462e-05/0.2627, allocations: 74.72 kB / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.84e-05/0.2628, allocations: 52.61 kB / 439.3 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005111/0.2633, allocations: 306.1 kB / 439.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.129e-05/0.2634, allocations: 25.38 kB / 439.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.441e-05/0.2634, allocations: 44.38 kB / 439.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000863/0.2643, allocations: 459.3 kB / 440.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.2643, allocations: 3.953 kB / 440.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.354e-05/0.2644, allocations: 16 kB / 440.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.2644, allocations: 15.94 kB / 440.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009307/0.2653, allocations: 375.6 kB / 440.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002052/0.2673, allocations: 1.492 MB / 442 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007748/0.2681, allocations: 303.4 kB / 442.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003977/0.2685, allocations: 156.7 kB / 442.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.168e-05/0.2686, allocations: 8 kB / 442.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.2686, allocations: 34.56 kB / 442.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.382e-06/0.2686, allocations: 0 / 442.5 MB, free: 12.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003002/0.2716, allocations: 1.239 MB / 443.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.238e-05/0.2717, allocations: 106.8 kB / 443.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003947/0.2721, allocations: 365.6 kB / 444.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.286e-05/0.2721, allocations: 33.7 kB / 444.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.2723, allocations: 244.3 kB / 444.5 MB, free: 9.969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.303e-05/0.2724, allocations: 119.1 kB / 444.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.2725, allocations: 82.12 kB / 444.7 MB, free: 9.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.2727, allocations: 350.7 kB / 445 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004455/0.2731, allocations: 174.5 kB / 445.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005044/0.2736, allocations: 253.7 kB / 445.4 MB, free: 8.961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008826/0.2745, allocations: 391.3 kB / 445.8 MB, free: 8.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2745, allocations: 4 kB / 445.8 MB, free: 8.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001078/0.2756, allocations: 0.4895 MB / 446.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.2756, allocations: 8 kB / 446.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.2756, allocations: 0 / 446.3 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.2756, allocations: 4 kB / 446.3 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008387/0.2764, allocations: 215.8 kB / 446.5 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001651/0.2781, allocations: 1.469 MB / 448 MB, free: 6.246 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003311/0.2784, allocations: 39.95 kB / 448 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.79e-05/0.2785, allocations: 16 kB / 448.1 MB, free: 6.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005252/0.279, allocations: 277 kB / 448.3 MB, free: 5.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004573/0.2794, allocations: 237.7 kB / 448.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007715/0.2802, allocations: 371.4 kB / 448.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.834e-06/0.2802, allocations: 0 / 448.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009809/0.2812, allocations: 477.2 kB / 449.4 MB, free: 4.789 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/0.2812, allocations: 4 kB / 449.4 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.925e-06/0.2812, allocations: 4 kB / 449.4 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.811e-06/0.2812, allocations: 8.219 kB / 449.4 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004929/0.2817, allocations: 123.7 kB / 449.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.2817, allocations: 4 kB / 449.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002981/0.282, allocations: 31.95 kB / 449.6 MB, free: 4.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.734e-05/0.282, allocations: 16 kB / 449.6 MB, free: 4.602 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.0001651/0.2822, allocations: 208.1 kB / 449.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.024e-05/0.2823, allocations: 43.66 kB / 449.8 MB, free: 4.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.796e-05/0.2824, allocations: 56.17 kB / 449.9 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.2824, allocations: 7.984 kB / 449.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.2824, allocations: 0 / 449.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2824, allocations: 0 / 449.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001649/0.284, allocations: 0.8833 MB / 450.8 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.284, allocations: 0 / 450.8 MB, free: 3.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004165/0.2845, allocations: 95.94 kB / 450.9 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.695e-06/0.2845, allocations: 7.984 kB / 450.9 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.352e-05/0.2845, allocations: 4 kB / 450.9 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.508e-06/0.2845, allocations: 4 kB / 450.9 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2845, allocations: 0 / 450.9 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.2859, allocations: 0.6827 MB / 451.6 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.286, allocations: 55.75 kB / 451.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.91e-05/0.286, allocations: 11.98 kB / 451.6 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002896/0.2863, allocations: 35.97 kB / 451.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.577e-05/0.2864, allocations: 23.95 kB / 451.7 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.2864, allocations: 12 kB / 451.7 MB, free: 2.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002842/0.2867, allocations: 255.1 kB / 451.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2867, allocations: 0 / 451.9 MB, free: 2.133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005396/0.2873, allocations: 132 kB / 452.1 MB, free: 2.004 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.001715/0.289, allocations: 1.208 MB / 453.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001826/0.2908, allocations: 0.6571 MB / 453.9 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2908, allocations: 0 / 453.9 MB, free: 100 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004641/0.2913, allocations: 180.4 kB / 454.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006182/0.2919, allocations: 101.8 kB / 454.2 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006127/0.298, allocations: 4.011 MB / 458.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/0.2985, allocations: 0.8195 MB / 459 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002685/0.2987, allocations: 59.23 kB / 459.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002259/0.299, allocations: 143.4 kB / 459.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of SimCode: time 7.62e-07/0.299, allocations: 0 / 459.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03852/0.3375, allocations: 9.016 MB / 468.3 MB, free: 1.754 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/12.38, allocations: 10.73 kB / 468.3 MB, free: 1.746 MB / 366.1 MB " [Timeout remaining time 648] (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.000798085 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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.51225029816851] Failed to read output from testmodel.py, exit status != 0: ['time', 'PI.I.y', 'inertia1.phi', 'inertia1.w', 'integrator.y', 'spring.phi_rel', 'spring.w_rel'] 12.48487558029592 12.511123218 12.245084081 Calling exit ...