Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.001837/0.001837, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.002347/0.002347, allocations: 213.2 kB / 24.54 MB, free: 4.02 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 1.408/1.408, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CoupledClutches",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.001953/0.001953, allocations: 64.77 kB / 378.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2373, allocations: 53.37 MB / 431.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004939/0.2422, allocations: 3.272 MB / 435.2 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002564/0.2448, allocations: 1.263 MB / 436.4 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003244/0.2451, allocations: 15.88 kB / 436.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000418/0.2455, allocations: 103.1 kB / 436.6 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005635/0.2461, allocations: 226.4 kB / 436.8 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006331/0.2467, allocations: 267.5 kB / 437 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001037/0.2478, allocations: 0.8543 MB / 437.9 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002496/0.248, allocations: 97.58 kB / 438 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006718/0.2487, allocations: 394.8 kB / 438.4 MB, free: 364 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000604/0.2493, allocations: 418.5 kB / 438.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001238/0.2494, allocations: 64 kB / 438.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002768/0.2497, allocations: 116 kB / 439 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002218/0.2499, allocations: 179.5 kB / 439.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003899/0.2503, allocations: 322.5 kB / 439.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001047/0.2513, allocations: 0.8024 MB / 440.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2513, allocations: 4 kB / 440.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.2513, allocations: 0 / 440.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.745e-05/0.2514, allocations: 0 / 440.3 MB, free: 14.47 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001854/0.2532, allocations: 0.8941 MB / 441.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.2533, allocations: 12.03 kB / 441.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001148/0.2534, allocations: 82.7 kB / 441.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003143/0.2537, allocations: 84.53 kB / 441.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006683/0.2544, allocations: 332.4 kB / 441.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.357e-05/0.2544, allocations: 41.38 kB / 441.7 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.2545, allocations: 52.31 kB / 441.7 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.2557, allocations: 0.6111 MB / 442.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.536e-05/0.2557, allocations: 4 kB / 442.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.752e-05/0.2558, allocations: 20 kB / 442.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.2558, allocations: 8 kB / 442.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001243/0.2571, allocations: 0.5933 MB / 443 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002368/0.2594, allocations: 1.313 MB / 444.3 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001111/0.2605, allocations: 488.9 kB / 444.8 MB, free: 9.824 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000603/0.2611, allocations: 290.7 kB / 445.1 MB, free: 9.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.949e-05/0.2612, allocations: 16.64 kB / 445.1 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.2612, allocations: 39.16 kB / 445.1 MB, free: 9.473 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.365e-06/0.2612, allocations: 7.938 kB / 445.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006658/0.2679, allocations: 2.516 MB / 447.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.513e-05/0.268, allocations: 60.06 kB / 447.7 MB, free: 6.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004795/0.2684, allocations: 357.6 kB / 448 MB, free: 6.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.539e-05/0.2685, allocations: 53.69 kB / 448.1 MB, free: 6.422 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.2687, allocations: 201.6 kB / 448.3 MB, free: 6.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002454/0.2689, allocations: 261.9 kB / 448.5 MB, free: 5.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000234/0.2692, allocations: 134.6 kB / 448.7 MB, free: 5.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.2694, allocations: 366.7 kB / 449 MB, free: 5.453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006416/0.27, allocations: 309.8 kB / 449.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006769/0.2707, allocations: 369.4 kB / 449.7 MB, free: 4.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.2717, allocations: 493.1 kB / 450.2 MB, free: 4.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2717, allocations: 0 / 450.2 MB, free: 4.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002048/0.2737, allocations: 0.9391 MB / 451.1 MB, free: 3.348 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.2738, allocations: 4 kB / 451.1 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.2738, allocations: 0 / 451.1 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.2751, allocations: 0.5785 MB / 451.7 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000383/0.2755, allocations: 95.83 kB / 451.8 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00169/0.2772, allocations: 1.105 MB / 452.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006836/0.2779, allocations: 111.8 kB / 453 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.504e-05/0.2779, allocations: 20 kB / 453 MB, free: 1.406 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0003199/0.2783, allocations: 203.6 kB / 453.2 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.2784, allocations: 55.62 kB / 453.3 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001809/0.2786, allocations: 77.09 kB / 453.4 MB, free: 1.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.2786, allocations: 8.094 kB / 453.4 MB, free: 1.059 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.367e-06/0.2786, allocations: 3.984 kB / 453.4 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.2786, allocations: 3.984 kB / 453.4 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002967/0.2816, allocations: 1.571 MB / 454.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.2816, allocations: 0 / 454.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004091/0.282, allocations: 83.89 kB / 455 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001245/0.2832, allocations: 0.5395 MB / 455.6 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.422e-05/0.2833, allocations: 27.97 kB / 455.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001574/0.2849, allocations: 1.077 MB / 456.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.2849, allocations: 7.938 kB / 456.7 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002576/0.2874, allocations: 1.3 MB / 458 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003063/0.2878, allocations: 127.5 kB / 458.1 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001209/0.2879, allocations: 24 kB / 458.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005942/0.2885, allocations: 103.9 kB / 458.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002859/0.2888, allocations: 132.4 kB / 458.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.328e-05/0.2888, allocations: 35.89 kB / 458.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000291/0.2891, allocations: 255.2 kB / 458.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2891, allocations: 0 / 458.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005288/0.2896, allocations: 163.9 kB / 458.8 MB, free: 11.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004091/0.2937, allocations: 2.124 MB / 460.9 MB, free: 9.496 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001676/0.2954, allocations: 0.7192 MB / 461.6 MB, free: 8.781 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2954, allocations: 0 / 461.6 MB, free: 8.781 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008994/0.2963, allocations: 424.6 kB / 462.1 MB, free: 8.367 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007/0.297, allocations: 113.2 kB / 462.2 MB, free: 8.262 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009665/0.3067, allocations: 5.56 MB / 467.7 MB, free: 2.602 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005098/0.3072, allocations: 0.8635 MB / 468.6 MB, free: 1.711 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002254/0.3074, allocations: 52.39 kB / 468.6 MB, free: 1.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002921/0.3077, allocations: 175.4 kB / 468.8 MB, free: 1.488 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3077, allocations: 0 / 468.8 MB, free: 1.488 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05414/0.3618, allocations: 19.37 MB / 488.2 MB, free: 14.26 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.37, allocations: 7.922 kB / 488.2 MB, free: 14.25 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.851072197314352] Failed to read output from testmodel.py, exit status != 0: ['time', 'J1.phi', 'J1.w', 'clutch1.phi_rel', 'clutch1.w_rel', 'clutch2.phi_rel', 'clutch2.w_rel', 'clutch3.phi_rel', 'clutch3.w_rel', 'clutch1.mode', 'clutch1.startBackward', 'clutch1.startForward', 'clutch2.mode', 'clutch2.startBackward', 'clutch2.startForward', 'clutch3.mode', 'clutch3.startBackward', 'clutch3.startForward'] 13.548658356070518 13.574910253 13.318716909 Calling exit ...