Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 221.5 MB / 230.3 MB, free: 7.527 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008621/0.0008619, allocations: 94.02 kB / 281.2 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.703e-05/1.705e-05, allocations: 0 / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1195, allocations: 50.41 MB / 387.5 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3378/0.4573, allocations: 78.46 MB / 466 MB, free: 304 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001729/0.4576, allocations: 68.7 kB / 466.1 MB, free: 236 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01175/0.4693, allocations: 4.127 MB / 470.2 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4694, allocations: 4 kB / 470.2 MB, free: 12.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.4694, allocations: 4 kB / 470.2 MB, free: 12.11 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007544/0.4701, allocations: 0.5159 MB / 470.7 MB, free: 11.54 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.694e-05/0.4702, allocations: 8.031 kB / 470.7 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.98e-05/0.4702, allocations: 31.64 kB / 470.8 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002678/0.4705, allocations: 222.9 kB / 471 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.4706, allocations: 8 kB / 471 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.394e-05/0.4706, allocations: 12 kB / 471 MB, free: 11.22 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002523/0.4709, allocations: 135.9 kB / 471.1 MB, free: 11.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/0.4712, allocations: 187.2 kB / 471.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.278e-05/0.4712, allocations: 0 / 471.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.419e-05/0.4712, allocations: 4 kB / 471.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.4712, allocations: 4 kB / 471.3 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000912/0.4722, allocations: 0.6178 MB / 471.9 MB, free: 10.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.4725, allocations: 162.5 kB / 472.1 MB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.4726, allocations: 72.86 kB / 472.2 MB, free: 9.984 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.4726, allocations: 7.984 kB / 472.2 MB, free: 9.977 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.4729, allocations: 147 kB / 472.3 MB, free: 9.824 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.015e-06/0.4729, allocations: 0 / 472.3 MB, free: 9.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001401/0.4743, allocations: 0.8308 MB / 473.2 MB, free: 8.898 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.4744, allocations: 55.41 kB / 473.2 MB, free: 8.832 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.4745, allocations: 157.8 kB / 473.4 MB, free: 8.668 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.4746, allocations: 25.7 kB / 473.4 MB, free: 8.637 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.772e-05/0.4746, allocations: 128.5 kB / 473.5 MB, free: 8.508 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.213e-05/0.4747, allocations: 94.64 kB / 473.6 MB, free: 8.414 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.487e-05/0.4747, allocations: 4 kB / 473.6 MB, free: 8.41 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.4749, allocations: 334.8 kB / 473.9 MB, free: 8.074 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.475, allocations: 72.33 kB / 474 MB, free: 8.004 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.4752, allocations: 108.4 kB / 474.1 MB, free: 7.883 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001781/0.4753, allocations: 73.36 kB / 474.2 MB, free: 7.812 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4754, allocations: 4 kB / 474.2 MB, free: 7.809 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005472/0.4759, allocations: 296.3 kB / 474.5 MB, free: 7.512 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.079e-05/0.476, allocations: 29.7 kB / 474.5 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/0.476, allocations: 4 kB / 474.5 MB, free: 7.473 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001908/0.4762, allocations: 56.83 kB / 474.6 MB, free: 7.414 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.4764, allocations: 59.97 kB / 474.6 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000479/0.4769, allocations: 0.6109 MB / 475.2 MB, free: 6.719 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002497/0.4771, allocations: 39.92 kB / 475.3 MB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.272e-05/0.4772, allocations: 16.06 kB / 475.3 MB, free: 6.664 MB / 346.7 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.0001436/0.4773, allocations: 122.1 kB / 475.4 MB, free: 6.539 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003915/0.4777, allocations: 234.6 kB / 475.6 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.4778, allocations: 19.81 kB / 475.7 MB, free: 6.281 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004561/0.4782, allocations: 254.5 kB / 475.9 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.4783, allocations: 0 / 475.9 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4783, allocations: 11.89 kB / 475.9 MB, free: 6.008 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.4783, allocations: 3.984 kB / 475.9 MB, free: 6.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008385/0.4791, allocations: 0.5864 MB / 476.5 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.4791, allocations: 0 / 476.5 MB, free: 5.367 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002453/0.4794, allocations: 52 kB / 476.6 MB, free: 5.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001379/0.4795, allocations: 56.77 kB / 476.6 MB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.4796, allocations: 7.984 kB / 476.6 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004429/0.48, allocations: 0.6108 MB / 477.2 MB, free: 4.613 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.48, allocations: 4.031 kB / 477.2 MB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006097/0.4807, allocations: 458.8 kB / 477.7 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.4808, allocations: 112.8 kB / 477.8 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.176e-05/0.4808, allocations: 4 kB / 477.8 MB, free: 4 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002523/0.4811, allocations: 35.97 kB / 477.8 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.304e-05/0.4812, allocations: 35.92 kB / 477.9 MB, free: 3.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.4812, allocations: 12 kB / 477.9 MB, free: 3.918 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001083/0.4813, allocations: 115.3 kB / 478 MB, free: 3.805 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4813, allocations: 0 / 478 MB, free: 3.805 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003662/0.4817, allocations: 71.98 kB / 478.1 MB, free: 3.734 MB / 346.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.0009966/0.4827, allocations: 1.082 MB / 479.1 MB, free: 2.617 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005639/0.4833, allocations: 297 kB / 479.4 MB, free: 2.309 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4833, allocations: 0 / 479.4 MB, free: 2.309 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002315/0.4835, allocations: 119.8 kB / 479.6 MB, free: 2.191 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003316/0.4839, allocations: 29.3 kB / 479.6 MB, free: 2.16 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.485, allocations: 0.5628 MB / 480.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002984/0.4853, allocations: 0.7479 MB / 480.9 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.806e-05/0.4854, allocations: 18.08 kB / 480.9 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001045/0.4855, allocations: 67.34 kB / 481 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4855, allocations: 0 / 481 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02551/0.511, allocations: 4.851 MB / 485.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002376/0.5114, allocations: 147.9 kB / 486 MB, free: 11.69 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.858/2.369, allocations: 0 / 486 MB, free: 11.69 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat