Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 101.4 kB / 16.94 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 174.2 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004807/0.0004808, allocations: 16 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1105, allocations: 47.57 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003252/0.1138, allocations: 2.487 MB / 330.9 MB, free: 1.504 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.116, allocations: 1.069 MB / 332 MB, free: 436 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003351/0.1163, allocations: 7.938 kB / 332 MB, free: 428 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002144/0.1165, allocations: 55.61 kB / 332 MB, free: 372 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006231/0.1172, allocations: 171.5 kB / 332.2 MB, free: 200 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008885/0.1181, allocations: 207.6 kB / 332.4 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009109/0.119, allocations: 492.7 kB / 332.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000255/0.1193, allocations: 115.1 kB / 333 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000616/0.1199, allocations: 306.9 kB / 333.3 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005605/0.1205, allocations: 338.9 kB / 333.6 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.1206, allocations: 28 kB / 333.7 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002308/0.1209, allocations: 75.89 kB / 333.7 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001563/0.121, allocations: 123.5 kB / 333.9 MB, free: 14.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001488/0.1212, allocations: 109.5 kB / 334 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005725/0.1218, allocations: 0.5028 MB / 334.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.1218, allocations: 0 / 334.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1218, allocations: 0 / 334.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.928e-05/0.1218, allocations: 8 kB / 334.5 MB, free: 13.91 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001828/0.1236, allocations: 0.8106 MB / 335.3 MB, free: 13.05 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.1237, allocations: 8.031 kB / 335.3 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001606/0.1239, allocations: 86.45 kB / 335.4 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001542/0.124, allocations: 59.34 kB / 335.4 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005374/0.1246, allocations: 354.6 kB / 335.8 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.534e-05/0.1246, allocations: 37 kB / 335.8 MB, free: 12.47 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.1247, allocations: 44 kB / 335.9 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001232/0.126, allocations: 0.615 MB / 336.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.922e-05/0.126, allocations: 7.906 kB / 336.5 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.206e-05/0.1261, allocations: 20 kB / 336.5 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.1261, allocations: 12 kB / 336.5 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001241/0.1274, allocations: 0.609 MB / 337.1 MB, free: 11.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002583/0.13, allocations: 1.367 MB / 338.5 MB, free: 9.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001058/0.131, allocations: 481.2 kB / 339 MB, free: 9.254 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.928e-05/0.1311, allocations: 8.562 kB / 339 MB, free: 9.246 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.1311, allocations: 35.12 kB / 339 MB, free: 9.203 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 2.945e-06/0.1311, allocations: 0 / 339 MB, free: 9.203 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.006644/0.1378, allocations: 3.026 MB / 342 MB, free: 6.035 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.1379, allocations: 59.97 kB / 342.1 MB, free: 5.961 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003812/0.1383, allocations: 325.7 kB / 342.4 MB, free: 5.629 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.983e-05/0.1383, allocations: 45.7 kB / 342.4 MB, free: 5.578 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.1385, allocations: 201.2 kB / 342.6 MB, free: 5.379 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001952/0.1387, allocations: 213.1 kB / 342.8 MB, free: 5.168 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.382e-05/0.1387, allocations: 20 kB / 342.9 MB, free: 5.148 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1389, allocations: 362.7 kB / 343.2 MB, free: 4.785 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006088/0.1395, allocations: 321.8 kB / 343.5 MB, free: 4.473 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006462/0.1402, allocations: 385 kB / 343.9 MB, free: 4.094 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005258/0.1407, allocations: 259.1 kB / 344.2 MB, free: 3.84 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.1407, allocations: 0 / 344.2 MB, free: 3.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001815/0.1426, allocations: 0.9433 MB / 345.1 MB, free: 2.887 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.1426, allocations: 4 kB / 345.1 MB, free: 2.883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1426, allocations: 4.031 kB / 345.1 MB, free: 2.879 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/0.1439, allocations: 0.7286 MB / 345.8 MB, free: 2.148 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003955/0.1443, allocations: 107.9 kB / 346 MB, free: 2.043 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001445/0.1458, allocations: 1.102 MB / 347.1 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007501/0.1466, allocations: 147.9 kB / 347.2 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.09e-05/0.1466, allocations: 27.98 kB / 347.2 MB, free: 0.7422 MB / 286.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 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0003064/0.147, allocations: 187.9 kB / 347.4 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.1471, allocations: 43.44 kB / 347.5 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000169/0.1473, allocations: 80.69 kB / 347.5 MB, free: 432 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.1473, allocations: 4 kB / 347.5 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.1473, allocations: 0 / 347.5 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.1473, allocations: 3.984 kB / 347.5 MB, free: 424 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002977/0.1503, allocations: 1.583 MB / 349.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.1503, allocations: 0 / 349.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000436/0.1508, allocations: 95.88 kB / 349.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001111/0.1519, allocations: 0.6996 MB / 349.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.581e-05/0.152, allocations: 27.97 kB / 349.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001259/0.1532, allocations: 1.064 MB / 351 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.1532, allocations: 3.953 kB / 351 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.1555, allocations: 1.327 MB / 352.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002744/0.1558, allocations: 192.4 kB / 352.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001039/0.1559, allocations: 20 kB / 352.5 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006615/0.1566, allocations: 143.9 kB / 352.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002698/0.1569, allocations: 148.2 kB / 352.8 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.212e-05/0.1569, allocations: 27.97 kB / 352.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002247/0.1572, allocations: 231.2 kB / 353.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1572, allocations: 0 / 353.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005801/0.1578, allocations: 156 kB / 353.2 MB, free: 10.59 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.002714/0.1605, allocations: 1.915 MB / 355.2 MB, free: 8.641 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.1621, allocations: 0.78 MB / 355.9 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1621, allocations: 0 / 355.9 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008077/0.1629, allocations: 437.9 kB / 356.4 MB, free: 7.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005313/0.1634, allocations: 73.31 kB / 356.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006276/0.1697, allocations: 4.217 MB / 360.6 MB, free: 3.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.1701, allocations: 0.8559 MB / 361.5 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001914/0.1703, allocations: 56.09 kB / 361.6 MB, free: 2.145 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002457/0.1706, allocations: 143.4 kB / 361.7 MB, free: 2.004 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1706, allocations: 4 kB / 361.7 MB, free: 2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03008/0.2007, allocations: 16.18 MB / 377.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001698/0.2009, allocations: 212.3 kB / 378.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.134/2.335, allocations: 0 / 378.1 MB, free: 1.57 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat