Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",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.001385/0.001385, 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.498/1.498, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008649/0.0008649, allocations: 94.64 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002582/0.0002582, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2471, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09245/0.3396, allocations: 78.33 MB / 454.2 MB, free: 2.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/0.3398, allocations: 71.95 kB / 454.3 MB, free: 2.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01173/0.3516, allocations: 4.086 MB / 458.4 MB, free: 14.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3516, allocations: 0 / 458.4 MB, free: 14.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.3516, allocations: 4 kB / 458.4 MB, free: 14.16 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.000899/0.3525, allocations: 0.5509 MB / 459 MB, free: 13.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.488e-05/0.3526, allocations: 8.031 kB / 459 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.325e-05/0.3527, allocations: 54.55 kB / 459 MB, free: 13.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.845e-05/0.3527, allocations: 23.72 kB / 459 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.353, allocations: 226.7 kB / 459.3 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.097e-05/0.353, allocations: 19.94 kB / 459.3 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.864e-05/0.3531, allocations: 23.91 kB / 459.3 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004882/0.3536, allocations: 239.1 kB / 459.5 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.3536, allocations: 0 / 459.5 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.314e-05/0.3537, allocations: 7.938 kB / 459.5 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.3537, allocations: 8 kB / 459.5 MB, free: 12.89 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00046/0.3541, allocations: 199.8 kB / 459.7 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009509/0.3551, allocations: 0.6448 MB / 460.4 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005178/0.3556, allocations: 224.1 kB / 460.6 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.3557, allocations: 8 kB / 460.6 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003732/0.3561, allocations: 180.2 kB / 460.8 MB, free: 11.58 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 1.724e-06/0.3561, allocations: 0 / 460.8 MB, free: 11.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.00238/0.3585, allocations: 1.234 MB / 462 MB, free: 10.23 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.088e-05/0.3585, allocations: 55.41 kB / 462.1 MB, free: 10.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000137/0.3587, allocations: 157.8 kB / 462.2 MB, free: 10 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.3587, allocations: 37.69 kB / 462.3 MB, free: 9.957 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.783e-05/0.3588, allocations: 128.4 kB / 462.4 MB, free: 9.828 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.007e-05/0.3589, allocations: 90.7 kB / 462.5 MB, free: 9.738 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.512e-05/0.3589, allocations: 4 kB / 462.5 MB, free: 9.734 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.359, allocations: 338.8 kB / 462.8 MB, free: 9.395 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002496/0.3592, allocations: 108.2 kB / 462.9 MB, free: 9.289 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002733/0.3595, allocations: 152 kB / 463.1 MB, free: 9.125 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002647/0.3598, allocations: 131.1 kB / 463.2 MB, free: 8.992 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3598, allocations: 7.891 kB / 463.2 MB, free: 8.984 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007866/0.3606, allocations: 405.8 kB / 463.6 MB, free: 8.574 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.034e-05/0.3607, allocations: 37.69 kB / 463.6 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.3607, allocations: 0 / 463.6 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002127/0.3609, allocations: 64.89 kB / 463.7 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.3611, allocations: 55.91 kB / 463.8 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004509/0.3616, allocations: 0.5953 MB / 464.4 MB, free: 7.789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.3618, allocations: 52.05 kB / 464.4 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.3619, allocations: 8 kB / 464.4 MB, free: 7.73 MB / 346.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: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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.000146/0.362, allocations: 141.7 kB / 464.6 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.822e-05/0.3621, allocations: 31.66 kB / 464.6 MB, free: 7.551 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006871/0.3628, allocations: 337.7 kB / 464.9 MB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.3628, allocations: 4 kB / 464.9 MB, free: 7.203 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.3628, allocations: 4 kB / 464.9 MB, free: 7.199 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3628, allocations: 0 / 464.9 MB, free: 7.199 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.3639, allocations: 0.6951 MB / 465.6 MB, free: 6.441 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.3639, allocations: 4 kB / 465.6 MB, free: 6.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002173/0.3642, allocations: 43.97 kB / 465.7 MB, free: 6.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001515/0.3643, allocations: 56.81 kB / 465.7 MB, free: 6.336 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.033e-05/0.3643, allocations: 12.03 kB / 465.7 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004067/0.3648, allocations: 0.616 MB / 466.3 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3648, allocations: 0 / 466.3 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009794/0.3658, allocations: 0.5433 MB / 466.9 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.3659, allocations: 112.9 kB / 467 MB, free: 4.984 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.73e-05/0.3659, allocations: 4 kB / 467 MB, free: 4.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000243/0.3662, allocations: 43.95 kB / 467 MB, free: 4.938 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.031e-05/0.3663, allocations: 39.89 kB / 467.1 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.3663, allocations: 12 kB / 467.1 MB, free: 4.887 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001008/0.3664, allocations: 131.5 kB / 467.2 MB, free: 4.758 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3664, allocations: 0 / 467.2 MB, free: 4.758 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00035/0.3668, allocations: 72 kB / 467.3 MB, free: 4.688 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001311/0.3681, allocations: 1.2 MB / 468.5 MB, free: 3.453 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007325/0.3688, allocations: 368.9 kB / 468.9 MB, free: 3.074 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3688, allocations: 0 / 468.9 MB, free: 3.074 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003494/0.3692, allocations: 159.9 kB / 469 MB, free: 2.918 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.3695, allocations: 28.17 kB / 469 MB, free: 2.887 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003014/0.3726, allocations: 2.188 MB / 471.2 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000293/0.3729, allocations: 0.7481 MB / 472 MB, free: 15.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001016/0.373, allocations: 17.94 kB / 472 MB, free: 15.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.3731, allocations: 71.41 kB / 472.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.3731, allocations: 0 / 472.1 MB, free: 15.78 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02075/0.3938, allocations: 5.351 MB / 477.4 MB, free: 10.46 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000235/0.3941, allocations: 214.3 kB / 477.6 MB, free: 10.21 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/2.106, allocations: 3.938 kB / 477.6 MB, free: 10.21 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat