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.001669/0.001669, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.002029/0.002029, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.436/1.436, allocations: 230.5 MB / 254.7 MB, free: 15.21 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.002001/0.002001, allocations: 79.81 kB / 373.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.109, allocations: 53.31 MB / 426.9 MB, free: 4.906 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005659/0.1147, allocations: 3.264 MB / 430.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002845/0.1175, allocations: 1.251 MB / 431.4 MB, free: 376 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004964/0.118, allocations: 11.94 kB / 431.4 MB, free: 364 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004645/0.1185, allocations: 95.14 kB / 431.5 MB, free: 268 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007604/0.1193, allocations: 226.4 kB / 431.7 MB, free: 40 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2068/0.326, allocations: 268.2 kB / 432 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.3271, allocations: 0.8472 MB / 432.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/0.3273, allocations: 93 kB / 432.9 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000518/0.3278, allocations: 389.1 kB / 433.3 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004058/0.3282, allocations: 416.8 kB / 433.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.758e-05/0.3283, allocations: 63.94 kB / 433.8 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002624/0.3286, allocations: 122 kB / 433.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001762/0.3288, allocations: 179.8 kB / 434.1 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002387/0.329, allocations: 323.8 kB / 434.4 MB, free: 7.445 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009961/0.33, allocations: 0.8004 MB / 435.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.33, allocations: 0 / 435.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.33, allocations: 0 / 435.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.568e-05/0.33, allocations: 3.125 kB / 435.2 MB, free: 7.332 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.001896/0.3319, allocations: 0.9625 MB / 436.1 MB, free: 6.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/0.332, allocations: 13.09 kB / 436.2 MB, free: 6.754 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001055/0.3321, allocations: 84.2 kB / 436.2 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003312/0.3324, allocations: 83.52 kB / 436.3 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006171/0.333, allocations: 400.2 kB / 436.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.547e-05/0.3331, allocations: 37.14 kB / 436.7 MB, free: 6.426 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.3332, allocations: 48.45 kB / 436.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.3343, allocations: 0.6178 MB / 437.4 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.436e-05/0.3343, allocations: 5.688 kB / 437.4 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-05/0.3344, allocations: 18.92 kB / 437.4 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.3344, allocations: 11.75 kB / 437.4 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.3357, allocations: 0.5842 MB / 438 MB, free: 6.223 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002347/0.338, allocations: 1.354 MB / 439.4 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/0.3391, allocations: 491.1 kB / 439.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005593/0.3396, allocations: 289.2 kB / 440.1 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.551e-05/0.3397, allocations: 8.688 kB / 440.2 MB, free: 5.199 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.246e-05/0.3397, allocations: 41.17 kB / 440.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.345e-06/0.3397, allocations: 0 / 440.2 MB, free: 5.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006515/0.3462, allocations: 2.89 MB / 443.1 MB, free: 3.605 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.3462, allocations: 59.62 kB / 443.1 MB, free: 3.543 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004238/0.3467, allocations: 364.2 kB / 443.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.418e-05/0.3467, allocations: 51.34 kB / 443.6 MB, free: 3.316 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.3469, allocations: 201.5 kB / 443.7 MB, free: 3.148 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001829/0.3471, allocations: 269.2 kB / 444 MB, free: 2.949 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002274/0.3473, allocations: 135.4 kB / 444.1 MB, free: 2.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.854e-05/0.3474, allocations: 359.2 kB / 444.5 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006077/0.348, allocations: 307.4 kB / 444.8 MB, free: 2.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006431/0.3486, allocations: 370.4 kB / 445.2 MB, free: 2.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000896/0.3495, allocations: 499.6 kB / 445.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3495, allocations: 1.281 kB / 445.6 MB, free: 2.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001843/0.3514, allocations: 0.9341 MB / 446.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.3514, allocations: 5.25 kB / 446.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3514, allocations: 1.125 kB / 446.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00127/0.3527, allocations: 0.5774 MB / 447.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000374/0.353, allocations: 94.64 kB / 447.3 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/0.3544, allocations: 1.091 MB / 448.3 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007301/0.3552, allocations: 113.6 kB / 448.5 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.251e-05/0.3552, allocations: 30.69 kB / 448.5 MB, free: 0.668 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.0003077/0.3555, allocations: 192.4 kB / 448.7 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.3557, allocations: 55.17 kB / 448.7 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001552/0.3558, allocations: 80.31 kB / 448.8 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.836e-06/0.3558, allocations: 9.078 kB / 448.8 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.3558, allocations: 0.9375 kB / 448.8 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.3558, allocations: 3.938 kB / 448.8 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003022/0.3589, allocations: 1.606 MB / 450.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3589, allocations: 4.75 kB / 450.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004169/0.3593, allocations: 88.16 kB / 450.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001189/0.3605, allocations: 0.5356 MB / 451.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.211e-05/0.3605, allocations: 33.14 kB / 451.1 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001586/0.3621, allocations: 1.079 MB / 452.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3621, allocations: 0 / 452.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002741/0.3649, allocations: 1.302 MB / 453.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004116/0.3653, allocations: 199.7 kB / 453.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001355/0.3654, allocations: 26.25 kB / 453.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006553/0.3661, allocations: 101.6 kB / 453.8 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003004/0.3664, allocations: 130.2 kB / 453.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.416e-05/0.3664, allocations: 31.39 kB / 453.9 MB, free: 13.87 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000329/0.3668, allocations: 258.5 kB / 454.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3668, allocations: 0 / 454.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006339/0.3674, allocations: 157 kB / 454.3 MB, free: 13.72 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.004173/0.3716, allocations: 2.132 MB / 456.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001683/0.3733, allocations: 0.7211 MB / 457.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3733, allocations: 0 / 457.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009064/0.3742, allocations: 421.7 kB / 457.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007995/0.375, allocations: 122.3 kB / 457.7 MB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009913/0.3849, allocations: 5.573 MB / 463.3 MB, free: 8.633 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005321/0.3854, allocations: 0.856 MB / 464.2 MB, free: 7.867 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002692/0.3857, allocations: 54.38 kB / 464.2 MB, free: 7.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000293/0.386, allocations: 172.1 kB / 464.4 MB, free: 7.699 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.386, allocations: 0 / 464.4 MB, free: 7.699 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05305/0.439, allocations: 18.64 MB / 483 MB, free: 7.715 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/12.99, allocations: 9.984 kB / 483 MB, free: 7.711 MB / 382.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.422234699130058] 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.139360930304974 13.153005185 12.820072322 Calling exit ...