Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001097/0.001098, allocations: 90 kB / 16.3 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 185.6 kB / 17.2 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.395/1.395, allocations: 223.2 MB / 241.1 MB, free: 392 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000279/0.0002792, allocations: 8 kB / 300.8 MB, free: 6.371 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1048, allocations: 50.41 MB / 351.2 MB, free: 3.953 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002433/0.1072, allocations: 1.783 MB / 353 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001275/0.1085, allocations: 0.6589 MB / 353.7 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001851/0.1088, allocations: 7.938 kB / 353.7 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.1089, allocations: 23.78 kB / 353.7 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002749/0.1092, allocations: 83.77 kB / 353.8 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003107/0.1095, allocations: 67.86 kB / 353.8 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003215/0.1098, allocations: 176 kB / 354 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.11, allocations: 52.2 kB / 354.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001846/0.1102, allocations: 95.62 kB / 354.2 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002135/0.1104, allocations: 103.6 kB / 354.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.96e-05/0.1105, allocations: 8 kB / 354.3 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.1106, allocations: 51.95 kB / 354.3 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.882e-05/0.1107, allocations: 35.84 kB / 354.4 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.917e-05/0.1108, allocations: 65.58 kB / 354.4 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.111, allocations: 191.7 kB / 354.6 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.111, allocations: 0 / 354.6 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.111, allocations: 0 / 354.6 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.273e-05/0.111, allocations: 0 / 354.6 MB, free: 0.5352 MB / 286.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.0008123/0.1119, allocations: 495 kB / 355.1 MB, free: 4 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.425e-05/0.1119, allocations: 8.078 kB / 355.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.012e-05/0.112, allocations: 62.44 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.811e-05/0.1121, allocations: 23.75 kB / 355.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002682/0.1124, allocations: 222.7 kB / 355.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.1124, allocations: 16.44 kB / 355.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.946e-05/0.1124, allocations: 19.98 kB / 355.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003966/0.1128, allocations: 225.7 kB / 355.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.1129, allocations: 4 kB / 355.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.1129, allocations: 4 kB / 355.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.1129, allocations: 7.953 kB / 355.7 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000325/0.1132, allocations: 169 kB / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.1145, allocations: 0.772 MB / 356.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004117/0.115, allocations: 138.4 kB / 356.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.115, allocations: 8.297 kB / 356.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.115, allocations: 38.56 kB / 356.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.934e-06/0.115, allocations: 0 / 356.8 MB, free: 14.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.001893/0.1169, allocations: 1.017 MB / 357.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.117, allocations: 51.41 kB / 357.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002051/0.1172, allocations: 206.6 kB / 358.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.1172, allocations: 25.7 kB / 358.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.148e-05/0.1173, allocations: 152.1 kB / 358.2 MB, free: 12.58 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.59e-05/0.1174, allocations: 67.09 kB / 358.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.251e-05/0.1174, allocations: 7.938 kB / 358.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.1175, allocations: 330.8 kB / 358.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.1177, allocations: 79.95 kB / 358.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.1179, allocations: 116.1 kB / 358.8 MB, free: 11.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000193/0.1181, allocations: 86.08 kB / 358.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1181, allocations: 0 / 358.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005051/0.1186, allocations: 292.7 kB / 359.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.1186, allocations: 8.062 kB / 359.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/0.1187, allocations: 4 kB / 359.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002962/0.119, allocations: 72.77 kB / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.1191, allocations: 39.92 kB / 359.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005316/0.1197, allocations: 0.6147 MB / 359.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002014/0.1199, allocations: 36.06 kB / 360 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.802e-05/0.1199, allocations: 7.938 kB / 360 MB, free: 10.78 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 (26): * Single equations (assignments): 25 * 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.0001544/0.1201, allocations: 133.8 kB / 360.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.894e-05/0.1201, allocations: 19.77 kB / 360.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.579e-05/0.1202, allocations: 29.86 kB / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1202, allocations: 7.938 kB / 360.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.1202, allocations: 4 kB / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1202, allocations: 0 / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009409/0.1212, allocations: 0.6007 MB / 360.8 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.1212, allocations: 3.984 kB / 360.8 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001582/0.1214, allocations: 31.92 kB / 360.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001805/0.1215, allocations: 64.81 kB / 360.9 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.236e-05/0.1216, allocations: 11.95 kB / 360.9 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004904/0.1221, allocations: 0.6148 MB / 361.5 MB, free: 9.164 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.1221, allocations: 7.922 kB / 361.5 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006492/0.1227, allocations: 441.1 kB / 361.9 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.1229, allocations: 108.9 kB / 362 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.289e-05/0.1229, allocations: 8 kB / 362 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.1231, allocations: 27.94 kB / 362.1 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.085e-05/0.1232, allocations: 28.09 kB / 362.1 MB, free: 8.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.608e-05/0.1232, allocations: 11.98 kB / 362.1 MB, free: 8.488 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001359/0.1234, allocations: 143.2 kB / 362.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1234, allocations: 0 / 362.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003403/0.1237, allocations: 64 kB / 362.3 MB, free: 8.285 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 (14): * Single equations (assignments): 13 * 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.001013/0.1248, allocations: 1.137 MB / 363.4 MB, free: 7.102 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004938/0.1253, allocations: 210.3 kB / 363.7 MB, free: 6.898 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.1253, allocations: 0 / 363.7 MB, free: 6.898 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.1255, allocations: 99.88 kB / 363.7 MB, free: 6.801 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/0.1258, allocations: 43.64 kB / 363.8 MB, free: 6.762 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003113/0.129, allocations: 2.098 MB / 365.9 MB, free: 4.598 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.1293, allocations: 0.7482 MB / 366.6 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.954e-05/0.1294, allocations: 17.94 kB / 366.7 MB, free: 3.801 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.333e-05/0.1295, allocations: 59.42 kB / 366.7 MB, free: 3.742 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1295, allocations: 0 / 366.7 MB, free: 3.742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2076/0.3371, allocations: 4.902 MB / 371.6 MB, free: 24.52 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/0.3373, allocations: 222.8 kB / 371.8 MB, free: 24.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.816/2.153, allocations: 0 / 371.8 MB, free: 24.28 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat does not exist to compare? outputFormat=mat