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.001639/0.001639, allocations: 179.6 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009952/0.0009952, allocations: 98.33 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002627/0.0002626, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2362/0.2364, allocations: 50.39 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09464/0.3311, allocations: 79.76 MB / 481.3 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002617/0.3314, allocations: 75.94 kB / 481.4 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02605/0.3575, allocations: 9.356 MB / 490.8 MB, free: 7.266 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3576, allocations: 0 / 490.8 MB, free: 7.266 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.489e-05/0.3576, allocations: 8 kB / 490.8 MB, free: 7.258 MB / 362.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.002044/0.3597, allocations: 0.8301 MB / 491.6 MB, free: 6.379 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.3597, allocations: 8.031 kB / 491.6 MB, free: 6.371 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002017/0.3599, allocations: 78.52 kB / 491.7 MB, free: 6.285 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001792/0.3601, allocations: 63.25 kB / 491.7 MB, free: 6.223 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005292/0.3607, allocations: 334.7 kB / 492.1 MB, free: 5.859 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.959e-05/0.3607, allocations: 33 kB / 492.1 MB, free: 5.824 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.3608, allocations: 47.91 kB / 492.1 MB, free: 5.777 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.362, allocations: 0.5878 MB / 492.7 MB, free: 5.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.207e-05/0.3621, allocations: 4 kB / 492.7 MB, free: 5.176 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.014e-05/0.3621, allocations: 19.95 kB / 492.8 MB, free: 5.156 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.3622, allocations: 8 kB / 492.8 MB, free: 5.148 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.3633, allocations: 0.5582 MB / 493.3 MB, free: 4.586 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002641/0.366, allocations: 1.351 MB / 494.7 MB, free: 3.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009942/0.367, allocations: 477.2 kB / 495.1 MB, free: 2.703 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.08e-05/0.3671, allocations: 16.55 kB / 495.2 MB, free: 2.688 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.116e-05/0.3671, allocations: 43.06 kB / 495.2 MB, free: 2.637 MB / 362.7 MB Notification: Performance of pre-optimization done (n=61): time 2.585e-06/0.3671, allocations: 0 / 495.2 MB, free: 2.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.006488/0.3736, allocations: 2.917 MB / 498.1 MB, free: 15.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.3737, allocations: 63.97 kB / 498.2 MB, free: 15.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003117/0.374, allocations: 255.7 kB / 498.4 MB, free: 15.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.133e-05/0.3741, allocations: 45.7 kB / 498.5 MB, free: 15.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.3743, allocations: 189.4 kB / 498.7 MB, free: 15.01 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000207/0.3745, allocations: 232.8 kB / 498.9 MB, free: 14.78 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.452e-05/0.3745, allocations: 8 kB / 498.9 MB, free: 14.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3747, allocations: 362.7 kB / 499.3 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006002/0.3753, allocations: 297.9 kB / 499.5 MB, free: 14.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005979/0.3759, allocations: 349.1 kB / 499.9 MB, free: 13.77 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000482/0.3764, allocations: 227.2 kB / 0.4884 GB, free: 13.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3764, allocations: 0 / 0.4884 GB, free: 13.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001637/0.3781, allocations: 0.8612 MB / 0.4892 GB, free: 12.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.3781, allocations: 11.95 kB / 0.4892 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.3781, allocations: 0 / 0.4892 GB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.3792, allocations: 0.5727 MB / 0.4898 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003698/0.3796, allocations: 99.83 kB / 0.4899 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001248/0.3808, allocations: 0.982 MB / 0.4908 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007171/0.3816, allocations: 147.9 kB / 0.491 GB, free: 10.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.093e-05/0.3817, allocations: 31.98 kB / 0.491 GB, free: 10.81 MB / 378.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.0002977/0.382, allocations: 192 kB / 0.4912 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001064/0.3821, allocations: 47.44 kB / 0.4912 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00192/0.384, allocations: 0.929 MB / 0.4922 GB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.384, allocations: 4 kB / 0.4922 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.384, allocations: 0 / 0.4922 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.384, allocations: 3.984 kB / 0.4922 GB, free: 9.602 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00262/0.3867, allocations: 1.489 MB / 0.4936 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.3867, allocations: 3.938 kB / 0.4936 GB, free: 8.051 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000443/0.3871, allocations: 91.89 kB / 0.4937 GB, free: 7.961 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009674/0.3881, allocations: 0.55 MB / 0.4942 GB, free: 7.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.068e-05/0.3882, allocations: 27.95 kB / 0.4943 GB, free: 7.383 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/0.3894, allocations: 0.9503 MB / 0.4952 GB, free: 6.406 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.3894, allocations: 4.031 kB / 0.4952 GB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002283/0.3917, allocations: 1.214 MB / 0.4964 GB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002937/0.392, allocations: 188.4 kB / 0.4966 GB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.3921, allocations: 23.95 kB / 0.4966 GB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006573/0.3928, allocations: 143.9 kB / 0.4967 GB, free: 4.801 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002757/0.3931, allocations: 144.2 kB / 0.4969 GB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.874e-05/0.3932, allocations: 35.95 kB / 0.4969 GB, free: 4.625 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002507/0.3934, allocations: 223.1 kB / 0.4971 GB, free: 4.41 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3934, allocations: 0 / 0.4971 GB, free: 4.41 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006292/0.3941, allocations: 152 kB / 0.4973 GB, free: 4.262 MB / 378.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.002663/0.3967, allocations: 1.794 MB / 0.499 GB, free: 2.438 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.3984, allocations: 0.8085 MB / 0.4998 GB, free: 1.609 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3984, allocations: 0 / 0.4998 GB, free: 1.609 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007717/0.3992, allocations: 413.8 kB / 0.5002 GB, free: 1.207 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005329/0.3997, allocations: 84.38 kB / 0.5003 GB, free: 1.125 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1922/0.5919, allocations: 4.042 MB / 0.5042 GB, free: 99.49 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004597/0.5924, allocations: 0.8614 MB / 0.5051 GB, free: 98.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003055/0.5928, allocations: 39.45 kB / 0.5051 GB, free: 98.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002791/0.5931, allocations: 144.2 kB / 0.5052 GB, free: 98.77 MB / 378.7 MB Notification: Performance of SimCode: time 1.332e-06/0.5931, allocations: 0 / 0.5052 GB, free: 98.77 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03345/0.6265, allocations: 15.41 MB / 0.5203 GB, free: 91.23 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002208/0.6268, allocations: 217.2 kB / 0.5205 GB, free: 90.98 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.355/2.982, allocations: 4.062 kB / 0.5205 GB, free: 90.98 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