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.001546/0.001546, allocations: 180.6 kB / 13.66 MB, free: 1.664 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.487/2.487, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001149/0.001149, allocations: 86.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.343e-05/4.359e-05, allocations: 4 kB / 321.6 MB, free: 17.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1022, allocations: 47.57 MB / 369.2 MB, free: 2.133 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4435/0.5457, allocations: 78.77 MB / 447.9 MB, free: 14.45 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.5461, allocations: 74.14 kB / 448 MB, free: 14.41 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04413/0.5902, allocations: 9.188 MB / 457.2 MB, free: 6.492 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5903, allocations: 3.938 kB / 457.2 MB, free: 6.488 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.065e-05/0.5903, allocations: 12 kB / 457.2 MB, free: 6.477 MB / 330.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.002599/0.5929, allocations: 0.779 MB / 458 MB, free: 5.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/0.593, allocations: 8.031 kB / 458 MB, free: 5.672 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000172/0.5932, allocations: 82.22 kB / 458.1 MB, free: 5.609 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001826/0.5934, allocations: 59.25 kB / 458.1 MB, free: 5.551 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006837/0.5941, allocations: 337 kB / 458.5 MB, free: 5.211 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5e-05/0.5941, allocations: 35.14 kB / 458.5 MB, free: 5.191 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001572/0.5943, allocations: 41.38 kB / 458.5 MB, free: 5.164 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.5958, allocations: 0.5586 MB / 459.1 MB, free: 4.766 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.002e-05/0.5959, allocations: 7.906 kB / 459.1 MB, free: 4.758 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.68e-05/0.596, allocations: 18.44 kB / 459.1 MB, free: 4.754 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.293e-05/0.596, allocations: 11.98 kB / 459.1 MB, free: 4.742 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001429/0.5975, allocations: 0.4919 MB / 459.6 MB, free: 4.406 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004265/0.6017, allocations: 1.344 MB / 461 MB, free: 3.227 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.6033, allocations: 436.7 kB / 461.4 MB, free: 2.789 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007406/0.6041, allocations: 274.5 kB / 461.7 MB, free: 2.516 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001225/0.6043, allocations: 12.55 kB / 461.7 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.675e-05/0.6043, allocations: 43.08 kB / 461.7 MB, free: 2.453 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 3.948e-06/0.6043, allocations: 3.938 kB / 461.7 MB, free: 2.449 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.006129/0.6105, allocations: 1.924 MB / 463.7 MB, free: 444 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.6106, allocations: 59.97 kB / 463.7 MB, free: 372 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004711/0.6111, allocations: 250.7 kB / 464 MB, free: 112 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.6112, allocations: 49.7 kB / 464 MB, free: 56 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002167/0.6114, allocations: 239.9 kB / 464.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003064/0.6118, allocations: 236.8 kB / 464.5 MB, free: 15.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.322e-05/0.6118, allocations: 12 kB / 464.5 MB, free: 15.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.612, allocations: 338.8 kB / 464.8 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007897/0.6128, allocations: 261.5 kB / 465.1 MB, free: 14.98 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008571/0.6137, allocations: 319 kB / 465.4 MB, free: 14.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006208/0.6143, allocations: 198.1 kB / 465.6 MB, free: 14.47 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.6144, allocations: 3.938 kB / 465.6 MB, free: 14.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002456/0.6168, allocations: 0.7746 MB / 466.4 MB, free: 13.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.621e-05/0.6169, allocations: 8 kB / 466.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.841e-05/0.617, allocations: 0 / 466.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001888/0.6189, allocations: 0.5575 MB / 466.9 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008379/0.6197, allocations: 99.88 kB / 467 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002237/0.622, allocations: 0.982 MB / 468 MB, free: 12.01 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001544/0.6236, allocations: 143.9 kB / 468.1 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.6238, allocations: 31.98 kB / 468.2 MB, free: 11.84 MB / 346.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 () * 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.0003156/0.6241, allocations: 143.1 kB / 468.3 MB, free: 11.69 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001877/0.6243, allocations: 47.44 kB / 468.4 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002923/0.6272, allocations: 0.8704 MB / 469.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/0.6273, allocations: 8 kB / 469.2 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/0.6273, allocations: 0 / 469.2 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/0.6274, allocations: 3.984 kB / 469.2 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004112/0.6315, allocations: 1.422 MB / 470.7 MB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.767e-06/0.6316, allocations: 0 / 470.7 MB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009099/0.6325, allocations: 99.88 kB / 470.8 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001732/0.6342, allocations: 0.5201 MB / 471.3 MB, free: 8.633 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001461/0.6344, allocations: 35.95 kB / 471.3 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002008/0.6364, allocations: 0.9438 MB / 472.3 MB, free: 7.629 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.6365, allocations: 0 / 472.3 MB, free: 7.629 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003554/0.64, allocations: 1.121 MB / 473.4 MB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005066/0.6406, allocations: 188.4 kB / 473.6 MB, free: 6.285 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001798/0.6408, allocations: 20.09 kB / 473.6 MB, free: 6.266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/0.6421, allocations: 143.9 kB / 473.7 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005003/0.6426, allocations: 156.2 kB / 473.9 MB, free: 5.973 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001326/0.6428, allocations: 31.95 kB / 473.9 MB, free: 5.941 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000385/0.6432, allocations: 214.2 kB / 474.1 MB, free: 5.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6432, allocations: 0 / 474.1 MB, free: 5.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008662/0.6441, allocations: 160 kB / 474.3 MB, free: 5.574 MB / 346.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) * 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.004106/0.6482, allocations: 1.698 MB / 476 MB, free: 3.852 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002326/0.6506, allocations: 0.7547 MB / 476.7 MB, free: 3.082 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.6506, allocations: 0 / 476.7 MB, free: 3.082 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001269/0.6519, allocations: 373.9 kB / 477.1 MB, free: 2.715 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009608/0.6529, allocations: 91.12 kB / 477.2 MB, free: 2.629 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004777/0.6577, allocations: 1.363 MB / 478.5 MB, free: 1.227 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005703/0.6583, allocations: 0.8518 MB / 479.4 MB, free: 356 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004374/0.6588, allocations: 147.4 kB / 479.5 MB, free: 208 kB / 346.7 MB Notification: Performance of SimCode: time 1.773e-06/0.6588, allocations: 4 kB / 479.5 MB, free: 204 kB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.012/3.671, allocations: 10.18 MB / 489.7 MB, free: 6.012 MB / 362.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