Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_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.001018/0.001017, allocations: 172.9 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.361/1.361, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0009495/0.0009493, allocations: 86.66 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.036e-05/3.04e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09252/0.09257, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3303/0.4229, allocations: 78.14 MB / 448.3 MB, free: 15.13 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.4232, allocations: 72.95 kB / 448.3 MB, free: 15.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01141/0.4346, allocations: 3.955 MB / 452.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4347, allocations: 0 / 452.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.4347, allocations: 4 kB / 452.3 MB, free: 11.73 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0006643/0.4353, allocations: 489.4 kB / 452.8 MB, free: 11.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.4354, allocations: 12.03 kB / 452.8 MB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.372e-05/0.4355, allocations: 48.73 kB / 452.8 MB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.632e-05/0.4355, allocations: 23.72 kB / 452.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002725/0.4358, allocations: 229.3 kB / 453.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.298e-05/0.4359, allocations: 15 kB / 453.1 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.4359, allocations: 22.86 kB / 453.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003504/0.4363, allocations: 204.5 kB / 453.3 MB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.4363, allocations: 14.41 kB / 453.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.4363, allocations: 3.875 kB / 453.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.33e-05/0.4363, allocations: 4 kB / 453.3 MB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002536/0.4366, allocations: 152.2 kB / 453.5 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001182/0.4378, allocations: 0.7706 MB / 454.2 MB, free: 9.863 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000292/0.4381, allocations: 140.4 kB / 454.4 MB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001023/0.4382, allocations: 71.97 kB / 454.5 MB, free: 9.711 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.046e-05/0.4382, allocations: 4 kB / 454.5 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.4383, allocations: 34.91 kB / 454.5 MB, free: 9.664 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.462e-06/0.4383, allocations: 4 kB / 454.5 MB, free: 9.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.001332/0.4396, allocations: 0.8186 MB / 455.3 MB, free: 8.867 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.224e-05/0.4397, allocations: 55.41 kB / 455.4 MB, free: 8.801 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.4398, allocations: 172.3 kB / 455.5 MB, free: 8.648 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.32e-05/0.4399, allocations: 29.7 kB / 455.6 MB, free: 8.613 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.146e-05/0.44, allocations: 139 kB / 455.7 MB, free: 8.492 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.708e-05/0.44, allocations: 70.56 kB / 455.8 MB, free: 8.434 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.17e-05/0.4401, allocations: 11.44 kB / 455.8 MB, free: 8.426 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.4402, allocations: 330.6 kB / 456.1 MB, free: 8.102 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.4403, allocations: 71.45 kB / 456.2 MB, free: 8.055 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.4404, allocations: 110.2 kB / 456.3 MB, free: 7.961 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001142/0.4406, allocations: 72.8 kB / 456.4 MB, free: 7.914 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.4406, allocations: 0 / 456.4 MB, free: 7.914 MB / 330.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003829/0.441, allocations: 262.3 kB / 456.6 MB, free: 7.711 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.441, allocations: 4 kB / 456.6 MB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.441, allocations: 0 / 456.6 MB, free: 7.707 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002269/0.4412, allocations: 76.25 kB / 456.7 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001432/0.4414, allocations: 39.86 kB / 456.7 MB, free: 7.609 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000478/0.4419, allocations: 0.6092 MB / 457.3 MB, free: 7.012 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001814/0.4421, allocations: 31.97 kB / 457.4 MB, free: 6.984 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.397e-05/0.4421, allocations: 8 kB / 457.4 MB, free: 6.977 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: 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.0001008/0.4422, allocations: 119.9 kB / 457.5 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.512e-05/0.4423, allocations: 19.81 kB / 457.5 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004895/0.4428, allocations: 261.3 kB / 457.8 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.4428, allocations: 0 / 457.8 MB, free: 6.645 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.4428, allocations: 4 kB / 457.8 MB, free: 6.641 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4428, allocations: 3.984 kB / 457.8 MB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007531/0.4436, allocations: 0.5912 MB / 458.4 MB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.4436, allocations: 4.094 kB / 458.4 MB, free: 6.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001742/0.4438, allocations: 39.91 kB / 458.4 MB, free: 6.031 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001603/0.4439, allocations: 67.64 kB / 458.5 MB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.444, allocations: 7.938 kB / 458.5 MB, free: 5.973 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004521/0.4444, allocations: 0.5955 MB / 459.1 MB, free: 5.383 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4444, allocations: 4.062 kB / 459.1 MB, free: 5.379 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005635/0.445, allocations: 447.5 kB / 459.5 MB, free: 4.895 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.4451, allocations: 108.9 kB / 459.6 MB, free: 4.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.502e-05/0.4452, allocations: 11.94 kB / 459.6 MB, free: 4.758 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.4453, allocations: 23.98 kB / 459.7 MB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.4455, allocations: 27.95 kB / 459.7 MB, free: 4.707 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.4455, allocations: 11.98 kB / 459.7 MB, free: 4.695 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001285/0.4456, allocations: 143.4 kB / 459.8 MB, free: 4.555 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4456, allocations: 0 / 459.8 MB, free: 4.555 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003188/0.4459, allocations: 67.94 kB / 459.9 MB, free: 4.488 MB / 330.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) * 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.001001/0.447, allocations: 1.209 MB / 461.1 MB, free: 3.227 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004473/0.4474, allocations: 213.5 kB / 461.3 MB, free: 3.012 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.4474, allocations: 0 / 461.3 MB, free: 3.012 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002033/0.4476, allocations: 91.92 kB / 461.4 MB, free: 2.922 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000291/0.4479, allocations: 35.97 kB / 461.4 MB, free: 2.887 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.4492, allocations: 0.6361 MB / 462.1 MB, free: 2.203 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.4496, allocations: 0.7402 MB / 462.8 MB, free: 1.434 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.928e-05/0.4497, allocations: 22.06 kB / 462.8 MB, free: 1.414 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.662e-05/0.4498, allocations: 55.42 kB / 462.9 MB, free: 1.359 MB / 330.7 MB Notification: Performance of SimCode: time 3e-07/0.4498, allocations: 4 kB / 462.9 MB, free: 1.355 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01771/0.4676, allocations: 4.811 MB / 467.7 MB, free: 12.54 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002072/0.4678, allocations: 191 kB / 467.9 MB, free: 12.32 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.764/2.232, allocations: 3.938 kB / 467.9 MB, free: 12.31 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat does not exist to compare? outputFormat=mat