Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007388/0.000739, allocations: 102 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009218/0.0009219, allocations: 193.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 227.3 MB / 246 MB, free: 11.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002492/0.0002493, allocations: 4 kB / 306.8 MB, free: 1.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1151, allocations: 51.5 MB / 358.3 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00271/0.1178, allocations: 1.948 MB / 360.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.1191, allocations: 0.7949 MB / 361 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.1192, allocations: 7.938 kB / 361.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002684/0.1195, allocations: 35.77 kB / 361.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002243/0.1197, allocations: 87.52 kB / 361.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000145/0.1198, allocations: 59.86 kB / 361.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002645/0.1201, allocations: 243.4 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.1203, allocations: 60.2 kB / 361.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.1205, allocations: 107.6 kB / 361.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001882/0.1207, allocations: 111.5 kB / 361.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.932e-05/0.1207, allocations: 12 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001321/0.1209, allocations: 59.98 kB / 361.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.853e-05/0.1209, allocations: 43.81 kB / 361.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.573e-05/0.121, allocations: 61.58 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002715/0.1213, allocations: 215.7 kB / 362.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.1213, allocations: 4 kB / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1213, allocations: 0 / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.161e-06/0.1213, allocations: 0 / 362.1 MB, free: 10.07 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007848/0.1221, allocations: 0.5055 MB / 362.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.1222, allocations: 15.97 kB / 362.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.635e-05/0.1223, allocations: 54.53 kB / 362.7 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.1224, allocations: 35.72 kB / 362.7 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003124/0.1228, allocations: 238.6 kB / 363 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.1228, allocations: 20.33 kB / 363 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.225e-05/0.1228, allocations: 23.91 kB / 363 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003553/0.1232, allocations: 222.3 kB / 363.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.599e-05/0.1232, allocations: 0 / 363.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.074e-05/0.1233, allocations: 8 kB / 363.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.635e-06/0.1233, allocations: 4 kB / 363.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002972/0.1236, allocations: 159.2 kB / 363.4 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.1246, allocations: 0.7781 MB / 364.2 MB, free: 7.848 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003411/0.125, allocations: 142.5 kB / 364.3 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.1251, allocations: 77.02 kB / 364.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.033e-05/0.1251, allocations: 0 / 364.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.1252, allocations: 38.5 kB / 364.4 MB, free: 7.574 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.072e-06/0.1252, allocations: 0 / 364.4 MB, free: 7.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001769/0.127, allocations: 1.015 MB / 365.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.615e-05/0.127, allocations: 63.33 kB / 365.5 MB, free: 6.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002242/0.1273, allocations: 219.7 kB / 365.7 MB, free: 6.152 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.472e-05/0.1273, allocations: 29.7 kB / 365.8 MB, free: 6.117 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.148e-05/0.1274, allocations: 140.2 kB / 365.9 MB, free: 5.977 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.702e-05/0.1275, allocations: 74.92 kB / 366 MB, free: 5.902 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.165e-05/0.1275, allocations: 4 kB / 366 MB, free: 5.898 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1276, allocations: 330.8 kB / 366.3 MB, free: 5.566 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001423/0.1278, allocations: 71.97 kB / 366.4 MB, free: 5.496 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.1279, allocations: 107.4 kB / 366.5 MB, free: 5.379 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001444/0.1281, allocations: 69.08 kB / 366.5 MB, free: 5.312 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.1281, allocations: 3.938 kB / 366.5 MB, free: 5.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004394/0.1285, allocations: 266.8 kB / 366.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.1286, allocations: 8 kB / 366.8 MB, free: 5.031 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.1286, allocations: 3.953 kB / 366.8 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002089/0.1288, allocations: 56.83 kB / 366.9 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.129, allocations: 43.84 kB / 366.9 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00171/0.1307, allocations: 1.655 MB / 368.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.1309, allocations: 27.98 kB / 368.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.358e-05/0.1309, allocations: 11.98 kB / 368.6 MB, free: 3.102 MB / 302.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * 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 prepare postOptimizeDAE: time 0.0001266/0.131, allocations: 145.8 kB / 368.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.405e-05/0.1311, allocations: 23.72 kB / 368.8 MB, free: 2.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.988e-05/0.1311, allocations: 25.88 kB / 368.8 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1311, allocations: 0 / 368.8 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.1311, allocations: 0 / 368.8 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1312, allocations: 3.984 kB / 368.8 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008082/0.132, allocations: 0.612 MB / 369.4 MB, free: 2.227 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.132, allocations: 7.938 kB / 369.4 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.1322, allocations: 31.98 kB / 369.4 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001322/0.1323, allocations: 52.83 kB / 369.5 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.694e-05/0.1323, allocations: 8.062 kB / 369.5 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001332/0.1337, allocations: 1.555 MB / 371.1 MB, free: 448 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1337, allocations: 7.984 kB / 371.1 MB, free: 440 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2411/0.3748, allocations: 425.5 kB / 371.5 MB, free: 19.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002033/0.375, allocations: 111.8 kB / 371.6 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.345e-05/0.3751, allocations: 5.125 kB / 371.6 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.3753, allocations: 28.56 kB / 371.6 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/0.3756, allocations: 71.06 kB / 371.7 MB, free: 19.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-05/0.3756, allocations: 7.625 kB / 371.7 MB, free: 19.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002089/0.3758, allocations: 157.1 kB / 371.9 MB, free: 19.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.92e-07/0.3758, allocations: 0 / 371.9 MB, free: 19.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005476/0.3764, allocations: 75.53 kB / 371.9 MB, free: 19.14 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Number of clocked states: 0 () * 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.001887/0.3783, allocations: 1.207 MB / 373.1 MB, free: 18.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007756/0.3791, allocations: 317 kB / 373.4 MB, free: 18.31 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3791, allocations: 1.625 kB / 373.4 MB, free: 18.31 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003515/0.3794, allocations: 229.9 kB / 373.7 MB, free: 18.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004528/0.3799, allocations: 39.11 kB / 373.7 MB, free: 18.19 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002861/0.3828, allocations: 1.668 MB / 375.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000229/0.383, allocations: 0.7506 MB / 376.1 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.3831, allocations: 22.16 kB / 376.1 MB, free: 16.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.3833, allocations: 64.94 kB / 376.2 MB, free: 16.75 MB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3833, allocations: 0.5938 kB / 376.2 MB, free: 16.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01989/0.4032, allocations: 5.63 MB / 381.8 MB, free: 16.25 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001702/0.4034, allocations: 268.6 kB / 382.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.897/2.3, allocations: 1.125 kB / 382.1 MB, free: 15.89 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat does not exist to compare? outputFormat=mat