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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001479/0.001479, allocations: 114.9 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001625/0.001625, allocations: 205.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.43/1.43, allocations: 227.7 MB / 247.2 MB, free: 10.23 MB / 206.1 MB 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.001967/0.001967, allocations: 64.08 kB / 358.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.263/0.265, allocations: 50.55 MB / 409.1 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.005001/0.27, allocations: 3.247 MB / 412.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002484/0.2726, allocations: 1.243 MB / 413.6 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002984/0.2729, allocations: 11.94 kB / 413.6 MB, free: 13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000392/0.2733, allocations: 91.16 kB / 413.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005587/0.2739, allocations: 226.4 kB / 413.9 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006873/0.2746, allocations: 275.5 kB / 414.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009888/0.2756, allocations: 0.8466 MB / 415 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002693/0.2759, allocations: 133.1 kB / 415.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006063/0.2765, allocations: 386.8 kB / 415.5 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005615/0.2771, allocations: 406.5 kB / 415.9 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001136/0.2772, allocations: 64 kB / 416 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000298/0.2775, allocations: 120 kB / 416.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00024/0.2778, allocations: 183.4 kB / 416.3 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003623/0.2781, allocations: 322.5 kB / 416.6 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.2791, allocations: 0.7927 MB / 417.4 MB, free: 9.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2792, allocations: 0 / 417.4 MB, free: 9.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2792, allocations: 0 / 417.4 MB, free: 9.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.2792, allocations: 3.984 kB / 417.4 MB, free: 9.176 MB / 334.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.002018/0.2812, allocations: 0.9655 MB / 418.3 MB, free: 8.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.2813, allocations: 8.031 kB / 418.3 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001226/0.2814, allocations: 86.7 kB / 418.4 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003347/0.2817, allocations: 84.47 kB / 418.5 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007128/0.2825, allocations: 398.2 kB / 418.9 MB, free: 7.547 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.936e-05/0.2825, allocations: 37.38 kB / 418.9 MB, free: 7.512 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.2826, allocations: 52.33 kB / 419 MB, free: 7.461 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.2839, allocations: 0.615 MB / 419.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.2839, allocations: 4 kB / 419.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.729e-05/0.284, allocations: 16 kB / 419.6 MB, free: 6.812 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.284, allocations: 8 kB / 419.6 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.2853, allocations: 0.5972 MB / 420.2 MB, free: 6.207 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002545/0.2878, allocations: 1.348 MB / 421.6 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001152/0.289, allocations: 0.5012 MB / 422.1 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006283/0.2897, allocations: 318.4 kB / 422.4 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.405e-05/0.2897, allocations: 16.47 kB / 422.4 MB, free: 3.965 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.2898, allocations: 39.12 kB / 422.4 MB, free: 3.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=67): time 2.194e-06/0.2898, allocations: 0 / 422.4 MB, free: 3.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.007115/0.2969, allocations: 2.91 MB / 425.3 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.297, allocations: 56.06 kB / 425.4 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004634/0.2975, allocations: 365.6 kB / 425.8 MB, free: 452 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.15e-05/0.2976, allocations: 49.7 kB / 425.8 MB, free: 396 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.2977, allocations: 205.6 kB / 426 MB, free: 184 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000258/0.298, allocations: 258 kB / 426.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002401/0.2982, allocations: 134.5 kB / 426.4 MB, free: 15.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002085/0.2985, allocations: 366.7 kB / 426.8 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006466/0.2991, allocations: 309.9 kB / 427.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006919/0.2998, allocations: 365.4 kB / 427.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.3009, allocations: 0.489 MB / 427.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3009, allocations: 0 / 427.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002132/0.303, allocations: 0.947 MB / 428.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.3031, allocations: 4 kB / 428.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.3031, allocations: 0 / 428.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.3045, allocations: 0.5785 MB / 429.4 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003741/0.3049, allocations: 99.83 kB / 429.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001684/0.3066, allocations: 1.1 MB / 430.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007528/0.3073, allocations: 119.8 kB / 430.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.792e-05/0.3074, allocations: 24 kB / 430.8 MB, free: 11.34 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.0003056/0.3077, allocations: 184 kB / 430.9 MB, free: 11.15 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.3079, allocations: 55.67 kB / 431 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001754/0.3081, allocations: 81.09 kB / 431.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.036e-05/0.3081, allocations: 11.98 kB / 431.1 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/0.3081, allocations: 0 / 431.1 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.3081, allocations: 0 / 431.1 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003075/0.3112, allocations: 1.63 MB / 432.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.3112, allocations: 0 / 432.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004305/0.3117, allocations: 91.88 kB / 432.8 MB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001248/0.3129, allocations: 0.5318 MB / 433.3 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.37e-05/0.313, allocations: 27.95 kB / 433.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001585/0.3146, allocations: 1.077 MB / 434.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.3146, allocations: 4.031 kB / 434.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002629/0.3173, allocations: 1.316 MB / 435.8 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003207/0.3176, allocations: 208.6 kB / 436 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.3177, allocations: 24 kB / 436 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000657/0.3184, allocations: 103.9 kB / 436.1 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003257/0.3187, allocations: 128.4 kB / 436.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.284e-05/0.3188, allocations: 31.91 kB / 436.3 MB, free: 5.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003208/0.3191, allocations: 255.2 kB / 436.5 MB, free: 5.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3191, allocations: 4 kB / 436.5 MB, free: 5.457 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005496/0.3197, allocations: 160 kB / 436.7 MB, free: 5.301 MB / 350.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.004235/0.3239, allocations: 2.138 MB / 438.8 MB, free: 3.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001775/0.3257, allocations: 0.7778 MB / 439.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.768e-06/0.3258, allocations: 0 / 439.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009565/0.3267, allocations: 444.5 kB / 440 MB, free: 2.062 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007805/0.3275, allocations: 124.2 kB / 440.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009859/0.3374, allocations: 5.589 MB / 445.7 MB, free: 12.26 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005426/0.338, allocations: 0.8597 MB / 446.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002424/0.3382, allocations: 48.41 kB / 446.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003041/0.3385, allocations: 175.4 kB / 446.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3385, allocations: 0 / 446.8 MB, free: 11.15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05308/0.3916, allocations: 18.52 MB / 465.3 MB, free: 8.891 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.11, allocations: 11.14 kB / 465.3 MB, free: 8.883 MB / 382.1 MB (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)