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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009269/0.000927, allocations: 88.23 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.721e-05/1.733e-05, allocations: 0 / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1121, allocations: 50.41 MB / 387.5 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3688/0.481, allocations: 79.02 MB / 466.6 MB, free: 15.72 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/0.4813, allocations: 63.97 kB / 466.6 MB, free: 15.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02898/0.5103, allocations: 9.284 MB / 475.9 MB, free: 6.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.5104, allocations: 0 / 475.9 MB, free: 6.371 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.204e-05/0.5104, allocations: 12 kB / 475.9 MB, free: 6.359 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.001751/0.5122, allocations: 0.7763 MB / 476.7 MB, free: 5.539 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.5122, allocations: 8.031 kB / 476.7 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.5124, allocations: 63.25 kB / 476.8 MB, free: 5.469 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004754/0.5128, allocations: 335.6 kB / 477.1 MB, free: 5.098 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.819e-05/0.5129, allocations: 15.94 kB / 477.1 MB, free: 5.082 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.015e-05/0.513, allocations: 28 kB / 477.1 MB, free: 5.055 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008086/0.5138, allocations: 478.4 kB / 477.6 MB, free: 4.586 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008191/0.5146, allocations: 0.5 MB / 478.1 MB, free: 4.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.337e-05/0.5147, allocations: 11.86 kB / 478.1 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.1e-05/0.5147, allocations: 0 / 478.1 MB, free: 4.059 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.5147, allocations: 12 kB / 478.1 MB, free: 4.047 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002331/0.5171, allocations: 1.269 MB / 479.4 MB, free: 2.734 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007446/0.5178, allocations: 427.2 kB / 479.8 MB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003573/0.5182, allocations: 246.5 kB / 480.1 MB, free: 2.066 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.39e-05/0.5183, allocations: 12.55 kB / 480.1 MB, free: 2.055 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.5183, allocations: 39.12 kB / 480.1 MB, free: 2.008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 2.946e-06/0.5184, allocations: 0 / 480.1 MB, free: 2.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.004024/0.5224, allocations: 1.857 MB / 482 MB, free: 64 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.891e-05/0.5225, allocations: 60.02 kB / 482 MB, free: 15.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002816/0.5228, allocations: 233.1 kB / 482.3 MB, free: 15.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.716e-05/0.5228, allocations: 45.69 kB / 482.3 MB, free: 15.7 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001368/0.523, allocations: 189.3 kB / 482.5 MB, free: 15.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.5232, allocations: 224.9 kB / 482.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.105e-05/0.5232, allocations: 0 / 482.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.5234, allocations: 350.8 kB / 483 MB, free: 14.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003908/0.5238, allocations: 249.5 kB / 483.3 MB, free: 14.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004317/0.5243, allocations: 301.5 kB / 483.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004901/0.5247, allocations: 208.5 kB / 483.8 MB, free: 14.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.5248, allocations: 0 / 483.8 MB, free: 14.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001397/0.5262, allocations: 0.751 MB / 484.5 MB, free: 13.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.5262, allocations: 5.844 kB / 484.5 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.071e-05/0.5262, allocations: 4 kB / 484.5 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00099/0.5272, allocations: 0.5478 MB / 485.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003971/0.5276, allocations: 103.8 kB / 485.2 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.529, allocations: 1.06 MB / 486.3 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007188/0.5298, allocations: 135.9 kB / 486.4 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.581e-05/0.5299, allocations: 35.98 kB / 486.4 MB, free: 11.52 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0002548/0.5302, allocations: 135.1 kB / 486.6 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001445/0.5316, allocations: 0.6827 MB / 487.2 MB, free: 10.69 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.592e-05/0.5317, allocations: 47.44 kB / 487.3 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001616/0.5333, allocations: 0.8275 MB / 488.1 MB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.5334, allocations: 8 kB / 488.1 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.5334, allocations: 3.938 kB / 488.1 MB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.5334, allocations: 3.984 kB / 488.1 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002245/0.5356, allocations: 1.322 MB / 489.4 MB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.5357, allocations: 0 / 489.4 MB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000441/0.5361, allocations: 91.89 kB / 489.5 MB, free: 8.324 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008902/0.537, allocations: 0.5316 MB / 490.1 MB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.89e-05/0.5371, allocations: 19.95 kB / 490.1 MB, free: 7.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00131/0.5384, allocations: 1.023 MB / 491.1 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5384, allocations: 0 / 491.1 MB, free: 6.723 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001847/0.5403, allocations: 1.078 MB / 492.2 MB, free: 5.629 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002678/0.5406, allocations: 188.4 kB / 492.4 MB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001172/0.5407, allocations: 16 kB / 492.4 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006659/0.5414, allocations: 127.9 kB / 492.5 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000276/0.5416, allocations: 156.2 kB / 492.7 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.139e-05/0.5417, allocations: 35.91 kB / 492.7 MB, free: 5.098 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002062/0.5419, allocations: 192.6 kB / 492.9 MB, free: 4.906 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.3e-07/0.5419, allocations: 0 / 492.9 MB, free: 4.906 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005675/0.5425, allocations: 136 kB / 493 MB, free: 4.773 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) * 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.002366/0.5449, allocations: 1.658 MB / 494.7 MB, free: 3.086 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.5461, allocations: 0.7131 MB / 495.4 MB, free: 2.355 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.5462, allocations: 0 / 495.4 MB, free: 2.355 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006137/0.5468, allocations: 364.9 kB / 495.8 MB, free: 2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006149/0.5474, allocations: 80.19 kB / 495.8 MB, free: 1.922 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002636/0.5501, allocations: 1.274 MB / 497.1 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005162/0.5506, allocations: 0.8515 MB / 498 MB, free: 15.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000237/0.5508, allocations: 39.45 kB / 498 MB, free: 15.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002444/0.5511, allocations: 143.4 kB / 498.1 MB, free: 15.55 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5511, allocations: 0 / 498.1 MB, free: 15.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04101/0.5921, allocations: 14.5 MB / 0.5006 GB, free: 1.117 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002681/0.5925, allocations: 151.1 kB / 0.5008 GB, free: 0.918 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.392/2.984, allocations: 0 / 0.5008 GB, free: 0.918 MB / 378.7 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