Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_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.001055/0.001055, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.721/1.721, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001266/0.001266, allocations: 86.72 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.177e-05/2.14e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1218, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4412/0.5631, allocations: 78.36 MB / 441.5 MB, free: 1.02 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.5633, allocations: 69.34 kB / 441.6 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02681/0.5901, allocations: 9.13 MB / 450.7 MB, free: 9.238 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5902, allocations: 3.938 kB / 450.7 MB, free: 9.234 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.215e-05/0.5902, allocations: 12 kB / 450.7 MB, free: 9.223 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.00161/0.5918, allocations: 0.7725 MB / 451.5 MB, free: 8.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.047e-05/0.5919, allocations: 12.03 kB / 451.5 MB, free: 8.418 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.5921, allocations: 62.62 kB / 451.6 MB, free: 8.359 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000514/0.5926, allocations: 338.5 kB / 451.9 MB, free: 8.023 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.295e-05/0.5926, allocations: 15.95 kB / 451.9 MB, free: 8.008 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.858e-05/0.5927, allocations: 28 kB / 452 MB, free: 7.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000773/0.5935, allocations: 479.1 kB / 452.4 MB, free: 7.672 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007968/0.5943, allocations: 0.5037 MB / 452.9 MB, free: 7.289 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.668e-05/0.5943, allocations: 10.78 kB / 452.9 MB, free: 7.281 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.217e-05/0.5944, allocations: 0 / 452.9 MB, free: 7.281 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.575e-05/0.5944, allocations: 8 kB / 452.9 MB, free: 7.273 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002407/0.5968, allocations: 1.261 MB / 454.2 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007362/0.5976, allocations: 426.8 kB / 454.6 MB, free: 5.914 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003209/0.5979, allocations: 249.4 kB / 454.9 MB, free: 5.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.042e-05/0.598, allocations: 4.562 kB / 454.9 MB, free: 5.766 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.5981, allocations: 54.73 kB / 454.9 MB, free: 5.707 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 1.953e-06/0.5981, allocations: 0 / 454.9 MB, free: 5.707 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.003961/0.602, allocations: 1.854 MB / 456.8 MB, free: 4.129 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.6021, allocations: 59.97 kB / 456.8 MB, free: 4.055 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.6024, allocations: 228.4 kB / 457.1 MB, free: 3.863 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.836e-05/0.6024, allocations: 41.56 kB / 457.1 MB, free: 3.824 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001541/0.6026, allocations: 192.2 kB / 457.3 MB, free: 3.668 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001922/0.6028, allocations: 225.5 kB / 457.5 MB, free: 3.477 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-05/0.6028, allocations: 4 kB / 457.5 MB, free: 3.473 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001726/0.603, allocations: 351.6 kB / 457.9 MB, free: 3.141 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003662/0.6034, allocations: 248.3 kB / 458.1 MB, free: 3.004 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003668/0.6038, allocations: 298.9 kB / 458.4 MB, free: 2.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004775/0.6042, allocations: 204.9 kB / 458.6 MB, free: 2.68 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.6043, allocations: 0 / 458.6 MB, free: 2.68 MB / 330.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001355/0.6056, allocations: 0.7606 MB / 459.3 MB, free: 2.129 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.6057, allocations: 8 kB / 459.4 MB, free: 2.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/0.6057, allocations: 0 / 459.4 MB, free: 2.121 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009904/0.6067, allocations: 0.5505 MB / 459.9 MB, free: 1.699 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004239/0.6071, allocations: 98.95 kB / 460 MB, free: 1.605 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001563/0.6087, allocations: 1.056 MB / 461.1 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008148/0.6095, allocations: 143.8 kB / 461.2 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.547e-05/0.6096, allocations: 30.61 kB / 461.2 MB, free: 0.5742 MB / 330.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.0003446/0.61, allocations: 135 kB / 461.4 MB, free: 448 kB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001586/0.6116, allocations: 0.6831 MB / 462 MB, free: 15.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.6117, allocations: 55.39 kB / 462.1 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001659/0.6134, allocations: 0.8135 MB / 462.9 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.6134, allocations: 8 kB / 462.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.6134, allocations: 0 / 462.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.6134, allocations: 3.984 kB / 462.9 MB, free: 15.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002373/0.6158, allocations: 1.33 MB / 464.3 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.6158, allocations: 0 / 464.3 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004736/0.6163, allocations: 91.08 kB / 464.3 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009416/0.6173, allocations: 0.5325 MB / 464.9 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.751e-05/0.6173, allocations: 17.28 kB / 464.9 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001264/0.6186, allocations: 1.03 MB / 465.9 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.6186, allocations: 0 / 465.9 MB, free: 12.83 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/0.6205, allocations: 1.074 MB / 467 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002691/0.6207, allocations: 185.8 kB / 467.2 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.6208, allocations: 13.62 kB / 467.2 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006763/0.6215, allocations: 135.4 kB / 467.3 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002934/0.6218, allocations: 149.3 kB / 467.5 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.451e-05/0.6219, allocations: 31.2 kB / 467.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002147/0.6221, allocations: 193.1 kB / 467.7 MB, free: 11.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6221, allocations: 4 kB / 467.7 MB, free: 11.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006153/0.6228, allocations: 139.7 kB / 467.8 MB, free: 11.3 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.002447/0.6252, allocations: 1.658 MB / 469.5 MB, free: 9.934 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001354/0.6266, allocations: 0.7108 MB / 470.2 MB, free: 9.418 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6266, allocations: 3.688 kB / 470.2 MB, free: 9.418 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006212/0.6272, allocations: 369.8 kB / 470.6 MB, free: 9.172 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000597/0.6278, allocations: 59.69 kB / 470.6 MB, free: 9.125 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002647/0.6305, allocations: 1.268 MB / 471.9 MB, free: 7.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.631, allocations: 0.8632 MB / 472.7 MB, free: 7.027 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001911/0.6312, allocations: 39.45 kB / 472.8 MB, free: 6.984 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002073/0.6314, allocations: 139.9 kB / 472.9 MB, free: 6.941 MB / 346.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6314, allocations: 0 / 472.9 MB, free: 6.941 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03868/0.6701, allocations: 14.52 MB / 487.4 MB, free: 8.414 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002262/0.6704, allocations: 150.5 kB / 487.6 MB, free: 8.215 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.434/3.105, allocations: 0 / 487.6 MB, free: 8.215 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat