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.002247/0.002247, 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.364/2.364, 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.001054/0.001054, allocations: 95.98 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.616e-05/2.622e-05, allocations: 7.984 kB / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3414/0.3414, allocations: 47.55 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1293/0.4708, allocations: 77.49 MB / 439.9 MB, free: 8.734 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.4712, allocations: 71.95 kB / 440 MB, free: 8.664 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.01873/0.4899, allocations: 3.925 MB / 443.9 MB, free: 4.777 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.49, allocations: 0 / 443.9 MB, free: 4.777 MB / 331.1 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.49, allocations: 4 kB / 443.9 MB, free: 4.773 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0009747/0.491, allocations: 484.8 kB / 444.4 MB, free: 4.254 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.491, allocations: 13.67 kB / 444.4 MB, free: 4.242 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.683e-05/0.4911, allocations: 23.72 kB / 444.4 MB, free: 4.219 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003547/0.4915, allocations: 220.4 kB / 444.6 MB, free: 3.965 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/0.4915, allocations: 15.94 kB / 444.7 MB, free: 3.949 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.798e-05/0.4916, allocations: 19.98 kB / 444.7 MB, free: 3.93 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004391/0.4921, allocations: 128.8 kB / 444.8 MB, free: 3.805 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004684/0.4925, allocations: 184.8 kB / 445 MB, free: 3.609 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.4926, allocations: 0 / 445 MB, free: 3.609 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.4926, allocations: 0 / 445 MB, free: 3.609 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.4926, allocations: 8 kB / 445 MB, free: 3.602 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001757/0.4944, allocations: 0.729 MB / 445.7 MB, free: 2.812 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004693/0.4949, allocations: 132 kB / 445.8 MB, free: 2.676 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.4951, allocations: 60.86 kB / 445.9 MB, free: 2.613 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.346e-05/0.4952, allocations: 11.98 kB / 445.9 MB, free: 2.602 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.4952, allocations: 30.56 kB / 445.9 MB, free: 2.562 MB / 331.1 MB Notification: Performance of pre-optimization done (n=20): time 3.306e-06/0.4952, allocations: 0 / 445.9 MB, free: 2.562 MB / 331.1 MB Notification: Performance of matching and sorting (n=22): time 0.002158/0.4974, allocations: 0.7719 MB / 446.7 MB, free: 1.703 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.4975, allocations: 55.39 kB / 446.8 MB, free: 1.637 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002431/0.4977, allocations: 152.4 kB / 446.9 MB, free: 1.484 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.4978, allocations: 25.7 kB / 446.9 MB, free: 1.453 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001304/0.4979, allocations: 198.8 kB / 447.1 MB, free: 1.258 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.94e-05/0.498, allocations: 74.91 kB / 447.2 MB, free: 1.184 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.719e-05/0.4981, allocations: 0 / 447.2 MB, free: 1.184 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.4982, allocations: 318.8 kB / 447.5 MB, free: 0.8633 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.4984, allocations: 68.45 kB / 447.6 MB, free: 0.7969 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002286/0.4986, allocations: 99.64 kB / 447.7 MB, free: 0.6836 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002555/0.4989, allocations: 62.31 kB / 447.7 MB, free: 0.625 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.4989, allocations: 2.25 kB / 447.8 MB, free: 0.625 MB / 331.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006881/0.4996, allocations: 240.8 kB / 448 MB, free: 392 kB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.4997, allocations: 8.062 kB / 448 MB, free: 384 kB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.323e-05/0.4997, allocations: 4 kB / 448 MB, free: 380 kB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003451/0.5001, allocations: 62.44 kB / 448.1 MB, free: 316 kB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002884/0.5004, allocations: 47.91 kB / 448.1 MB, free: 268 kB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007888/0.5012, allocations: 0.6123 MB / 448.7 MB, free: 15.62 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003471/0.5015, allocations: 28.06 kB / 448.7 MB, free: 15.6 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.969e-05/0.5016, allocations: 8 kB / 448.8 MB, free: 15.59 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: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete 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.0002314/0.5018, allocations: 117.3 kB / 448.9 MB, free: 15.47 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007542/0.5026, allocations: 220.4 kB / 449.1 MB, free: 15.25 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.887e-05/0.5027, allocations: 15.81 kB / 449.1 MB, free: 15.23 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007884/0.5035, allocations: 225.1 kB / 449.3 MB, free: 15.01 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.5035, allocations: 4 kB / 449.3 MB, free: 15 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.5035, allocations: 3.953 kB / 449.3 MB, free: 15 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.804e-06/0.5035, allocations: 3.984 kB / 449.3 MB, free: 15 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001248/0.5048, allocations: 0.548 MB / 449.9 MB, free: 14.39 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.5048, allocations: 4 kB / 449.9 MB, free: 14.39 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003316/0.5052, allocations: 31.92 kB / 449.9 MB, free: 14.36 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002742/0.5055, allocations: 64.91 kB / 450 MB, free: 14.29 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.5055, allocations: 11.92 kB / 450 MB, free: 14.28 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007129/0.5062, allocations: 0.6098 MB / 450.6 MB, free: 13.65 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/0.5063, allocations: 7.969 kB / 450.6 MB, free: 13.64 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008957/0.5072, allocations: 427.2 kB / 451 MB, free: 13.18 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.5073, allocations: 107.5 kB / 451.1 MB, free: 13.06 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.993e-05/0.5074, allocations: 0 / 451.1 MB, free: 13.06 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003429/0.5078, allocations: 31.97 kB / 451.2 MB, free: 13.03 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.5079, allocations: 24.06 kB / 451.2 MB, free: 13 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.398e-05/0.5079, allocations: 15.98 kB / 451.2 MB, free: 12.99 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0001607/0.5081, allocations: 115.8 kB / 451.3 MB, free: 12.88 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5081, allocations: 0 / 451.3 MB, free: 12.88 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0005237/0.5086, allocations: 56 kB / 451.4 MB, free: 12.82 MB / 347.1 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) * 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.001542/0.5102, allocations: 1.185 MB / 452.5 MB, free: 11.58 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0006978/0.5109, allocations: 197.5 kB / 452.7 MB, free: 11.38 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.511, allocations: 4 kB / 452.7 MB, free: 11.38 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003282/0.5113, allocations: 79.92 kB / 452.8 MB, free: 11.3 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006154/0.5119, allocations: 45.86 kB / 452.9 MB, free: 11.26 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002367/0.5143, allocations: 0.628 MB / 453.5 MB, free: 10.59 MB / 347.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.5148, allocations: 0.7458 MB / 454.2 MB, free: 9.816 MB / 347.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001762/0.515, allocations: 59.41 kB / 454.3 MB, free: 9.758 MB / 347.1 MB Notification: Performance of SimCode: time 1.323e-06/0.515, allocations: 0 / 454.3 MB, free: 9.758 MB / 347.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.066/3.581, allocations: 4.194 MB / 458.5 MB, free: 5.605 MB / 347.1 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