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.001271/0.001271, allocations: 122.6 kB / 18.5 MB, free: 4.578 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.001351/0.001351, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.017/2.017, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.001956/0.001956, allocations: 75.81 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09684/0.09879, allocations: 53.33 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004554/0.1033, allocations: 3.13 MB / 430.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.1051, allocations: 0.997 MB / 431.1 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001934/0.1053, allocations: 27.75 kB / 431.2 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003265/0.1056, allocations: 79.23 kB / 431.2 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002282/0.1059, allocations: 111.1 kB / 431.3 MB, free: 444 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005457/0.1064, allocations: 234.7 kB / 431.6 MB, free: 212 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1868/0.2932, allocations: 0.5093 MB / 432.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003264/0.2935, allocations: 119.7 kB / 432.2 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002729/0.2938, allocations: 208.6 kB / 432.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002252/0.294, allocations: 210.3 kB / 432.6 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.894e-05/0.2941, allocations: 44.03 kB / 432.6 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.78e-05/0.2941, allocations: 41.66 kB / 432.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.54e-05/0.2942, allocations: 102.6 kB / 432.8 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.2944, allocations: 213.1 kB / 433 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004874/0.2949, allocations: 0.4994 MB / 433.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2949, allocations: 1.172 kB / 433.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2949, allocations: 0 / 433.5 MB, free: 7.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.2949, allocations: 2.094 kB / 433.5 MB, free: 7.336 MB / 350.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.001105/0.296, allocations: 0.7761 MB / 434.3 MB, free: 6.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.296, allocations: 8.812 kB / 434.3 MB, free: 6.824 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.343e-05/0.2961, allocations: 71.66 kB / 434.4 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.8e-05/0.2962, allocations: 53.58 kB / 434.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000424/0.2966, allocations: 372.7 kB / 434.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.86e-05/0.2966, allocations: 29.66 kB / 434.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.025e-05/0.2967, allocations: 39.53 kB / 434.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007876/0.2975, allocations: 464.4 kB / 435.3 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.925e-05/0.2975, allocations: 5.109 kB / 435.3 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.428e-05/0.2975, allocations: 21.69 kB / 435.3 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.2975, allocations: 8.969 kB / 435.3 MB, free: 6.395 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009775/0.2985, allocations: 375.1 kB / 435.7 MB, free: 6.391 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.3003, allocations: 1.569 MB / 437.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007801/0.3011, allocations: 297.4 kB / 437.6 MB, free: 5.504 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004326/0.3015, allocations: 160 kB / 437.7 MB, free: 5.496 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.037e-05/0.3015, allocations: 7.859 kB / 437.7 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.765e-05/0.3016, allocations: 41.5 kB / 437.8 MB, free: 5.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.472e-06/0.3016, allocations: 0 / 437.8 MB, free: 5.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003085/0.3046, allocations: 1.386 MB / 439.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.3047, allocations: 112.3 kB / 439.3 MB, free: 4.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003367/0.305, allocations: 361.6 kB / 439.6 MB, free: 4.605 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.305, allocations: 30.7 kB / 439.6 MB, free: 4.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001131/0.3052, allocations: 250.2 kB / 439.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.452e-05/0.3052, allocations: 120.2 kB / 440 MB, free: 4.266 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001157/0.3053, allocations: 76.62 kB / 440.1 MB, free: 4.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.004e-05/0.3054, allocations: 348.1 kB / 440.4 MB, free: 3.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004599/0.3059, allocations: 178.7 kB / 440.6 MB, free: 3.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005236/0.3064, allocations: 253.7 kB / 440.8 MB, free: 3.691 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008828/0.3073, allocations: 386.5 kB / 441.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3073, allocations: 0 / 441.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00111/0.3084, allocations: 0.4934 MB / 441.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.3084, allocations: 7.859 kB / 441.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3084, allocations: 5.688 kB / 441.7 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.3084, allocations: 4.375 kB / 441.7 MB, free: 3.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009107/0.3093, allocations: 209.1 kB / 441.9 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/0.3107, allocations: 1.562 MB / 443.5 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003598/0.311, allocations: 39.73 kB / 443.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/0.3111, allocations: 16 kB / 443.5 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005645/0.3116, allocations: 278.4 kB / 443.8 MB, free: 1.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004339/0.3121, allocations: 239.5 kB / 444.1 MB, free: 1.562 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007605/0.3128, allocations: 368.2 kB / 444.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.553e-06/0.3128, allocations: 1.094 kB / 444.4 MB, free: 1.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009832/0.3138, allocations: 483.2 kB / 444.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.3138, allocations: 5.656 kB / 444.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.3138, allocations: 2.5 kB / 444.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.658e-06/0.3138, allocations: 3.562 kB / 444.9 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004967/0.3143, allocations: 123.4 kB / 445 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3143, allocations: 8.719 kB / 445 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000318/0.3147, allocations: 37.38 kB / 445.1 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.436e-05/0.3147, allocations: 15 kB / 445.1 MB, free: 1.184 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.0001055/0.3148, allocations: 202.9 kB / 445.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.604e-05/0.3149, allocations: 42.25 kB / 445.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.003e-05/0.3149, allocations: 51.14 kB / 445.4 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.788e-06/0.3149, allocations: 7.219 kB / 445.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.315, allocations: 1.25 kB / 445.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.315, allocations: 2.609 kB / 445.4 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001542/0.3165, allocations: 0.9093 MB / 446.3 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.3165, allocations: 1.875 kB / 446.3 MB, free: 412 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004179/0.3169, allocations: 87.17 kB / 446.4 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3169, allocations: 10.38 kB / 446.4 MB, free: 400 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.148e-05/0.3169, allocations: 7.062 kB / 446.4 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.3169, allocations: 3.844 kB / 446.4 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.317, allocations: 5.375 kB / 446.4 MB, free: 396 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001347/0.3183, allocations: 0.6644 MB / 447.1 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.3185, allocations: 141.7 kB / 447.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.929e-05/0.3185, allocations: 15.88 kB / 447.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003132/0.3188, allocations: 34.09 kB / 447.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.167e-05/0.3189, allocations: 23.92 kB / 447.3 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.997e-05/0.3189, allocations: 10.64 kB / 447.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002793/0.3192, allocations: 250.3 kB / 447.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3192, allocations: 0 / 447.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005479/0.3197, allocations: 137.2 kB / 447.7 MB, free: 15.75 MB / 366.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.001846/0.3216, allocations: 1.218 MB / 448.9 MB, free: 14.87 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001945/0.3235, allocations: 0.6562 MB / 449.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3235, allocations: 1.281 kB / 449.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004698/0.324, allocations: 176.8 kB / 449.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000625/0.3246, allocations: 103.2 kB / 449.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006442/0.3311, allocations: 4.029 MB / 453.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.3315, allocations: 0.8194 MB / 454.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002635/0.3318, allocations: 65.34 kB / 454.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.332, allocations: 138 kB / 454.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.332, allocations: 1.344 kB / 454.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03838/0.3704, allocations: 8.769 MB / 463.6 MB, free: 8.156 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.46, allocations: 5.484 kB / 463.6 MB, free: 8.152 MB / 366.1 MB " [Timeout remaining time 647] (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.496324796229601] 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.564386788755655 12.589172699 12.289543813 Calling exit ...