Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_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.001024/0.001024, allocations: 172.1 kB / 14.1 MB, free: 1.223 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.365/1.365, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007573/0.0007574, allocations: 86.66 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.527e-05/2.539e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09159/0.09163, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3059/0.3976, allocations: 78.24 MB / 448.3 MB, free: 15.07 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002058/0.3978, allocations: 70.16 kB / 448.4 MB, free: 15.04 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01186/0.4097, allocations: 4.071 MB / 452.5 MB, free: 11.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4097, allocations: 0 / 452.5 MB, free: 11.57 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.4098, allocations: 4 kB / 452.5 MB, free: 11.57 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.0008306/0.4106, allocations: 0.5323 MB / 453 MB, free: 11 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.4106, allocations: 8.031 kB / 453 MB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.235e-05/0.4107, allocations: 51.11 kB / 453.1 MB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.609e-05/0.4108, allocations: 27.72 kB / 453.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002786/0.4111, allocations: 219.2 kB / 453.3 MB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.4111, allocations: 18.64 kB / 453.3 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.603e-05/0.4112, allocations: 22.56 kB / 453.4 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003871/0.4116, allocations: 209.1 kB / 453.6 MB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.4116, allocations: 7.906 kB / 453.6 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.369e-05/0.4116, allocations: 6.875 kB / 453.6 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-06/0.4116, allocations: 4 kB / 453.6 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000254/0.4119, allocations: 142.7 kB / 453.7 MB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000961/0.4129, allocations: 0.6531 MB / 454.4 MB, free: 9.762 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003288/0.4132, allocations: 168.7 kB / 454.5 MB, free: 9.637 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001342/0.4134, allocations: 90.78 kB / 454.6 MB, free: 9.578 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.4134, allocations: 12.36 kB / 454.6 MB, free: 9.566 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002636/0.4137, allocations: 143.7 kB / 454.8 MB, free: 9.445 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 1.654e-06/0.4137, allocations: 7.938 kB / 454.8 MB, free: 9.438 MB / 330.7 MB Notification: Performance of matching and sorting (n=28): time 0.001358/0.415, allocations: 0.8695 MB / 455.7 MB, free: 8.609 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/0.4151, allocations: 59.09 kB / 455.7 MB, free: 8.543 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.4153, allocations: 153.1 kB / 455.9 MB, free: 8.398 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.626e-05/0.4153, allocations: 33.64 kB / 455.9 MB, free: 8.363 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.165e-05/0.4154, allocations: 135.4 kB / 456 MB, free: 8.246 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.105e-05/0.4155, allocations: 94.02 kB / 456.1 MB, free: 8.164 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.398e-05/0.4155, allocations: 3.938 kB / 456.1 MB, free: 8.164 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.4156, allocations: 334.3 kB / 456.5 MB, free: 7.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000137/0.4158, allocations: 86.95 kB / 456.5 MB, free: 7.785 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.4159, allocations: 122 kB / 456.7 MB, free: 7.684 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001755/0.4161, allocations: 114.3 kB / 456.8 MB, free: 7.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.4161, allocations: 0 / 456.8 MB, free: 7.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005718/0.4167, allocations: 343 kB / 457.1 MB, free: 7.316 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.83e-05/0.4167, allocations: 33.7 kB / 457.1 MB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.4168, allocations: 0 / 457.1 MB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002093/0.417, allocations: 60.08 kB / 457.2 MB, free: 7.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000208/0.4172, allocations: 55.7 kB / 457.3 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004763/0.4177, allocations: 0.6099 MB / 457.9 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.4179, allocations: 43.27 kB / 457.9 MB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-05/0.418, allocations: 15.98 kB / 457.9 MB, free: 6.527 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.0001125/0.4181, allocations: 124.5 kB / 458 MB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.368e-05/0.4181, allocations: 23.77 kB / 458.1 MB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000494/0.4186, allocations: 282.3 kB / 458.3 MB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.4187, allocations: 4 kB / 458.3 MB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.4187, allocations: 4 kB / 458.3 MB, free: 6.164 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.4187, allocations: 3.984 kB / 458.4 MB, free: 6.16 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009223/0.4196, allocations: 0.6423 MB / 459 MB, free: 5.473 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.4196, allocations: 0 / 459 MB, free: 5.473 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002234/0.4199, allocations: 47.97 kB / 459 MB, free: 5.426 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001471/0.42, allocations: 56.81 kB / 459.1 MB, free: 5.367 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.467e-05/0.42, allocations: 15.98 kB / 459.1 MB, free: 5.352 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004376/0.4205, allocations: 0.6031 MB / 459.7 MB, free: 4.723 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.4205, allocations: 3.984 kB / 459.7 MB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007044/0.4212, allocations: 471.1 kB / 460.2 MB, free: 4.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.4214, allocations: 108.9 kB / 460.3 MB, free: 4.105 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.363e-05/0.4214, allocations: 11.98 kB / 460.3 MB, free: 4.094 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002507/0.4217, allocations: 39.92 kB / 460.3 MB, free: 4.055 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.4218, allocations: 43.88 kB / 460.4 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.4218, allocations: 7.984 kB / 460.4 MB, free: 4.004 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001122/0.4219, allocations: 135.4 kB / 460.5 MB, free: 3.871 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4219, allocations: 0 / 460.5 MB, free: 3.871 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004675/0.4224, allocations: 79.94 kB / 460.6 MB, free: 3.793 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.001158/0.4236, allocations: 1.102 MB / 461.7 MB, free: 2.656 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006102/0.4242, allocations: 316.9 kB / 462 MB, free: 2.328 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4242, allocations: 0 / 462 MB, free: 2.328 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002717/0.4245, allocations: 128 kB / 462.1 MB, free: 2.203 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003242/0.4248, allocations: 36.42 kB / 462.2 MB, free: 2.164 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.426, allocations: 0.5656 MB / 462.7 MB, free: 1.559 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003112/0.4263, allocations: 0.7595 MB / 463.5 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.74e-05/0.4264, allocations: 18.08 kB / 463.5 MB, free: 0.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.4265, allocations: 59.42 kB / 463.6 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of SimCode: time 2.745e-06/0.4265, allocations: 0 / 463.6 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0184/0.4449, allocations: 5.341 MB / 468.9 MB, free: 11.36 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/0.4451, allocations: 192.1 kB / 469.1 MB, free: 11.12 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.235, allocations: 3.938 kB / 469.1 MB, free: 11.12 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat