Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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.001528/0.001533, allocations: 182.5 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.159/2.159, allocations: 205.4 MB / 222.5 MB, free: 9.102 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.001752/0.001752, allocations: 87.59 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003905/0.0003907, allocations: 15.98 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.338, allocations: 47.56 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002699/0.3407, allocations: 1.786 MB / 376.4 MB, free: 44.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001544/0.3423, allocations: 0.6943 MB / 377.1 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.3425, allocations: 3.375 kB / 377.1 MB, free: 43.5 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001452/0.3427, allocations: 24.41 kB / 377.1 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002655/0.3429, allocations: 73.02 kB / 377.2 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.3433, allocations: 83.66 kB / 377.3 MB, free: 43.35 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003324/0.3437, allocations: 174 kB / 377.4 MB, free: 43.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001716/0.3438, allocations: 44.06 kB / 377.5 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002159/0.3441, allocations: 92.25 kB / 377.6 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002197/0.3443, allocations: 100.6 kB / 377.7 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.777e-05/0.3444, allocations: 10.19 kB / 377.7 MB, free: 43.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001743/0.3445, allocations: 61.05 kB / 377.8 MB, free: 43.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.246e-05/0.3446, allocations: 40.17 kB / 377.8 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.319e-05/0.3447, allocations: 61.08 kB / 377.8 MB, free: 43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002971/0.345, allocations: 191.4 kB / 378 MB, free: 42.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.345, allocations: 0 / 378 MB, free: 42.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.345, allocations: 0 / 378 MB, free: 42.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.345, allocations: 0.9375 kB / 378 MB, free: 42.87 MB / 298.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.0009873/0.346, allocations: 497.2 kB / 378.5 MB, free: 42.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.523e-05/0.3461, allocations: 10 kB / 378.5 MB, free: 42.4 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.148e-05/0.3462, allocations: 51.58 kB / 378.6 MB, free: 42.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.389e-05/0.3463, allocations: 24.53 kB / 378.6 MB, free: 42.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003252/0.3466, allocations: 234.9 kB / 378.8 MB, free: 42.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.645e-05/0.3467, allocations: 12.94 kB / 378.8 MB, free: 42.08 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.516e-05/0.3468, allocations: 21.28 kB / 378.9 MB, free: 42.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005795/0.3474, allocations: 223 kB / 379.1 MB, free: 41.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.471e-05/0.3474, allocations: 9.031 kB / 379.1 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.122e-05/0.3474, allocations: 6.281 kB / 379.1 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.3475, allocations: 4.5 kB / 379.1 MB, free: 41.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005473/0.348, allocations: 170.2 kB / 379.3 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.3496, allocations: 0.788 MB / 380.1 MB, free: 41.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005286/0.3502, allocations: 130.9 kB / 380.2 MB, free: 41.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.3502, allocations: 6.812 kB / 380.2 MB, free: 41.06 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.923e-05/0.3502, allocations: 30.56 kB / 380.2 MB, free: 41.02 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 3.366e-06/0.3502, allocations: 0 / 380.2 MB, free: 41.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.002824/0.3531, allocations: 1.015 MB / 381.2 MB, free: 40.21 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.958e-05/0.3532, allocations: 53.69 kB / 381.3 MB, free: 40.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.3534, allocations: 209.9 kB / 381.5 MB, free: 39.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.3535, allocations: 26.95 kB / 381.5 MB, free: 39.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.79e-05/0.3536, allocations: 205.7 kB / 381.7 MB, free: 39.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.521e-05/0.3537, allocations: 71.73 kB / 381.8 MB, free: 39.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.911e-05/0.3537, allocations: 5.156 kB / 381.8 MB, free: 39.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.855e-05/0.3538, allocations: 329.4 kB / 382.1 MB, free: 39.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.354, allocations: 78.58 kB / 382.2 MB, free: 39.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000275/0.3543, allocations: 117 kB / 382.3 MB, free: 39.26 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002524/0.3546, allocations: 79.45 kB / 382.4 MB, free: 39.22 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3546, allocations: 1.438 kB / 382.4 MB, free: 39.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007957/0.3554, allocations: 280.9 kB / 382.7 MB, free: 39.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.126e-05/0.3555, allocations: 5.344 kB / 382.7 MB, free: 39.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.667e-06/0.3555, allocations: 9.188 kB / 382.7 MB, free: 39.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003858/0.3559, allocations: 69.09 kB / 382.7 MB, free: 39.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002959/0.3562, allocations: 37.8 kB / 382.8 MB, free: 39.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005799/0.3568, allocations: 0.6246 MB / 383.4 MB, free: 38.44 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003679/0.3572, allocations: 31.36 kB / 383.4 MB, free: 38.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.911e-05/0.3572, allocations: 6.594 kB / 383.4 MB, free: 38.43 MB / 298.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): 25 * 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 prepare postOptimizeDAE: time 0.000169/0.3574, allocations: 140.7 kB / 383.6 MB, free: 38.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.948e-05/0.3575, allocations: 17.34 kB / 383.6 MB, free: 38.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.875e-05/0.3575, allocations: 21.31 kB / 383.6 MB, free: 38.26 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.3575, allocations: 6.406 kB / 383.6 MB, free: 38.26 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.3576, allocations: 5.016 kB / 383.6 MB, free: 38.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.3576, allocations: 3.984 kB / 383.6 MB, free: 38.25 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00124/0.3588, allocations: 0.606 MB / 384.2 MB, free: 37.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3589, allocations: 1.188 kB / 384.2 MB, free: 37.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003136/0.3592, allocations: 28.5 kB / 384.3 MB, free: 37.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002906/0.3595, allocations: 79.23 kB / 384.3 MB, free: 37.68 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.3595, allocations: 5.469 kB / 384.4 MB, free: 37.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005268/0.3601, allocations: 0.6226 MB / 385 MB, free: 37.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.3601, allocations: 1.406 kB / 385 MB, free: 37.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000934/0.361, allocations: 440.9 kB / 385.4 MB, free: 36.78 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001299/0.3612, allocations: 113.2 kB / 385.5 MB, free: 36.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.404e-05/0.3612, allocations: 7.25 kB / 385.5 MB, free: 36.65 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000319/0.3616, allocations: 28.81 kB / 385.6 MB, free: 36.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001101/0.3617, allocations: 26.11 kB / 385.6 MB, free: 36.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.457e-05/0.3617, allocations: 9.156 kB / 385.6 MB, free: 36.62 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001948/0.3619, allocations: 149.7 kB / 385.7 MB, free: 36.51 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3619, allocations: 0.9375 kB / 385.7 MB, free: 36.51 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000514/0.3625, allocations: 59.28 kB / 385.8 MB, free: 36.51 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (14): * Single equations (assignments): 13 * 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.001344/0.3638, allocations: 1.133 MB / 386.9 MB, free: 35.51 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007873/0.3646, allocations: 213.7 kB / 387.1 MB, free: 35.42 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3647, allocations: 0 / 387.1 MB, free: 35.42 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003729/0.365, allocations: 96.89 kB / 387.2 MB, free: 35.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004747/0.3655, allocations: 40.89 kB / 387.3 MB, free: 35.36 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003907/0.3695, allocations: 2.139 MB / 389.4 MB, free: 33.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002203/0.3697, allocations: 0.744 MB / 390.2 MB, free: 32.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000145/0.3699, allocations: 63.41 kB / 390.2 MB, free: 32.54 MB / 298.7 MB Notification: Performance of SimCode: time 1.163e-06/0.3699, allocations: 0 / 390.2 MB, free: 32.54 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.116/3.486, allocations: 4.265 MB / 394.5 MB, free: 28.28 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat does not exist to compare? outputFormat=mat