Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_cpp_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.00256/0.00256, allocations: 181.2 kB / 13.66 MB, free: 1.664 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.363/2.363, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.00115/0.00115, allocations: 86.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.208e-05/4.235e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1132, allocations: 47.57 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4258/0.5391, allocations: 78.23 MB / 447.4 MB, free: 14.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002913/0.5394, allocations: 70.72 kB / 447.5 MB, free: 14.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02111/0.5606, allocations: 4.068 MB / 451.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.5606, allocations: 0 / 451.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.139e-05/0.5607, allocations: 4 kB / 451.6 MB, free: 11.09 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.001357/0.562, allocations: 0.5263 MB / 452.1 MB, free: 10.52 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.721e-05/0.5621, allocations: 8.031 kB / 452.1 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.333e-05/0.5622, allocations: 57.34 kB / 452.1 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.001e-05/0.5623, allocations: 23.72 kB / 452.2 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004042/0.5627, allocations: 224.7 kB / 452.4 MB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/0.5628, allocations: 18.77 kB / 452.4 MB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.292e-05/0.5629, allocations: 15.69 kB / 452.4 MB, free: 10.17 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005769/0.5634, allocations: 211.8 kB / 452.6 MB, free: 10 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.699e-05/0.5635, allocations: 7.891 kB / 452.6 MB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.437e-05/0.5635, allocations: 6.938 kB / 452.6 MB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.5635, allocations: 4 kB / 452.6 MB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004479/0.564, allocations: 144.9 kB / 452.8 MB, free: 9.891 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.5657, allocations: 0.6503 MB / 453.4 MB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005863/0.5663, allocations: 169.2 kB / 453.6 MB, free: 9.16 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002446/0.5666, allocations: 86.16 kB / 453.7 MB, free: 9.105 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.21e-05/0.5667, allocations: 4.438 kB / 453.7 MB, free: 9.102 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004182/0.5671, allocations: 158.7 kB / 453.8 MB, free: 8.965 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 3.867e-06/0.5671, allocations: 0 / 453.8 MB, free: 8.965 MB / 330.7 MB Notification: Performance of matching and sorting (n=28): time 0.002393/0.5695, allocations: 0.8729 MB / 454.7 MB, free: 8.137 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.627e-05/0.5696, allocations: 55.41 kB / 454.8 MB, free: 8.07 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002587/0.5699, allocations: 153.8 kB / 454.9 MB, free: 7.926 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.141e-05/0.57, allocations: 44.02 kB / 455 MB, free: 7.883 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.5701, allocations: 189.2 kB / 455.2 MB, free: 7.707 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.5703, allocations: 99.14 kB / 455.3 MB, free: 7.625 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.5703, allocations: 7.625 kB / 455.3 MB, free: 7.621 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.5705, allocations: 321.8 kB / 455.6 MB, free: 7.305 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002585/0.5707, allocations: 83.94 kB / 455.7 MB, free: 7.25 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003029/0.5711, allocations: 123.9 kB / 455.8 MB, free: 7.148 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002897/0.5714, allocations: 111.3 kB / 455.9 MB, free: 7.059 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.5714, allocations: 0 / 455.9 MB, free: 7.059 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001124/0.5725, allocations: 337.1 kB / 456.2 MB, free: 6.789 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.762e-05/0.5726, allocations: 33.7 kB / 456.2 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.773e-05/0.5726, allocations: 11.98 kB / 456.3 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003438/0.573, allocations: 60 kB / 456.3 MB, free: 6.695 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004377/0.5735, allocations: 51.91 kB / 456.4 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007802/0.5743, allocations: 0.6125 MB / 457 MB, free: 6.043 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005482/0.5748, allocations: 43.92 kB / 457 MB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.223e-05/0.5749, allocations: 11.88 kB / 457 MB, free: 5.996 MB / 330.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 () * 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.0001643/0.5751, allocations: 112.6 kB / 457.1 MB, free: 5.887 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.986e-05/0.5752, allocations: 27.83 kB / 457.2 MB, free: 5.859 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008445/0.576, allocations: 286 kB / 457.5 MB, free: 5.645 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.576, allocations: 4 kB / 457.5 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.5761, allocations: 0 / 457.5 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.5761, allocations: 0 / 457.5 MB, free: 5.641 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00158/0.5777, allocations: 0.6503 MB / 458.1 MB, free: 5.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.5777, allocations: 0 / 458.1 MB, free: 5.047 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004635/0.5782, allocations: 47.97 kB / 458.2 MB, free: 5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002819/0.5785, allocations: 56.2 kB / 458.2 MB, free: 4.957 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.365e-05/0.5786, allocations: 19.62 kB / 458.2 MB, free: 4.941 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006786/0.5792, allocations: 0.6015 MB / 458.8 MB, free: 4.348 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/0.5793, allocations: 4.031 kB / 458.8 MB, free: 4.344 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001212/0.5805, allocations: 462.9 kB / 459.3 MB, free: 3.965 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/0.5807, allocations: 116.5 kB / 459.4 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.076e-05/0.5808, allocations: 3.875 kB / 459.4 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004649/0.5813, allocations: 43.86 kB / 459.4 MB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.5815, allocations: 39.8 kB / 459.5 MB, free: 3.766 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.713e-05/0.5815, allocations: 11.81 kB / 459.5 MB, free: 3.758 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001758/0.5817, allocations: 130.7 kB / 459.6 MB, free: 3.645 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5817, allocations: 0 / 459.6 MB, free: 3.645 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005303/0.5822, allocations: 83.73 kB / 459.7 MB, free: 3.57 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.001799/0.5841, allocations: 1.113 MB / 460.8 MB, free: 2.527 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009423/0.5851, allocations: 310 kB / 461.1 MB, free: 2.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.5851, allocations: 0 / 461.1 MB, free: 2.27 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004142/0.5855, allocations: 126.3 kB / 461.2 MB, free: 2.18 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005263/0.5861, allocations: 36.89 kB / 461.3 MB, free: 2.148 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.5886, allocations: 0.6006 MB / 461.9 MB, free: 1.551 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006359/0.5893, allocations: 0.7479 MB / 462.6 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.5896, allocations: 62.88 kB / 462.7 MB, free: 0.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.643e-06/0.5896, allocations: 4 kB / 462.7 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.971/3.561, allocations: 4.601 MB / 467.3 MB, free: 12.18 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat