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.001229/0.001229, allocations: 92.03 kB / 16.95 MB, free: 6.441 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.001472/0.001471, allocations: 181.2 kB / 17.84 MB, free: 6.008 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.404/1.404, allocations: 205.4 MB / 224 MB, free: 13.06 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.0004387/0.0004387, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1054, allocations: 47.58 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.00292/0.1084, allocations: 2.626 MB / 331.1 MB, free: 1.324 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001691/0.1101, allocations: 1.038 MB / 332.1 MB, free: 284 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001494/0.1103, allocations: 11.94 kB / 332.1 MB, free: 272 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001976/0.1105, allocations: 51.55 kB / 332.2 MB, free: 220 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000208/0.1107, allocations: 139 kB / 332.3 MB, free: 80 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005029/0.1112, allocations: 207.6 kB / 332.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006056/0.1119, allocations: 0.7023 MB / 333.2 MB, free: 15.17 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002017/0.1121, allocations: 115.1 kB / 333.3 MB, free: 15.05 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003369/0.1124, allocations: 302.9 kB / 333.6 MB, free: 14.76 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003747/0.1128, allocations: 342.8 kB / 334 MB, free: 14.42 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.787e-05/0.1129, allocations: 32 kB / 334 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001704/0.1131, allocations: 79.89 kB / 334.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.1132, allocations: 119.6 kB / 334.2 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001072/0.1133, allocations: 117.4 kB / 334.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004771/0.1138, allocations: 499 kB / 334.8 MB, free: 13.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1138, allocations: 0 / 334.8 MB, free: 13.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1138, allocations: 4 kB / 334.8 MB, free: 13.58 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.1138, allocations: 0 / 334.8 MB, free: 13.58 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.001529/0.1154, allocations: 0.8222 MB / 335.6 MB, free: 12.71 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.1154, allocations: 12.02 kB / 335.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.1156, allocations: 78.53 kB / 335.7 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001055/0.1157, allocations: 55.34 kB / 335.8 MB, free: 12.56 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004422/0.1161, allocations: 354.6 kB / 336.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.39e-05/0.1162, allocations: 33 kB / 336.1 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.993e-05/0.1163, allocations: 44 kB / 336.2 MB, free: 12.1 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.1174, allocations: 0.6189 MB / 336.8 MB, free: 11.47 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.1174, allocations: 11.91 kB / 336.8 MB, free: 11.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.791e-05/0.1175, allocations: 12 kB / 336.8 MB, free: 11.45 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.1175, allocations: 12 kB / 336.8 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.1187, allocations: 0.6207 MB / 337.5 MB, free: 10.81 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002197/0.1209, allocations: 1.367 MB / 338.8 MB, free: 9.387 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009781/0.1219, allocations: 477.2 kB / 339.3 MB, free: 8.914 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005526/0.1225, allocations: 318.4 kB / 339.6 MB, free: 8.602 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.685e-05/0.1225, allocations: 12.55 kB / 339.6 MB, free: 8.59 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.321e-05/0.1226, allocations: 47.05 kB / 339.7 MB, free: 8.535 MB / 286.1 MB Notification: Performance of pre-optimization done (n=58): time 1.974e-06/0.1226, allocations: 0 / 339.7 MB, free: 8.535 MB / 286.1 MB Notification: Performance of matching and sorting (n=64): time 0.005841/0.1284, allocations: 3.02 MB / 342.7 MB, free: 5.371 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.854e-05/0.1285, allocations: 63.97 kB / 342.7 MB, free: 5.297 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003675/0.1289, allocations: 333.6 kB / 343.1 MB, free: 4.957 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.13e-05/0.129, allocations: 45.69 kB / 343.1 MB, free: 4.906 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002214/0.1292, allocations: 201.2 kB / 343.3 MB, free: 4.707 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002939/0.1295, allocations: 217.1 kB / 343.5 MB, free: 4.492 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.383e-05/0.1295, allocations: 15.98 kB / 343.5 MB, free: 4.477 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.1297, allocations: 354.8 kB / 343.9 MB, free: 4.121 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006431/0.1304, allocations: 325.8 kB / 344.2 MB, free: 3.805 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007442/0.1311, allocations: 393 kB / 344.6 MB, free: 3.418 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005255/0.1317, allocations: 263.1 kB / 344.8 MB, free: 3.16 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1317, allocations: 0 / 344.8 MB, free: 3.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00177/0.1335, allocations: 0.9393 MB / 345.8 MB, free: 2.211 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.1335, allocations: 4 kB / 345.8 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/0.1335, allocations: 0 / 345.8 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/0.1349, allocations: 0.7287 MB / 346.5 MB, free: 1.477 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003825/0.1353, allocations: 107.8 kB / 346.6 MB, free: 1.371 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/0.1368, allocations: 1.099 MB / 347.7 MB, free: 252 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006434/0.1374, allocations: 151.8 kB / 347.9 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.227e-05/0.1375, allocations: 24 kB / 347.9 MB, free: 76 kB / 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.0003054/0.1378, allocations: 184 kB / 348.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.969e-05/0.1379, allocations: 51.39 kB / 348.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002501/0.1382, allocations: 72.75 kB / 348.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.256e-06/0.1382, allocations: 8 kB / 348.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.1382, allocations: 4 kB / 348.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.1382, allocations: 3.984 kB / 348.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002892/0.1411, allocations: 1.579 MB / 349.8 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.1411, allocations: 4 kB / 349.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004049/0.1415, allocations: 91.89 kB / 349.9 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001131/0.1427, allocations: 0.6995 MB / 350.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.231e-05/0.1428, allocations: 31.95 kB / 350.6 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001357/0.1441, allocations: 1.064 MB / 351.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1441, allocations: 0 / 351.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002437/0.1466, allocations: 1.323 MB / 353 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002566/0.1468, allocations: 192.4 kB / 353.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001179/0.147, allocations: 24 kB / 353.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006791/0.1477, allocations: 147.8 kB / 353.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002844/0.148, allocations: 148.2 kB / 353.5 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.105e-05/0.148, allocations: 23.97 kB / 353.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002709/0.1483, allocations: 235.2 kB / 353.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.1483, allocations: 0 / 353.7 MB, free: 10.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005834/0.1489, allocations: 167.9 kB / 353.9 MB, free: 9.898 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.003008/0.1519, allocations: 1.9 MB / 355.8 MB, free: 7.969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00205/0.154, allocations: 0.7801 MB / 356.6 MB, free: 7.191 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.154, allocations: 0 / 356.6 MB, free: 7.191 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009754/0.155, allocations: 445.8 kB / 357 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007113/0.1557, allocations: 88.77 kB / 357.1 MB, free: 6.676 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00752/0.1632, allocations: 3.919 MB / 361 MB, free: 2.688 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.1638, allocations: 0.8481 MB / 361.9 MB, free: 1.816 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002235/0.164, allocations: 52.16 kB / 361.9 MB, free: 1.766 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002687/0.1643, allocations: 147.4 kB / 362.1 MB, free: 1.621 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1643, allocations: 0 / 362.1 MB, free: 1.621 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1168/0.2811, allocations: 16.21 MB / 378.3 MB, free: 1.395 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002875/0.2814, allocations: 217.5 kB / 378.5 MB, free: 1.156 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.392/2.673, allocations: 8 kB / 378.5 MB, free: 1.148 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