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.0009964/0.0009964, 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.79/1.79, 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.0009339/0.000934, allocations: 86.7 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.845e-05/1.819e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1189, allocations: 47.59 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4829/0.6018, allocations: 77.83 MB / 441 MB, free: 1.562 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002618/0.6021, allocations: 64.53 kB / 441.1 MB, free: 1.531 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01292/0.6151, allocations: 4.038 MB / 445.1 MB, free: 14.15 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.6152, allocations: 4 kB / 445.1 MB, free: 14.14 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.269e-05/0.6152, allocations: 4 kB / 445.1 MB, free: 14.14 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001023/0.6162, allocations: 0.5246 MB / 445.6 MB, free: 13.58 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.757e-05/0.6163, allocations: 12.03 kB / 445.6 MB, free: 13.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.52e-05/0.6164, allocations: 23.72 kB / 445.7 MB, free: 13.54 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003738/0.6168, allocations: 225.6 kB / 445.9 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.83e-05/0.6168, allocations: 15.89 kB / 445.9 MB, free: 13.28 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.488e-05/0.6169, allocations: 12.75 kB / 445.9 MB, free: 13.27 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003431/0.6172, allocations: 127 kB / 446 MB, free: 13.19 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003464/0.6176, allocations: 175.1 kB / 446.2 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.279e-05/0.6176, allocations: 15.27 kB / 446.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.457e-05/0.6176, allocations: 0 / 446.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.6177, allocations: 4 kB / 446.2 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.6187, allocations: 0.6095 MB / 446.8 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003398/0.6191, allocations: 164.2 kB / 447 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001233/0.6192, allocations: 72.61 kB / 447.1 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.263e-05/0.6193, allocations: 7.953 kB / 447.1 MB, free: 12.29 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003226/0.6196, allocations: 135.3 kB / 447.2 MB, free: 12.17 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 2.073e-06/0.6196, allocations: 8 kB / 447.2 MB, free: 12.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=28): time 0.001648/0.6213, allocations: 0.8317 MB / 448 MB, free: 11.35 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.6214, allocations: 59.39 kB / 448.1 MB, free: 11.28 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.6215, allocations: 147.4 kB / 448.2 MB, free: 11.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.6215, allocations: 29.7 kB / 448.3 MB, free: 11.11 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.626e-05/0.6216, allocations: 133.4 kB / 448.4 MB, free: 10.99 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.366e-05/0.6217, allocations: 89.66 kB / 448.5 MB, free: 10.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.515e-05/0.6217, allocations: 0 / 448.5 MB, free: 10.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.6219, allocations: 332.7 kB / 448.8 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.622, allocations: 74.77 kB / 448.9 MB, free: 10.55 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001532/0.6222, allocations: 116.9 kB / 449 MB, free: 10.45 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.6224, allocations: 74.61 kB / 449.1 MB, free: 10.4 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.6224, allocations: 0 / 449.1 MB, free: 10.4 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000621/0.623, allocations: 294.7 kB / 449.4 MB, free: 10.17 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.097e-05/0.623, allocations: 33.7 kB / 449.4 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.6231, allocations: 0 / 449.4 MB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002317/0.6233, allocations: 64.55 kB / 449.5 MB, free: 10.08 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002148/0.6235, allocations: 54.66 kB / 449.5 MB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005667/0.6241, allocations: 0.6187 MB / 450.1 MB, free: 9.426 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000263/0.6244, allocations: 46.94 kB / 450.2 MB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.498e-05/0.6244, allocations: 8 kB / 450.2 MB, free: 9.375 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real 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 () * 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.000163/0.6246, allocations: 120 kB / 450.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003931/0.625, allocations: 236.1 kB / 450.5 MB, free: 9.062 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.995e-05/0.625, allocations: 19.77 kB / 450.6 MB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004974/0.6255, allocations: 254 kB / 450.8 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.6256, allocations: 4 kB / 450.8 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.6256, allocations: 0 / 450.8 MB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.922e-06/0.6256, allocations: 3.984 kB / 450.8 MB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009029/0.6265, allocations: 0.5912 MB / 451.4 MB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.6265, allocations: 0 / 451.4 MB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/0.6267, allocations: 43.91 kB / 451.4 MB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001551/0.6269, allocations: 62.92 kB / 451.5 MB, free: 8.207 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.334e-05/0.627, allocations: 7.297 kB / 451.5 MB, free: 8.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005419/0.6275, allocations: 0.6131 MB / 452.1 MB, free: 7.602 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.6275, allocations: 3.984 kB / 452.1 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006932/0.6282, allocations: 451.8 kB / 452.6 MB, free: 7.223 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.6283, allocations: 112.3 kB / 452.7 MB, free: 7.102 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.515e-05/0.6284, allocations: 15.81 kB / 452.7 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002583/0.6287, allocations: 31.97 kB / 452.7 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.6288, allocations: 39.5 kB / 452.8 MB, free: 7.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.6288, allocations: 8 kB / 452.8 MB, free: 7.016 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001133/0.6289, allocations: 121.5 kB / 452.9 MB, free: 6.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6289, allocations: 0 / 452.9 MB, free: 6.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004354/0.6294, allocations: 75.17 kB / 453 MB, free: 6.84 MB / 330.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) * 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.001162/0.6306, allocations: 1.076 MB / 454 MB, free: 5.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005373/0.6311, allocations: 290.1 kB / 454.3 MB, free: 5.582 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.6311, allocations: 0 / 454.3 MB, free: 5.582 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000243/0.6314, allocations: 121.2 kB / 454.4 MB, free: 5.496 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.6317, allocations: 35.25 kB / 454.5 MB, free: 5.465 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001255/0.633, allocations: 0.5531 MB / 455 MB, free: 4.906 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005154/0.6335, allocations: 0.7518 MB / 455.8 MB, free: 4.129 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.6337, allocations: 18.06 kB / 455.8 MB, free: 4.113 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.6338, allocations: 69.66 kB / 455.9 MB, free: 4.082 MB / 330.7 MB Notification: Performance of SimCode: time 2.515e-06/0.6338, allocations: 0 / 455.9 MB, free: 4.082 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03507/0.6689, allocations: 4.842 MB / 460.7 MB, free: 15.24 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003622/0.6693, allocations: 139.1 kB / 460.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.03/2.699, allocations: 3.938 kB / 460.9 MB, free: 15.05 MB / 346.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