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.001255/0.001255, allocations: 109.4 kB / 19.8 MB, free: 2.5 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.001462/0.001462, allocations: 214.4 kB / 23 MB, free: 5.582 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.403/1.403, allocations: 230.5 MB / 256.5 MB, free: 8.238 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.001879/0.001879, allocations: 71.88 kB / 376.2 MB, free: 4.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2478, allocations: 53.32 MB / 429.5 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004801/0.2526, allocations: 3.272 MB / 432.8 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002224/0.2548, allocations: 1.259 MB / 434.1 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001886/0.255, allocations: 8 kB / 434.1 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003289/0.2553, allocations: 103.1 kB / 434.2 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004671/0.2558, allocations: 230.4 kB / 434.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005353/0.2563, allocations: 267.5 kB / 434.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000907/0.2572, allocations: 0.8466 MB / 435.5 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002295/0.2575, allocations: 97.16 kB / 435.6 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005563/0.258, allocations: 390.8 kB / 436 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005368/0.2586, allocations: 410.6 kB / 436.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001057/0.2587, allocations: 64 kB / 436.4 MB, free: 480 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002484/0.2589, allocations: 123.9 kB / 436.6 MB, free: 356 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.2591, allocations: 179.4 kB / 436.7 MB, free: 176 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003243/0.2594, allocations: 322.5 kB / 437 MB, free: 15.86 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009119/0.2604, allocations: 0.798 MB / 437.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2604, allocations: 0 / 437.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.2604, allocations: 0 / 437.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.2604, allocations: 0 / 437.8 MB, free: 15.06 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.001883/0.2623, allocations: 0.9694 MB / 438.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.2623, allocations: 11.97 kB / 438.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001108/0.2624, allocations: 86.72 kB / 438.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003199/0.2627, allocations: 84.53 kB / 439 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006217/0.2633, allocations: 390.3 kB / 439.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.258e-05/0.2634, allocations: 37.38 kB / 439.4 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.604e-05/0.2635, allocations: 48.33 kB / 439.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.2646, allocations: 0.6228 MB / 440.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.2647, allocations: 4 kB / 440.1 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.918e-05/0.2647, allocations: 23.98 kB / 440.1 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.2647, allocations: 15.94 kB / 440.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.266, allocations: 0.5816 MB / 440.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002447/0.2685, allocations: 1.359 MB / 442.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/0.2696, allocations: 481.3 kB / 442.5 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006099/0.2702, allocations: 290.4 kB / 442.8 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.653e-05/0.2703, allocations: 4.562 kB / 442.8 MB, free: 9.902 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.2703, allocations: 47.12 kB / 442.9 MB, free: 9.844 MB / 350.1 MB Notification: Performance of pre-optimization done (n=67): time 2.164e-06/0.2703, allocations: 3.938 kB / 442.9 MB, free: 9.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.006976/0.2773, allocations: 2.886 MB / 445.8 MB, free: 6.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.344e-05/0.2773, allocations: 64.06 kB / 445.8 MB, free: 6.746 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004467/0.2778, allocations: 365.6 kB / 446.2 MB, free: 6.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.777e-05/0.2779, allocations: 53.69 kB / 446.2 MB, free: 6.324 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.278, allocations: 197.6 kB / 446.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002422/0.2783, allocations: 261.9 kB / 446.7 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002374/0.2785, allocations: 134.6 kB / 446.8 MB, free: 5.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002062/0.2787, allocations: 358.8 kB / 447.2 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006539/0.2794, allocations: 313.8 kB / 447.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007034/0.2801, allocations: 373.3 kB / 447.8 MB, free: 4.691 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/0.2811, allocations: 496.7 kB / 448.3 MB, free: 4.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.2811, allocations: 4 kB / 448.3 MB, free: 4.195 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002038/0.2831, allocations: 0.9235 MB / 449.2 MB, free: 3.258 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.2832, allocations: 8 kB / 449.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.2832, allocations: 0 / 449.3 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001394/0.2846, allocations: 0.5785 MB / 449.8 MB, free: 2.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000374/0.2849, allocations: 99.81 kB / 449.9 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.2866, allocations: 1.092 MB / 451 MB, free: 1.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007221/0.2873, allocations: 111.9 kB / 451.1 MB, free: 1.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.367e-05/0.2874, allocations: 27.98 kB / 451.2 MB, free: 1.312 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.0003096/0.2877, allocations: 196 kB / 451.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.2878, allocations: 51.67 kB / 451.4 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001896/0.288, allocations: 81.09 kB / 451.5 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-06/0.288, allocations: 4 kB / 451.5 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.288, allocations: 8 kB / 451.5 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.288, allocations: 3.984 kB / 451.5 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002974/0.291, allocations: 1.603 MB / 453.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.291, allocations: 4 kB / 453.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004156/0.2914, allocations: 87.89 kB / 453.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001243/0.2926, allocations: 0.5395 MB / 453.7 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.909e-05/0.2927, allocations: 27.97 kB / 453.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001556/0.2943, allocations: 1.077 MB / 454.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2943, allocations: 3.938 kB / 454.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00264/0.2969, allocations: 1.297 MB / 456.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002925/0.2972, allocations: 204.6 kB / 456.3 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001189/0.2973, allocations: 24 kB / 456.4 MB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006414/0.298, allocations: 107.9 kB / 456.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002971/0.2983, allocations: 128.4 kB / 456.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.256e-05/0.2983, allocations: 31.89 kB / 456.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003057/0.2986, allocations: 259.2 kB / 456.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2986, allocations: 0 / 456.9 MB, free: 11.46 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005499/0.2992, allocations: 164 kB / 457 MB, free: 11.3 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.004299/0.3035, allocations: 2.126 MB / 459.2 MB, free: 9.289 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001753/0.3052, allocations: 0.7191 MB / 459.9 MB, free: 8.574 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3052, allocations: 0 / 459.9 MB, free: 8.574 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009198/0.3062, allocations: 428.6 kB / 460.3 MB, free: 8.156 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007674/0.3069, allocations: 105.6 kB / 460.4 MB, free: 8.051 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00964/0.3166, allocations: 5.562 MB / 466 MB, free: 2.391 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005154/0.3171, allocations: 0.8636 MB / 466.8 MB, free: 1.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002139/0.3173, allocations: 52.39 kB / 466.9 MB, free: 1.449 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002811/0.3176, allocations: 171.4 kB / 467 MB, free: 1.281 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3176, allocations: 0 / 467 MB, free: 1.281 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05122/0.3688, allocations: 18.96 MB / 486 MB, free: 14.47 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/12.83, allocations: 3.375 kB / 486 MB, free: 14.47 MB / 398.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 --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.156420732993865] 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'] 12.99395094398642 13.019643376 12.754035311 Calling exit ...