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.001717/0.001717, allocations: 105.1 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.002018/0.002018, allocations: 213.9 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.206/2.206, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.001939/0.001939, allocations: 72.77 kB / 378.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2212/0.2232, allocations: 53.37 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004484/0.2276, allocations: 3.157 MB / 435.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001872/0.2295, allocations: 1.013 MB / 436.1 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/0.2297, allocations: 23.81 kB / 436.1 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003313/0.23, allocations: 87.17 kB / 436.2 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002315/0.2303, allocations: 103.1 kB / 436.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005771/0.2308, allocations: 246.1 kB / 436.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005785/0.2314, allocations: 0.5107 MB / 437 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002473/0.2317, allocations: 125.7 kB / 437.2 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002538/0.2319, allocations: 211.1 kB / 437.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002729/0.2322, allocations: 203 kB / 437.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.376e-05/0.2323, allocations: 40 kB / 437.6 MB, free: 1.168 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.236e-05/0.2323, allocations: 47.94 kB / 437.6 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.2325, allocations: 119.5 kB / 437.8 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.2326, allocations: 206.8 kB / 438 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005402/0.2332, allocations: 0.4922 MB / 438.5 MB, free: 316 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2332, allocations: 0 / 438.5 MB, free: 316 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2332, allocations: 0 / 438.5 MB, free: 316 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.308e-05/0.2332, allocations: 0 / 438.5 MB, free: 316 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.001237/0.2344, allocations: 0.7038 MB / 439.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.2345, allocations: 8.031 kB / 439.2 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.071e-05/0.2346, allocations: 74.7 kB / 439.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.539e-05/0.2346, allocations: 60.61 kB / 439.3 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005018/0.2351, allocations: 298.1 kB / 439.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/0.2352, allocations: 29.38 kB / 439.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.556e-05/0.2352, allocations: 36.38 kB / 439.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008698/0.2361, allocations: 463.3 kB / 440.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.19e-05/0.2361, allocations: 3.953 kB / 440.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.887e-05/0.2362, allocations: 23.92 kB / 440.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.63e-05/0.2362, allocations: 12 kB / 440.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009605/0.2371, allocations: 375.6 kB / 440.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002107/0.2393, allocations: 1.492 MB / 442 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008078/0.2401, allocations: 306 kB / 442.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004136/0.2405, allocations: 160.7 kB / 442.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.243e-05/0.2405, allocations: 4 kB / 442.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.2405, allocations: 34.56 kB / 442.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.663e-06/0.2405, allocations: 0 / 442.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.003068/0.2436, allocations: 1.243 MB / 443.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.693e-05/0.2437, allocations: 106.8 kB / 443.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004397/0.2441, allocations: 353.6 kB / 444.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.2442, allocations: 29.7 kB / 444.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001827/0.2443, allocations: 252.3 kB / 444.5 MB, free: 9.996 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001031/0.2444, allocations: 127.1 kB / 444.6 MB, free: 9.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001311/0.2446, allocations: 78.12 kB / 444.7 MB, free: 9.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000165/0.2447, allocations: 350.7 kB / 445 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004441/0.2452, allocations: 170.5 kB / 445.2 MB, free: 9.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005057/0.2457, allocations: 257.7 kB / 445.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008528/0.2465, allocations: 391.4 kB / 445.8 MB, free: 8.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2465, allocations: 3.938 kB / 445.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001066/0.2476, allocations: 0.4895 MB / 446.3 MB, free: 8.074 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.969e-05/0.2476, allocations: 4 kB / 446.3 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2476, allocations: 8.219 kB / 446.3 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.2477, allocations: 4 kB / 446.3 MB, free: 8.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008548/0.2485, allocations: 211.7 kB / 446.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001695/0.2502, allocations: 1.469 MB / 448 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003509/0.2506, allocations: 39.95 kB / 448 MB, free: 6.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.84e-05/0.2506, allocations: 16 kB / 448.1 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000539/0.2511, allocations: 269 kB / 448.3 MB, free: 5.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004493/0.2516, allocations: 245.6 kB / 448.6 MB, free: 5.676 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007764/0.2523, allocations: 375.5 kB / 448.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.737e-06/0.2523, allocations: 3.984 kB / 448.9 MB, free: 5.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009877/0.2533, allocations: 473.2 kB / 449.4 MB, free: 4.809 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.2533, allocations: 4 kB / 449.4 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2534, allocations: 4 kB / 449.4 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.255e-06/0.2534, allocations: 7.984 kB / 449.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004882/0.2538, allocations: 127.9 kB / 449.5 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.2539, allocations: 4 kB / 449.5 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003053/0.2542, allocations: 35.97 kB / 449.6 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.937e-05/0.2542, allocations: 19.98 kB / 449.6 MB, free: 4.609 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.0001599/0.2543, allocations: 196.1 kB / 449.8 MB, free: 4.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.599e-05/0.2544, allocations: 51.66 kB / 449.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001037/0.2545, allocations: 52.19 kB / 449.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.2545, allocations: 0 / 449.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.2545, allocations: 4 kB / 449.9 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.2545, allocations: 3.984 kB / 449.9 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/0.2562, allocations: 0.8872 MB / 450.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.2562, allocations: 0 / 450.8 MB, free: 3.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004117/0.2566, allocations: 83.88 kB / 450.9 MB, free: 3.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.2566, allocations: 4.125 kB / 450.9 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.705e-05/0.2567, allocations: 12 kB / 450.9 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.763e-06/0.2567, allocations: 8 kB / 450.9 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.2567, allocations: 0 / 450.9 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.2581, allocations: 0.6749 MB / 451.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001353/0.2582, allocations: 63.73 kB / 451.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.959e-05/0.2582, allocations: 12 kB / 451.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002898/0.2585, allocations: 31.95 kB / 451.7 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.879e-05/0.2586, allocations: 23.95 kB / 451.7 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.2586, allocations: 8 kB / 451.7 MB, free: 2.402 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002734/0.2589, allocations: 255 kB / 451.9 MB, free: 2.156 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2589, allocations: 4 kB / 451.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005468/0.2594, allocations: 136 kB / 452.1 MB, free: 2.02 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.001674/0.2611, allocations: 1.208 MB / 453.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001776/0.2629, allocations: 0.6609 MB / 453.9 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2629, allocations: 0 / 453.9 MB, free: 112 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004467/0.2633, allocations: 171.8 kB / 454.1 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006177/0.264, allocations: 98.23 kB / 454.2 MB, free: 15.85 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006104/0.2701, allocations: 4.009 MB / 458.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004379/0.2705, allocations: 0.8195 MB / 459 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002649/0.2708, allocations: 75.2 kB / 459.1 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000235/0.271, allocations: 135.4 kB / 459.2 MB, free: 10.64 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.271, allocations: 4 kB / 459.2 MB, free: 10.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03643/0.3074, allocations: 9.011 MB / 468.3 MB, free: 1.773 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/13.85, allocations: 5.25 kB / 468.3 MB, free: 1.773 MB / 366.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.PID_Controller_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Blocks_Examples_PID_Controller_fmu --startTime=0 --stopTime=4 --stepSize=0.000798085 --timeout=50 --tolerance=1e-06 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: 16.98712881002575] 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'] 13.957500556949526 13.991996069 13.75296602 Calling exit ...