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.0008714/0.0008716, allocations: 93.47 kB / 16.32 MB, free: 5.578 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.0009173/0.0009174, allocations: 177.6 kB / 17.2 MB, free: 5.496 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.326/1.326, allocations: 223.2 MB / 241.2 MB, free: 360 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002776/0.0002776, allocations: 8 kB / 300.9 MB, free: 6.375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1186, allocations: 50.42 MB / 351.3 MB, free: 3.945 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003473/0.1221, allocations: 2.64 MB / 354 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001773/0.1239, allocations: 0.9938 MB / 355 MB, free: 296 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.1241, allocations: 7.938 kB / 355 MB, free: 288 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002203/0.1243, allocations: 55.55 kB / 355 MB, free: 232 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002249/0.1246, allocations: 135 kB / 355.2 MB, free: 96 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005257/0.1251, allocations: 207.7 kB / 355.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006912/0.1258, allocations: 0.7023 MB / 356.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002321/0.126, allocations: 111.1 kB / 356.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004128/0.1264, allocations: 302.9 kB / 356.5 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004153/0.1269, allocations: 338.8 kB / 356.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.593e-05/0.127, allocations: 32 kB / 356.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001841/0.1271, allocations: 79.89 kB / 356.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001452/0.1273, allocations: 115.6 kB / 357 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001661/0.1275, allocations: 117.4 kB / 357.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000504/0.128, allocations: 0.4912 MB / 357.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.128, allocations: 0 / 357.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.128, allocations: 0 / 357.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.128, allocations: 4 kB / 357.6 MB, free: 13.6 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.001482/0.1295, allocations: 0.83 MB / 358.5 MB, free: 12.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.1296, allocations: 8.031 kB / 358.5 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001076/0.1297, allocations: 74.53 kB / 358.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000114/0.1298, allocations: 67.2 kB / 358.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004421/0.1303, allocations: 346.8 kB / 358.9 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.391e-05/0.1303, allocations: 33 kB / 359 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.54e-05/0.1304, allocations: 44 kB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001121/0.1316, allocations: 0.6228 MB / 359.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.233e-05/0.1316, allocations: 3.906 kB / 359.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.356e-05/0.1317, allocations: 20 kB / 359.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.1317, allocations: 15.95 kB / 359.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001175/0.1329, allocations: 0.6168 MB / 360.3 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002212/0.1351, allocations: 1.371 MB / 361.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009838/0.1361, allocations: 466.2 kB / 362.1 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005707/0.1367, allocations: 310.4 kB / 362.4 MB, free: 8.617 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.343e-05/0.1367, allocations: 8.562 kB / 362.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/0.1368, allocations: 47.05 kB / 362.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.054e-06/0.1368, allocations: 0 / 362.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.006203/0.143, allocations: 3.02 MB / 365.5 MB, free: 5.398 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.1431, allocations: 59.91 kB / 365.6 MB, free: 5.328 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003902/0.1435, allocations: 333.7 kB / 365.9 MB, free: 4.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.499e-05/0.1435, allocations: 49.69 kB / 365.9 MB, free: 4.938 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001677/0.1437, allocations: 197.2 kB / 366.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000203/0.1439, allocations: 220.9 kB / 366.3 MB, free: 4.523 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.144, allocations: 19.98 kB / 366.4 MB, free: 4.504 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.1441, allocations: 350.8 kB / 366.7 MB, free: 4.152 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006175/0.1448, allocations: 325.8 kB / 367 MB, free: 3.836 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006361/0.1454, allocations: 389 kB / 367.4 MB, free: 3.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005019/0.1459, allocations: 263.1 kB / 367.7 MB, free: 3.191 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1459, allocations: 4 kB / 367.7 MB, free: 3.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001792/0.1477, allocations: 0.9355 MB / 368.6 MB, free: 2.242 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.1478, allocations: 14.3 kB / 368.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.1478, allocations: 0 / 368.6 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001285/0.1491, allocations: 0.7325 MB / 369.3 MB, free: 1.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003746/0.1495, allocations: 107.8 kB / 369.5 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.1509, allocations: 1.093 MB / 370.5 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006394/0.1515, allocations: 147.9 kB / 370.7 MB, free: 132 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.41e-05/0.1516, allocations: 27.92 kB / 370.7 MB, free: 104 kB / 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.1857/0.3373, allocations: 176.9 kB / 370.9 MB, free: 25.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002324/0.3376, allocations: 46.31 kB / 370.9 MB, free: 25.58 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002477/0.3378, allocations: 70.52 kB / 371 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.3379, allocations: 6.406 kB / 371 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.3379, allocations: 1.25 kB / 371 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.3379, allocations: 4 kB / 371 MB, free: 25.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003465/0.3414, allocations: 1.588 MB / 372.6 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.3414, allocations: 0 / 372.6 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004436/0.3418, allocations: 94.56 kB / 372.7 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001394/0.3433, allocations: 0.7108 MB / 373.4 MB, free: 25.2 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.751e-05/0.3433, allocations: 22.81 kB / 373.4 MB, free: 25.19 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001434/0.3448, allocations: 1.063 MB / 374.5 MB, free: 24.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3448, allocations: 0 / 374.5 MB, free: 24.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002445/0.3473, allocations: 1.335 MB / 375.8 MB, free: 23.95 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002784/0.3475, allocations: 186.8 kB / 376 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.3477, allocations: 20.25 kB / 376 MB, free: 23.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006059/0.3483, allocations: 142.7 kB / 376.2 MB, free: 23.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003478/0.3486, allocations: 156.7 kB / 376.3 MB, free: 23.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.908e-05/0.3487, allocations: 27.34 kB / 376.3 MB, free: 23.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002899/0.349, allocations: 229.5 kB / 376.6 MB, free: 23.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.349, allocations: 1.375 kB / 376.6 MB, free: 23.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007824/0.3498, allocations: 162 kB / 376.7 MB, free: 23.63 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.002767/0.3526, allocations: 1.913 MB / 378.6 MB, free: 22.55 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.3542, allocations: 0.7863 MB / 379.4 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3542, allocations: 0 / 379.4 MB, free: 22.29 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008283/0.355, allocations: 437.5 kB / 379.9 MB, free: 22.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006994/0.3557, allocations: 88.52 kB / 379.9 MB, free: 22.11 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006514/0.3623, allocations: 3.918 MB / 383.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.3626, allocations: 0.8409 MB / 384.7 MB, free: 19.41 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002541/0.3629, allocations: 55.77 kB / 384.8 MB, free: 19.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/0.3631, allocations: 151.4 kB / 384.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3631, allocations: 3.828 kB / 384.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02904/0.3922, allocations: 16.21 MB / 401.1 MB, free: 7.402 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/0.3924, allocations: 223.9 kB / 401.3 MB, free: 7.164 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.179/2.572, allocations: 0 / 401.3 MB, free: 7.164 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