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.001509/0.001509, allocations: 186.5 kB / 16.41 MB, free: 5.727 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.98/1.98, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001251/0.001251, allocations: 93.48 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004031/0.0004029, allocations: 8 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3418, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1256/0.4674, allocations: 78.25 MB / 452.9 MB, free: 2.418 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002825/0.4678, allocations: 71.97 kB / 453 MB, free: 2.348 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01898/0.4868, allocations: 3.973 MB / 456.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4868, allocations: 0 / 456.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.971e-05/0.4868, allocations: 7.938 kB / 456.9 MB, free: 14.37 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001052/0.4879, allocations: 498.9 kB / 457.4 MB, free: 13.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.488, allocations: 12.03 kB / 457.4 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.894e-05/0.4881, allocations: 54.55 kB / 457.5 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.307e-05/0.4882, allocations: 23.72 kB / 457.5 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003516/0.4885, allocations: 232.1 kB / 457.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.555e-05/0.4886, allocations: 16.44 kB / 457.8 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.756e-05/0.4887, allocations: 24 kB / 457.8 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006115/0.4893, allocations: 209.7 kB / 458 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.725e-05/0.4893, allocations: 7.906 kB / 458 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.166e-05/0.4894, allocations: 8 kB / 458 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.4894, allocations: 4 kB / 458 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005416/0.49, allocations: 165 kB / 458.2 MB, free: 13.03 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001816/0.4918, allocations: 0.7799 MB / 458.9 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005705/0.4924, allocations: 142.5 kB / 459.1 MB, free: 12.03 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.649e-05/0.4925, allocations: 4 kB / 459.1 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.4925, allocations: 38.56 kB / 459.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 3.456e-06/0.4925, allocations: 0 / 459.1 MB, free: 11.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.003146/0.4957, allocations: 1.044 MB / 460.2 MB, free: 10.83 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.122e-05/0.4958, allocations: 59.34 kB / 460.2 MB, free: 10.76 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002726/0.4961, allocations: 175.8 kB / 460.4 MB, free: 10.58 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.071e-05/0.4961, allocations: 29.7 kB / 460.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.4963, allocations: 202.7 kB / 460.6 MB, free: 10.35 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.877e-05/0.4964, allocations: 70.94 kB / 460.7 MB, free: 10.28 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.321e-05/0.4964, allocations: 4 kB / 460.7 MB, free: 10.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4966, allocations: 326.8 kB / 461 MB, free: 9.945 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.4969, allocations: 80.48 kB / 461.1 MB, free: 9.867 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003139/0.4972, allocations: 111.6 kB / 461.2 MB, free: 9.742 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002763/0.4975, allocations: 81.09 kB / 461.3 MB, free: 9.664 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4975, allocations: 0 / 461.3 MB, free: 9.664 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008469/0.4984, allocations: 276.7 kB / 461.5 MB, free: 9.387 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.4984, allocations: 4 kB / 461.6 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/0.4985, allocations: 0 / 461.6 MB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003705/0.4988, allocations: 68.88 kB / 461.6 MB, free: 9.312 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002901/0.4992, allocations: 39.92 kB / 461.7 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007452/0.4999, allocations: 0.6031 MB / 462.3 MB, free: 8.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003742/0.5003, allocations: 36.06 kB / 462.3 MB, free: 8.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.778e-05/0.5004, allocations: 12 kB / 462.3 MB, free: 8.598 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: 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.0002157/0.5006, allocations: 129.8 kB / 462.4 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.815e-05/0.5007, allocations: 27.66 kB / 462.5 MB, free: 8.434 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009815/0.5017, allocations: 273 kB / 462.7 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.5017, allocations: 4 kB / 462.7 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.5017, allocations: 0 / 462.7 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.5018, allocations: 48 / 462.7 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001462/0.5032, allocations: 0.6212 MB / 463.4 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.5033, allocations: 4 kB / 463.4 MB, free: 7.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003349/0.5036, allocations: 35.88 kB / 463.4 MB, free: 7.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002976/0.5039, allocations: 64.81 kB / 463.5 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.504, allocations: 4 kB / 463.5 MB, free: 7.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007217/0.5047, allocations: 0.6124 MB / 464.1 MB, free: 6.715 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.5047, allocations: 0 / 464.1 MB, free: 6.715 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.5059, allocations: 472.9 kB / 464.5 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001675/0.5061, allocations: 108.9 kB / 464.6 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.549e-05/0.5061, allocations: 4 kB / 464.6 MB, free: 6.078 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003335/0.5065, allocations: 31.97 kB / 464.7 MB, free: 6.047 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001132/0.5066, allocations: 27.95 kB / 464.7 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.5067, allocations: 8 kB / 464.7 MB, free: 6.012 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002082/0.5069, allocations: 147.4 kB / 464.9 MB, free: 5.867 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5069, allocations: 0 / 464.9 MB, free: 5.867 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000535/0.5074, allocations: 71.94 kB / 464.9 MB, free: 5.797 MB / 346.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.001705/0.5092, allocations: 1.22 MB / 466.1 MB, free: 4.527 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008408/0.51, allocations: 239.2 kB / 466.4 MB, free: 4.289 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.329e-06/0.5101, allocations: 0 / 466.4 MB, free: 4.289 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000411/0.5105, allocations: 99.89 kB / 466.5 MB, free: 4.191 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004749/0.511, allocations: 27.92 kB / 466.5 MB, free: 4.164 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004518/0.5155, allocations: 2.117 MB / 468.6 MB, free: 1.965 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004263/0.516, allocations: 0.752 MB / 469.4 MB, free: 1.188 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.5162, allocations: 59.42 kB / 469.4 MB, free: 1.129 MB / 346.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5162, allocations: 4 kB / 469.4 MB, free: 1.125 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.701/3.217, allocations: 4.278 MB / 473.7 MB, free: 12.85 MB / 362.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