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.002083/0.002084, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.103/2.103, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 93.62 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.263e-05/2.254e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.3427, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1277/0.4705, allocations: 77.59 MB / 440 MB, free: 8.629 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.4708, allocations: 65 kB / 440.1 MB, free: 8.566 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01996/0.4908, allocations: 4.028 MB / 444.1 MB, free: 4.574 MB / 331.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4909, allocations: 4 kB / 444.1 MB, free: 4.57 MB / 331.1 MB Notification: Performance of Transformations before backend: time 2.116e-05/0.4909, allocations: 7.984 kB / 444.1 MB, free: 4.562 MB / 331.1 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.001282/0.4922, allocations: 0.5288 MB / 444.6 MB, free: 3.988 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.4923, allocations: 12.03 kB / 444.7 MB, free: 3.977 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000101/0.4924, allocations: 27.22 kB / 444.7 MB, free: 3.953 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003678/0.4928, allocations: 222.7 kB / 444.9 MB, free: 3.695 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.927e-05/0.4928, allocations: 11.95 kB / 444.9 MB, free: 3.684 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.564e-05/0.4929, allocations: 16.73 kB / 444.9 MB, free: 3.668 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004386/0.4933, allocations: 128 kB / 445.1 MB, free: 3.543 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004774/0.4938, allocations: 176.4 kB / 445.2 MB, free: 3.359 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.437e-05/0.4939, allocations: 3.906 kB / 445.2 MB, free: 3.355 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.4939, allocations: 7.984 kB / 445.2 MB, free: 3.348 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.4939, allocations: 4 kB / 445.2 MB, free: 3.344 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.4955, allocations: 0.6101 MB / 445.9 MB, free: 2.691 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000523/0.496, allocations: 161.2 kB / 446 MB, free: 2.527 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002518/0.4963, allocations: 73.52 kB / 446.1 MB, free: 2.453 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.011e-05/0.4964, allocations: 7.953 kB / 446.1 MB, free: 2.445 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003771/0.4968, allocations: 143.6 kB / 446.2 MB, free: 2.293 MB / 331.1 MB Notification: Performance of pre-optimization done (n=26): time 3.827e-06/0.4968, allocations: 8 kB / 446.2 MB, free: 2.285 MB / 331.1 MB Notification: Performance of matching and sorting (n=28): time 0.002304/0.4991, allocations: 0.8235 MB / 447.1 MB, free: 1.371 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.4992, allocations: 55.41 kB / 447.1 MB, free: 1.305 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002181/0.4994, allocations: 149.9 kB / 447.3 MB, free: 1.148 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.892e-05/0.4995, allocations: 29.7 kB / 447.3 MB, free: 1.113 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.4996, allocations: 190.9 kB / 447.5 MB, free: 0.9258 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.4998, allocations: 94.64 kB / 447.6 MB, free: 0.832 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.138e-05/0.4998, allocations: 0 / 447.6 MB, free: 0.832 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001466/0.4999, allocations: 326.8 kB / 447.9 MB, free: 0.5039 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002439/0.5002, allocations: 72.33 kB / 448 MB, free: 444 kB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002724/0.5005, allocations: 116.3 kB / 448.1 MB, free: 312 kB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002831/0.5008, allocations: 77.31 kB / 448.1 MB, free: 236 kB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.5008, allocations: 0 / 448.1 MB, free: 236 kB / 331.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001026/0.5018, allocations: 280.8 kB / 448.4 MB, free: 15.95 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.841e-05/0.5019, allocations: 37.69 kB / 448.5 MB, free: 15.9 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/0.502, allocations: 0 / 448.5 MB, free: 15.9 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003349/0.5023, allocations: 69.95 kB / 448.5 MB, free: 15.83 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004108/0.5027, allocations: 47.97 kB / 448.6 MB, free: 15.79 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007736/0.5035, allocations: 0.6154 MB / 449.2 MB, free: 15.14 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005654/0.5041, allocations: 44.05 kB / 449.2 MB, free: 15.1 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.254e-05/0.5042, allocations: 12 kB / 449.2 MB, free: 15.09 MB / 347.1 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.0002107/0.5044, allocations: 114.3 kB / 449.4 MB, free: 14.97 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006928/0.5051, allocations: 230.2 kB / 449.6 MB, free: 14.74 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.004e-05/0.5052, allocations: 19.77 kB / 449.6 MB, free: 14.72 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000771/0.506, allocations: 266.4 kB / 449.9 MB, free: 14.45 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.749e-06/0.506, allocations: 4 kB / 449.9 MB, free: 14.45 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.506, allocations: 0 / 449.9 MB, free: 14.45 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.506, allocations: 0 / 449.9 MB, free: 14.45 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/0.5075, allocations: 0.5914 MB / 450.5 MB, free: 13.8 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.5075, allocations: 4.906 kB / 450.5 MB, free: 13.8 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004463/0.508, allocations: 43.91 kB / 450.5 MB, free: 13.76 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002821/0.5083, allocations: 60.88 kB / 450.6 MB, free: 13.7 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/0.5083, allocations: 7.969 kB / 450.6 MB, free: 13.69 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007594/0.5091, allocations: 0.6153 MB / 451.2 MB, free: 13.05 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.5091, allocations: 1.016 kB / 451.2 MB, free: 13.05 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.5103, allocations: 451.8 kB / 451.6 MB, free: 12.58 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001888/0.5105, allocations: 113.3 kB / 451.7 MB, free: 12.45 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.527e-05/0.5106, allocations: 12.05 kB / 451.7 MB, free: 12.44 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004559/0.511, allocations: 35.91 kB / 451.8 MB, free: 12.4 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.5112, allocations: 40.83 kB / 451.8 MB, free: 12.36 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.897e-05/0.5113, allocations: 12.86 kB / 451.8 MB, free: 12.35 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001551/0.5114, allocations: 123.3 kB / 452 MB, free: 12.23 MB / 347.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.5114, allocations: 0 / 452 MB, free: 12.23 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005549/0.512, allocations: 67.94 kB / 452 MB, free: 12.16 MB / 347.1 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.001744/0.5138, allocations: 1.079 MB / 453.1 MB, free: 11.05 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0008971/0.5147, allocations: 297.8 kB / 453.4 MB, free: 10.74 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5148, allocations: 0 / 453.4 MB, free: 10.74 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004032/0.5152, allocations: 107.9 kB / 453.5 MB, free: 10.64 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005244/0.5157, allocations: 33.59 kB / 453.5 MB, free: 10.6 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/0.5176, allocations: 0.587 MB / 454.1 MB, free: 9.977 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004185/0.518, allocations: 0.7479 MB / 454.9 MB, free: 9.203 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.5182, allocations: 69.42 kB / 454.9 MB, free: 9.137 MB / 347.1 MB Notification: Performance of SimCode: time 1.132e-06/0.5182, allocations: 0 / 454.9 MB, free: 9.137 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.824/3.342, allocations: 4.595 MB / 459.5 MB, free: 4.586 MB / 347.1 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