Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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.001131/0.001131, allocations: 180.1 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.489/1.489, allocations: 223.2 MB / 240.3 MB, free: 10.15 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.0008567/0.0008565, allocations: 99.73 kB / 291.5 MB, free: 10.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002638/0.0002639, allocations: 8 kB / 351.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2572, allocations: 50.42 MB / 401.6 MB, free: 32.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09197/0.3492, allocations: 79.1 MB / 480.7 MB, free: 1.309 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.3495, allocations: 67.97 kB / 480.7 MB, free: 1.242 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0173/0.3668, allocations: 4.053 MB / 484.8 MB, free: 13.19 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.3668, allocations: 0 / 484.8 MB, free: 13.19 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.876e-05/0.3669, allocations: 4 kB / 484.8 MB, free: 13.19 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001032/0.3679, allocations: 0.4911 MB / 485.3 MB, free: 12.65 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.368, allocations: 16.03 kB / 485.3 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.946e-05/0.3681, allocations: 50.55 kB / 485.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.721e-05/0.3682, allocations: 27.72 kB / 485.4 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003517/0.3686, allocations: 222.7 kB / 485.6 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.341e-05/0.3686, allocations: 16.44 kB / 485.6 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.847e-05/0.3687, allocations: 16 kB / 485.6 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006293/0.3693, allocations: 219.1 kB / 485.9 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.912e-05/0.3694, allocations: 19.8 kB / 485.9 MB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.595e-05/0.3694, allocations: 8 kB / 485.9 MB, free: 12 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.3694, allocations: 4 kB / 485.9 MB, free: 12 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005866/0.37, allocations: 153 kB / 486 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001794/0.3719, allocations: 0.78 MB / 486.8 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005499/0.3724, allocations: 142.5 kB / 487 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.771e-05/0.3725, allocations: 7.938 kB / 487 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.3725, allocations: 42.5 kB / 487 MB, free: 10.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 2.435e-06/0.3725, allocations: 0 / 487 MB, free: 10.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.003052/0.3756, allocations: 1.046 MB / 488 MB, free: 9.641 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.414e-05/0.3757, allocations: 51.41 kB / 488.1 MB, free: 9.578 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002601/0.3759, allocations: 165.6 kB / 488.3 MB, free: 9.406 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.127e-05/0.376, allocations: 33.7 kB / 488.3 MB, free: 9.367 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.3762, allocations: 136.2 kB / 488.4 MB, free: 9.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001025/0.3763, allocations: 74.98 kB / 488.5 MB, free: 9.156 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.376e-05/0.3763, allocations: 12 kB / 488.5 MB, free: 9.145 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3765, allocations: 326.8 kB / 488.8 MB, free: 8.816 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.3768, allocations: 75.95 kB / 488.9 MB, free: 8.742 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003127/0.3771, allocations: 104.2 kB / 489 MB, free: 8.625 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002736/0.3774, allocations: 82.73 kB / 489.1 MB, free: 8.547 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.3774, allocations: 0 / 489.1 MB, free: 8.547 MB / 362.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008526/0.3783, allocations: 284.6 kB / 489.4 MB, free: 8.262 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.73e-05/0.3783, allocations: 8 kB / 489.4 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.771e-05/0.3783, allocations: 0 / 489.4 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003746/0.3787, allocations: 80.83 kB / 489.4 MB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002579/0.379, allocations: 39.92 kB / 489.5 MB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007227/0.3797, allocations: 0.607 MB / 490.1 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000347/0.3801, allocations: 36.06 kB / 490.1 MB, free: 7.465 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.909e-05/0.3802, allocations: 4 kB / 490.1 MB, free: 7.461 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002045/0.3804, allocations: 144.5 kB / 490.3 MB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.831e-05/0.3805, allocations: 19.81 kB / 490.3 MB, free: 7.293 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009689/0.3815, allocations: 273 kB / 490.6 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.3815, allocations: 0 / 490.6 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.3815, allocations: 0 / 490.6 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3815, allocations: 4 kB / 490.6 MB, free: 7.004 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001492/0.383, allocations: 0.6146 MB / 491.2 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3831, allocations: 0 / 491.2 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003201/0.3834, allocations: 31.98 kB / 491.2 MB, free: 6.289 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00029/0.3837, allocations: 60.81 kB / 491.3 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.965e-05/0.3837, allocations: 8.094 kB / 491.3 MB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006508/0.3844, allocations: 0.6108 MB / 491.9 MB, free: 5.582 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.875e-06/0.3844, allocations: 4.031 kB / 491.9 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.3856, allocations: 465.7 kB / 492.3 MB, free: 5.078 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.3857, allocations: 108.9 kB / 492.5 MB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.376e-05/0.3858, allocations: 19.95 kB / 492.5 MB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.3862, allocations: 23.97 kB / 492.5 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.3863, allocations: 31.86 kB / 492.5 MB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.93e-05/0.3864, allocations: 8 kB / 492.5 MB, free: 4.871 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002016/0.3866, allocations: 139.9 kB / 492.7 MB, free: 4.734 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.3866, allocations: 0 / 492.7 MB, free: 4.734 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006191/0.3872, allocations: 71.94 kB / 492.7 MB, free: 4.664 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001641/0.3889, allocations: 1.224 MB / 494 MB, free: 3.391 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000855/0.3897, allocations: 227 kB / 494.2 MB, free: 3.164 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3898, allocations: 0 / 494.2 MB, free: 3.164 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004546/0.3902, allocations: 111.8 kB / 494.3 MB, free: 3.055 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000493/0.3907, allocations: 27.92 kB / 494.3 MB, free: 3.027 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004761/0.3955, allocations: 2.092 MB / 496.4 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004505/0.396, allocations: 0.7443 MB / 497.2 MB, free: 96 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001575/0.3962, allocations: 17.94 kB / 497.2 MB, free: 80 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.3963, allocations: 55.42 kB / 497.2 MB, free: 24 kB / 362.7 MB Notification: Performance of SimCode: time 4.619e-06/0.3964, allocations: 0 / 497.2 MB, free: 24 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.4189, allocations: 4.869 MB / 0.4903 GB, free: 11.37 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001826/0.4191, allocations: 222.5 kB / 0.4905 GB, free: 11.13 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/2.101, allocations: 0 / 0.4905 GB, free: 11.13 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat does not exist to compare? outputFormat=mat