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.002162/0.002162, allocations: 121.2 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.002402/0.002402, 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 1.469/1.469, 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.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.001941/0.001941, allocations: 71.83 kB / 373.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1131, allocations: 53.33 MB / 427 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.006801/0.1199, allocations: 3.25 MB / 430.3 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003412/0.1234, allocations: 1.263 MB / 431.5 MB, free: 288 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002941/0.1237, allocations: 7.938 kB / 431.5 MB, free: 280 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004641/0.1241, allocations: 107.1 kB / 431.6 MB, free: 172 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2081/0.3323, allocations: 218.3 kB / 431.8 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00084/0.3331, allocations: 266.5 kB / 432.1 MB, free: 7.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00107/0.3342, allocations: 0.849 MB / 433 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.3344, allocations: 93.92 kB / 433 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004824/0.3349, allocations: 397.1 kB / 433.4 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004018/0.3353, allocations: 414.8 kB / 433.8 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.3354, allocations: 63.66 kB / 433.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002942/0.3357, allocations: 119.7 kB / 434 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.3359, allocations: 179.4 kB / 434.2 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000271/0.3361, allocations: 324.9 kB / 434.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00103/0.3372, allocations: 0.7979 MB / 435.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.3372, allocations: 4.219 kB / 435.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3372, allocations: 0 / 435.3 MB, free: 7.199 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.3372, allocations: 2.125 kB / 435.3 MB, free: 7.199 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.001909/0.3391, allocations: 0.9606 MB / 436.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.3391, allocations: 14.3 kB / 436.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001133/0.3392, allocations: 85.12 kB / 436.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003493/0.3396, allocations: 81.33 kB / 436.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000615/0.3402, allocations: 397 kB / 436.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.52e-05/0.3403, allocations: 41.19 kB / 436.9 MB, free: 6.297 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.3404, allocations: 48.78 kB / 436.9 MB, free: 6.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.3417, allocations: 0.6159 MB / 437.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.3417, allocations: 6.375 kB / 437.5 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.29e-05/0.3417, allocations: 19.03 kB / 437.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.3418, allocations: 12.27 kB / 437.6 MB, free: 6.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.3432, allocations: 0.5859 MB / 438.2 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002835/0.346, allocations: 1.346 MB / 439.5 MB, free: 5.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.3471, allocations: 489.4 kB / 440 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005959/0.3477, allocations: 295 kB / 440.3 MB, free: 5.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.442e-05/0.3478, allocations: 13.31 kB / 440.3 MB, free: 5.117 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.3478, allocations: 38.69 kB / 440.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 1.893e-06/0.3478, allocations: 0 / 440.3 MB, free: 5.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.007009/0.3548, allocations: 2.89 MB / 443.2 MB, free: 3.531 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.3549, allocations: 65.33 kB / 443.3 MB, free: 3.465 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004736/0.3554, allocations: 362.9 kB / 443.6 MB, free: 3.285 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.409e-05/0.3554, allocations: 52.86 kB / 443.7 MB, free: 3.238 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.3556, allocations: 199.1 kB / 443.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/0.3558, allocations: 265.5 kB / 444.1 MB, free: 2.875 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002516/0.356, allocations: 130.7 kB / 444.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.3561, allocations: 358 kB / 444.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006397/0.3568, allocations: 315.1 kB / 444.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006981/0.3575, allocations: 368.5 kB / 445.3 MB, free: 2.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.3585, allocations: 499.5 kB / 445.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3585, allocations: 1.5 kB / 445.8 MB, free: 1.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001982/0.3605, allocations: 0.9246 MB / 446.7 MB, free: 1.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.3605, allocations: 10.78 kB / 446.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.3605, allocations: 3 kB / 446.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/0.3618, allocations: 0.5748 MB / 447.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003802/0.3622, allocations: 99.42 kB / 447.4 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001412/0.3636, allocations: 1.098 MB / 448.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007823/0.3644, allocations: 110.2 kB / 448.6 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.843e-05/0.3645, allocations: 26.61 kB / 448.6 MB, free: 0.5977 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.0002786/0.3648, allocations: 187.9 kB / 448.8 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/0.3649, allocations: 56.2 kB / 448.9 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001745/0.3651, allocations: 79.64 kB / 448.9 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-06/0.3651, allocations: 7.359 kB / 448.9 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.3651, allocations: 1.344 kB / 448.9 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3651, allocations: 7.125 kB / 448.9 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00315/0.3682, allocations: 1.613 MB / 450.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3682, allocations: 1.219 kB / 450.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004376/0.3687, allocations: 85.25 kB / 450.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001387/0.3701, allocations: 0.5434 MB / 451.2 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.607e-05/0.3702, allocations: 26.98 kB / 451.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00163/0.3718, allocations: 1.072 MB / 452.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3718, allocations: 4.844 kB / 452.3 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00281/0.3746, allocations: 1.306 MB / 453.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003732/0.375, allocations: 203.8 kB / 453.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001271/0.3751, allocations: 26.8 kB / 453.8 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006933/0.3758, allocations: 97.45 kB / 453.9 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003203/0.3761, allocations: 133.8 kB / 454 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.761e-05/0.3762, allocations: 32.88 kB / 454.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003438/0.3765, allocations: 258.9 kB / 454.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3765, allocations: 1.219 kB / 454.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006742/0.3772, allocations: 155.4 kB / 454.5 MB, free: 13.67 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.004505/0.3817, allocations: 2.136 MB / 456.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002052/0.3838, allocations: 0.7201 MB / 457.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3838, allocations: 0 / 457.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009899/0.3847, allocations: 415.5 kB / 457.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008961/0.3856, allocations: 113.7 kB / 457.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0111/0.3967, allocations: 5.565 MB / 463.4 MB, free: 8.559 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006554/0.3974, allocations: 0.8649 MB / 464.3 MB, free: 7.785 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002969/0.3977, allocations: 49.62 kB / 464.3 MB, free: 7.762 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003074/0.398, allocations: 168.7 kB / 464.5 MB, free: 7.625 MB / 366.1 MB Notification: Performance of SimCode: time 1.173e-06/0.398, allocations: 0 / 464.5 MB, free: 7.625 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05231/0.4503, allocations: 18.65 MB / 483.1 MB, free: 7.641 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.46, allocations: 0 / 483.1 MB, free: 7.641 MB / 382.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: 16.059464156161994] 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.614230336155742 13.636681047 13.294961983 Calling exit ...