Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_0_0_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.001117/0.001117, allocations: 95.25 kB / 16.3 MB, free: 6.461 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.001191/0.001191, allocations: 175.8 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 223.2 MB / 241.1 MB, free: 400 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002635/0.0002637, allocations: 8 kB / 300.8 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1076, allocations: 50.41 MB / 351.2 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003015/0.1107, allocations: 2.492 MB / 353.7 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.1124, allocations: 1.021 MB / 354.7 MB, free: 416 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001575/0.1126, allocations: 7.938 kB / 354.7 MB, free: 408 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.1128, allocations: 51.61 kB / 354.8 MB, free: 356 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003008/0.1131, allocations: 175.5 kB / 355 MB, free: 180 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005438/0.1136, allocations: 211.6 kB / 355.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005493/0.1142, allocations: 484.8 kB / 355.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002275/0.1144, allocations: 107.1 kB / 355.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003749/0.1148, allocations: 314.9 kB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004013/0.1152, allocations: 330.9 kB / 356.4 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.592e-05/0.1153, allocations: 32 kB / 356.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001693/0.1155, allocations: 71.89 kB / 356.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001382/0.1156, allocations: 119.6 kB / 356.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.1157, allocations: 109.5 kB / 356.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000512/0.1163, allocations: 0.5067 MB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.1163, allocations: 0 / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1163, allocations: 0 / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.152e-05/0.1163, allocations: 4 kB / 357.2 MB, free: 13.91 MB / 302.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.001657/0.118, allocations: 0.8106 MB / 358 MB, free: 13.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.118, allocations: 8.031 kB / 358 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001219/0.1182, allocations: 86.52 kB / 358.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/0.1183, allocations: 63.2 kB / 358.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000492/0.1188, allocations: 338.7 kB / 358.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.816e-05/0.1188, allocations: 44.94 kB / 358.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.026e-05/0.1189, allocations: 47.98 kB / 358.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.12, allocations: 0.6189 MB / 359.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.1201, allocations: 7.906 kB / 359.2 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.868e-05/0.1201, allocations: 23.98 kB / 359.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.1202, allocations: 11.95 kB / 359.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001152/0.1213, allocations: 0.609 MB / 359.9 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002396/0.1237, allocations: 1.371 MB / 361.2 MB, free: 9.707 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009961/0.1247, allocations: 470.3 kB / 361.7 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.613e-05/0.1248, allocations: 4.562 kB / 361.7 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.482e-05/0.1248, allocations: 47.11 kB / 361.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 4.067e-06/0.1248, allocations: 3.984 kB / 361.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.006468/0.1313, allocations: 3.022 MB / 364.8 MB, free: 6.012 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.518e-05/0.1314, allocations: 59.97 kB / 364.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003955/0.1318, allocations: 329.7 kB / 365.2 MB, free: 5.609 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.247e-05/0.1319, allocations: 45.7 kB / 365.2 MB, free: 5.559 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.1321, allocations: 197.2 kB / 365.4 MB, free: 5.363 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001971/0.1323, allocations: 224.9 kB / 365.6 MB, free: 5.141 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.393e-05/0.1323, allocations: 16 kB / 365.6 MB, free: 5.125 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.1325, allocations: 358.8 kB / 366 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006023/0.1331, allocations: 321.8 kB / 366.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006062/0.1337, allocations: 385 kB / 366.7 MB, free: 4.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004966/0.1342, allocations: 255.2 kB / 366.9 MB, free: 3.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1343, allocations: 11.88 kB / 366.9 MB, free: 3.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001705/0.136, allocations: 0.9316 MB / 367.9 MB, free: 2.867 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/0.136, allocations: 10.81 kB / 367.9 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.136, allocations: 7.984 kB / 367.9 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001262/0.1373, allocations: 0.7286 MB / 368.6 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003865/0.1377, allocations: 103.9 kB / 368.7 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/0.1391, allocations: 1.091 MB / 369.8 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007383/0.1398, allocations: 147.9 kB / 370 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.88e-05/0.1399, allocations: 27.98 kB / 370 MB, free: 0.7305 MB / 302.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.0003126/0.1402, allocations: 192.9 kB / 370.2 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.327e-05/0.1403, allocations: 51.38 kB / 370.2 MB, free: 496 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001448/0.1404, allocations: 68.75 kB / 370.3 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.1405, allocations: 8 kB / 370.3 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.1405, allocations: 0 / 370.3 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.1405, allocations: 3.984 kB / 370.3 MB, free: 412 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2009/0.3414, allocations: 1.572 MB / 371.9 MB, free: 24.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.3414, allocations: 1.969 kB / 371.9 MB, free: 24.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004531/0.3419, allocations: 94.72 kB / 372 MB, free: 24.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001172/0.343, allocations: 0.6999 MB / 372.7 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.549e-05/0.3431, allocations: 38.41 kB / 372.7 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.3445, allocations: 1.061 MB / 373.8 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.3445, allocations: 0.7031 kB / 373.8 MB, free: 24.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/0.3468, allocations: 1.33 MB / 375.1 MB, free: 24.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002795/0.3471, allocations: 196.3 kB / 375.3 MB, free: 23.97 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.3472, allocations: 20.03 kB / 375.3 MB, free: 23.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006742/0.3479, allocations: 141.9 kB / 375.4 MB, free: 23.95 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003208/0.3482, allocations: 150.9 kB / 375.6 MB, free: 23.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.756e-05/0.3483, allocations: 30.17 kB / 375.6 MB, free: 23.93 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002421/0.3486, allocations: 229.9 kB / 375.8 MB, free: 23.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3486, allocations: 0 / 375.8 MB, free: 23.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005352/0.3491, allocations: 161.9 kB / 376 MB, free: 23.79 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.002646/0.3518, allocations: 1.904 MB / 377.9 MB, free: 22.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001652/0.3534, allocations: 0.7835 MB / 378.7 MB, free: 22.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.3534, allocations: 1.094 kB / 378.7 MB, free: 22.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007953/0.3542, allocations: 438.2 kB / 379.1 MB, free: 22.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005874/0.3548, allocations: 82.53 kB / 379.2 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006905/0.3618, allocations: 4.212 MB / 383.4 MB, free: 20 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003435/0.3621, allocations: 0.8562 MB / 384.3 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002298/0.3624, allocations: 48.08 kB / 384.3 MB, free: 19.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002075/0.3626, allocations: 150 kB / 384.5 MB, free: 19.18 MB / 302.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3626, allocations: 1.438 kB / 384.5 MB, free: 19.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02889/0.3915, allocations: 16.18 MB / 400.6 MB, free: 7.742 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001335/0.3917, allocations: 227.8 kB / 400.9 MB, free: 7.492 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.166/2.558, allocations: 0 / 400.9 MB, free: 7.492 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat