Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002249/0.002249, allocations: 185.9 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.231/2.231, allocations: 205.4 MB / 222.5 MB, free: 9.145 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001119/0.001119, allocations: 96.08 kB / 270.9 MB, free: 8.398 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006287/0.0006294, allocations: 15.98 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.368/0.3687, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.4971, allocations: 78.85 MB / 453.5 MB, free: 1.902 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.4974, allocations: 75.97 kB / 453.6 MB, free: 1.828 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04516/0.5426, allocations: 9.215 MB / 462.8 MB, free: 8.598 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5427, allocations: 0 / 462.8 MB, free: 8.598 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.158e-05/0.5427, allocations: 12 kB / 462.8 MB, free: 8.586 MB / 346.7 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.002987/0.5457, allocations: 0.826 MB / 463.6 MB, free: 7.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/0.5458, allocations: 12.03 kB / 463.6 MB, free: 7.699 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002289/0.5461, allocations: 82.52 kB / 463.7 MB, free: 7.609 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/0.5463, allocations: 59.25 kB / 463.8 MB, free: 7.551 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007087/0.547, allocations: 330.7 kB / 464.1 MB, free: 7.191 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.637e-05/0.5471, allocations: 44.88 kB / 464.1 MB, free: 7.145 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001664/0.5472, allocations: 47.91 kB / 464.2 MB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001928/0.5492, allocations: 0.5878 MB / 464.8 MB, free: 6.5 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.935e-05/0.5493, allocations: 4 kB / 464.8 MB, free: 6.496 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-05/0.5494, allocations: 20 kB / 464.8 MB, free: 6.477 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.5494, allocations: 8 kB / 464.8 MB, free: 6.469 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002152/0.5516, allocations: 0.5504 MB / 465.3 MB, free: 5.918 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004586/0.5562, allocations: 1.351 MB / 466.7 MB, free: 4.512 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002011/0.5582, allocations: 471 kB / 467.2 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001841/0.5585, allocations: 12.56 kB / 467.2 MB, free: 4.035 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.52e-05/0.5585, allocations: 50.98 kB / 467.2 MB, free: 3.977 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 4.399e-06/0.5586, allocations: 0 / 467.2 MB, free: 3.977 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.01247/0.571, allocations: 2.917 MB / 470.1 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.013e-05/0.5712, allocations: 63.97 kB / 470.2 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004827/0.5716, allocations: 255.7 kB / 470.4 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000217/0.5719, allocations: 49.69 kB / 470.5 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002039/0.5721, allocations: 235.9 kB / 470.7 MB, free: 308 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003564/0.5725, allocations: 232.8 kB / 471 MB, free: 72 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.231e-05/0.5726, allocations: 16 kB / 471 MB, free: 56 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.5728, allocations: 338.8 kB / 471.3 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.574, allocations: 293.9 kB / 471.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001265/0.5753, allocations: 353 kB / 471.9 MB, free: 15.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009774/0.5763, allocations: 231.2 kB / 472.2 MB, free: 14.85 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.5763, allocations: 0 / 472.2 MB, free: 14.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003114/0.5795, allocations: 0.8341 MB / 473 MB, free: 14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.954e-05/0.5795, allocations: 4.938 kB / 473 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.174e-05/0.5796, allocations: 7.984 kB / 473 MB, free: 13.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001987/0.5816, allocations: 0.5733 MB / 473.6 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008014/0.5824, allocations: 107.8 kB / 473.7 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002347/0.5848, allocations: 0.9866 MB / 474.7 MB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00145/0.5863, allocations: 151.9 kB / 474.8 MB, free: 12.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/0.5864, allocations: 27.98 kB / 474.8 MB, free: 12.13 MB / 362.7 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): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0004876/0.5869, allocations: 188 kB / 475 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/0.5871, allocations: 47.44 kB / 475.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003533/0.5907, allocations: 0.9212 MB / 476 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.768e-05/0.5907, allocations: 15.88 kB / 476 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.5908, allocations: 3.984 kB / 476 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.5908, allocations: 0 / 476 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005017/0.5958, allocations: 1.481 MB / 477.5 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.076e-05/0.5959, allocations: 0 / 477.5 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009198/0.5968, allocations: 95.88 kB / 477.6 MB, free: 9.285 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001962/0.5988, allocations: 0.5512 MB / 478.1 MB, free: 8.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001654/0.599, allocations: 27.97 kB / 478.2 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002204/0.6012, allocations: 0.9505 MB / 479.1 MB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.6013, allocations: 0 / 479.1 MB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004544/0.6058, allocations: 1.214 MB / 480.3 MB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005023/0.6064, allocations: 184.4 kB / 480.5 MB, free: 6.293 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001908/0.6066, allocations: 27.98 kB / 480.5 MB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001354/0.608, allocations: 139.9 kB / 480.7 MB, free: 6.129 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005281/0.6085, allocations: 152.2 kB / 480.8 MB, free: 5.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.6087, allocations: 27.97 kB / 480.9 MB, free: 5.953 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003997/0.6091, allocations: 219.2 kB / 481.1 MB, free: 5.742 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6091, allocations: 0 / 481.1 MB, free: 5.742 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000938/0.61, allocations: 163.9 kB / 481.2 MB, free: 5.582 MB / 362.7 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,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,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.005221/0.6153, allocations: 1.798 MB / 483 MB, free: 3.754 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003114/0.6185, allocations: 0.8047 MB / 483.8 MB, free: 2.926 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.401e-06/0.6185, allocations: 0 / 483.8 MB, free: 2.926 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001783/0.6203, allocations: 413.8 kB / 484.2 MB, free: 2.523 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.6214, allocations: 76.86 kB / 484.3 MB, free: 2.449 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01188/0.6333, allocations: 4.078 MB / 488.4 MB, free: 14.3 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006257/0.634, allocations: 0.8598 MB / 489.2 MB, free: 13.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004565/0.6345, allocations: 143.4 kB / 489.4 MB, free: 13.28 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.6345, allocations: 0 / 489.4 MB, free: 13.28 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.865/3.499, allocations: 10.2 MB / 499.6 MB, free: 3.078 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat