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.001394/0.001394, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.388/1.388, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008554/0.0008555, allocations: 92.09 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003181/0.0003181, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2528, allocations: 47.56 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09961/0.3525, allocations: 78.86 MB / 454.8 MB, free: 1.805 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/0.3528, allocations: 75.95 kB / 454.8 MB, free: 1.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02581/0.3786, allocations: 9.208 MB / 464 MB, free: 8.508 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3786, allocations: 0 / 464 MB, free: 8.508 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.161e-05/0.3787, allocations: 15.98 kB / 464.1 MB, free: 8.492 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.001591/0.3803, allocations: 0.8221 MB / 464.9 MB, free: 7.621 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.3803, allocations: 8.031 kB / 464.9 MB, free: 7.613 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001126/0.3804, allocations: 82.53 kB / 465 MB, free: 7.523 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.3806, allocations: 59.25 kB / 465 MB, free: 7.465 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004613/0.381, allocations: 338.7 kB / 465.4 MB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.158e-05/0.3811, allocations: 40.95 kB / 465.4 MB, free: 7.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.537e-05/0.3812, allocations: 47.84 kB / 465.4 MB, free: 7.008 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.3823, allocations: 0.5916 MB / 466 MB, free: 6.406 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.3823, allocations: 0 / 466 MB, free: 6.406 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.116e-05/0.3824, allocations: 20 kB / 466.1 MB, free: 6.387 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.223e-05/0.3824, allocations: 12 kB / 466.1 MB, free: 6.375 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001127/0.3835, allocations: 0.5543 MB / 466.6 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002438/0.386, allocations: 1.344 MB / 468 MB, free: 4.422 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009899/0.387, allocations: 480 kB / 468.4 MB, free: 3.949 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.63e-05/0.3871, allocations: 16.48 kB / 468.5 MB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.538e-05/0.3871, allocations: 35.12 kB / 468.5 MB, free: 3.891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 1.724e-06/0.3871, allocations: 4 kB / 468.5 MB, free: 3.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.006207/0.3933, allocations: 2.924 MB / 471.4 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.3934, allocations: 59.95 kB / 471.5 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002764/0.3936, allocations: 255.7 kB / 471.7 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.689e-05/0.3937, allocations: 49.69 kB / 471.8 MB, free: 448 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.3939, allocations: 181.4 kB / 471.9 MB, free: 264 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001929/0.3941, allocations: 236.8 kB / 472.2 MB, free: 24 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.233e-05/0.3941, allocations: 16 kB / 472.2 MB, free: 8 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.3943, allocations: 358.8 kB / 472.5 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005698/0.3949, allocations: 289.9 kB / 472.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000612/0.3955, allocations: 353.1 kB / 473.2 MB, free: 15.01 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004771/0.396, allocations: 231.1 kB / 473.4 MB, free: 14.78 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.396, allocations: 0 / 473.4 MB, free: 14.78 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001656/0.3977, allocations: 0.8496 MB / 474.2 MB, free: 13.92 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.3977, allocations: 4 kB / 474.3 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.32e-05/0.3977, allocations: 7.984 kB / 474.3 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.3989, allocations: 0.5733 MB / 474.8 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003913/0.3993, allocations: 103.9 kB / 474.9 MB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0014/0.4007, allocations: 0.9904 MB / 475.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007418/0.4015, allocations: 147.9 kB / 476.1 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.487e-05/0.4016, allocations: 27.98 kB / 476.1 MB, free: 12.05 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.0003783/0.4019, allocations: 188 kB / 476.3 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.4021, allocations: 47.44 kB / 476.3 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001907/0.404, allocations: 0.925 MB / 477.3 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.404, allocations: 8 kB / 477.3 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.404, allocations: 0 / 477.3 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.404, allocations: 7.984 kB / 477.3 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002591/0.4066, allocations: 1.481 MB / 478.7 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.4066, allocations: 0 / 478.7 MB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004185/0.4071, allocations: 95.88 kB / 478.8 MB, free: 9.211 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009832/0.4081, allocations: 0.5473 MB / 479.4 MB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.134e-05/0.4081, allocations: 31.97 kB / 479.4 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.4093, allocations: 0.9542 MB / 480.4 MB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/0.4094, allocations: 4 kB / 480.4 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.4116, allocations: 1.214 MB / 481.6 MB, free: 6.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002874/0.4119, allocations: 184.4 kB / 481.8 MB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.412, allocations: 23.98 kB / 481.8 MB, free: 6.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006005/0.4126, allocations: 139.9 kB / 481.9 MB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002804/0.4129, allocations: 156.2 kB / 482.1 MB, free: 5.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.788e-05/0.413, allocations: 27.97 kB / 482.1 MB, free: 5.871 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002335/0.4132, allocations: 219.2 kB / 482.3 MB, free: 5.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4132, allocations: 4 kB / 482.3 MB, free: 5.656 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000563/0.4138, allocations: 167.9 kB / 482.5 MB, free: 5.492 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.002614/0.4164, allocations: 1.786 MB / 484.3 MB, free: 3.676 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.418, allocations: 0.8046 MB / 485.1 MB, free: 2.848 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.418, allocations: 0 / 485.1 MB, free: 2.848 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007674/0.4188, allocations: 417.8 kB / 485.5 MB, free: 2.441 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005288/0.4193, allocations: 77.34 kB / 485.6 MB, free: 2.363 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005991/0.4253, allocations: 4.043 MB / 489.6 MB, free: 14.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.4258, allocations: 0.8559 MB / 490.5 MB, free: 13.38 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002064/0.426, allocations: 44.17 kB / 490.5 MB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002219/0.4262, allocations: 147.4 kB / 490.7 MB, free: 13.19 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.4262, allocations: 0 / 490.7 MB, free: 13.19 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2112/0.6374, allocations: 15.42 MB / 0.4942 GB, free: 112 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/0.6377, allocations: 212.1 kB / 0.4944 GB, free: 111.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.3/2.938, allocations: 1.219 kB / 0.4944 GB, free: 111.7 MB / 378.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