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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 95.02 kB / 16.3 MB, free: 6.457 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.001194/0.001194, allocations: 182.1 kB / 17.2 MB, free: 6.34 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.415/1.415, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002926/0.0002928, allocations: 6.125 kB / 300.8 MB, free: 6.074 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1034, allocations: 50.41 MB / 351.2 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002297/0.1057, allocations: 1.754 MB / 353 MB, free: 9.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.1068, allocations: 0.6706 MB / 353.6 MB, free: 9.168 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.966e-05/0.1069, allocations: 7.938 kB / 353.6 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.107, allocations: 19.84 kB / 353.7 MB, free: 9.141 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001976/0.1072, allocations: 75.77 kB / 353.7 MB, free: 9.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002713/0.1075, allocations: 79.84 kB / 353.8 MB, free: 8.988 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002512/0.1078, allocations: 180.1 kB / 354 MB, free: 8.812 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.1079, allocations: 48.48 kB / 354 MB, free: 8.758 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.1081, allocations: 95.62 kB / 354.1 MB, free: 8.664 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001688/0.1083, allocations: 111.6 kB / 354.2 MB, free: 8.555 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.1083, allocations: 12 kB / 354.3 MB, free: 8.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.1084, allocations: 47.97 kB / 354.3 MB, free: 8.496 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.216e-05/0.1085, allocations: 43.81 kB / 354.3 MB, free: 8.453 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.259e-05/0.1086, allocations: 61.64 kB / 354.4 MB, free: 8.387 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002327/0.1088, allocations: 187.5 kB / 354.6 MB, free: 8.203 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.1088, allocations: 0 / 354.6 MB, free: 8.203 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.1088, allocations: 4 kB / 354.6 MB, free: 8.199 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.1088, allocations: 0 / 354.6 MB, free: 8.199 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0009132/0.1098, allocations: 0.5353 MB / 355.1 MB, free: 7.609 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.1098, allocations: 11.97 kB / 355.1 MB, free: 7.598 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.132e-05/0.1099, allocations: 50.55 kB / 355.2 MB, free: 7.539 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.797e-05/0.1099, allocations: 27.67 kB / 355.2 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002577/0.1102, allocations: 238.7 kB / 355.5 MB, free: 7.238 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.1102, allocations: 15.95 kB / 355.5 MB, free: 7.223 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.1103, allocations: 20 kB / 355.5 MB, free: 7.203 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000455/0.1107, allocations: 247.1 kB / 355.7 MB, free: 6.949 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.1108, allocations: 4 kB / 355.7 MB, free: 6.945 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.392e-05/0.1108, allocations: 4 kB / 355.7 MB, free: 6.941 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.1108, allocations: 7.953 kB / 355.7 MB, free: 6.934 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004703/0.1113, allocations: 211.8 kB / 355.9 MB, free: 6.727 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.1123, allocations: 0.6798 MB / 356.6 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005357/0.1129, allocations: 210.5 kB / 356.8 MB, free: 5.777 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.935e-05/0.1129, allocations: 0 / 356.8 MB, free: 5.777 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003861/0.1133, allocations: 182.6 kB / 357 MB, free: 5.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.1133, allocations: 0 / 357 MB, free: 5.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002318/0.1156, allocations: 1.211 MB / 358.2 MB, free: 4.266 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.794e-05/0.1157, allocations: 55.41 kB / 358.3 MB, free: 4.199 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000186/0.1159, allocations: 187.1 kB / 358.5 MB, free: 4.004 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.004e-05/0.1159, allocations: 37.7 kB / 358.5 MB, free: 3.961 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.468e-05/0.116, allocations: 136.3 kB / 358.6 MB, free: 3.824 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.447e-05/0.1161, allocations: 86.8 kB / 358.7 MB, free: 3.738 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.569e-05/0.1161, allocations: 4 kB / 358.7 MB, free: 3.734 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.1162, allocations: 330.8 kB / 359 MB, free: 3.402 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/0.1165, allocations: 120.2 kB / 359.2 MB, free: 3.281 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002693/0.1168, allocations: 152.2 kB / 359.3 MB, free: 3.121 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002611/0.117, allocations: 135.1 kB / 359.4 MB, free: 2.984 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.117, allocations: 0 / 359.4 MB, free: 2.984 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007832/0.1178, allocations: 414.2 kB / 359.8 MB, free: 2.566 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.022e-05/0.1179, allocations: 29.7 kB / 359.9 MB, free: 2.531 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.1179, allocations: 4 kB / 359.9 MB, free: 2.527 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002235/0.1181, allocations: 72.8 kB / 359.9 MB, free: 2.453 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002181/0.1183, allocations: 59.94 kB / 360 MB, free: 2.395 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004699/0.1188, allocations: 0.6109 MB / 360.6 MB, free: 1.758 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.1191, allocations: 47.95 kB / 360.7 MB, free: 1.711 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.609e-05/0.1191, allocations: 16 kB / 360.7 MB, free: 1.695 MB / 286.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: 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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.0001384/0.1193, allocations: 134.1 kB / 360.8 MB, free: 1.555 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.061e-05/0.1193, allocations: 19.81 kB / 360.8 MB, free: 1.535 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.667e-05/0.1194, allocations: 25.86 kB / 360.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.1194, allocations: 7.938 kB / 360.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.1194, allocations: 11.83 kB / 360.9 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.1194, allocations: 0 / 360.9 MB, free: 1.492 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.1205, allocations: 0.6984 MB / 361.6 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1205, allocations: 8 kB / 361.6 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.1207, allocations: 43.97 kB / 361.6 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001627/0.1209, allocations: 68.75 kB / 361.7 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.1209, allocations: 8 kB / 361.7 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004458/0.1213, allocations: 0.6147 MB / 362.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.1214, allocations: 0 / 362.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000949/0.1223, allocations: 0.5195 MB / 362.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.745e-05/0.1224, allocations: 116.9 kB / 362.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.074e-05/0.1225, allocations: 8 kB / 363 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002478/0.1227, allocations: 39.97 kB / 363 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.297e-05/0.1228, allocations: 43.92 kB / 363 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.1229, allocations: 7.984 kB / 363 MB, free: 15.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001073/0.123, allocations: 135.2 kB / 363.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.123, allocations: 0 / 363.2 MB, free: 15.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003457/0.1233, allocations: 71.98 kB / 363.2 MB, free: 14.99 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * 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.001372/0.1247, allocations: 1.08 MB / 364.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007828/0.1255, allocations: 339.7 kB / 364.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1255, allocations: 3.938 kB / 364.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003708/0.1259, allocations: 151.9 kB / 364.8 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003285/0.1262, allocations: 40.11 kB / 364.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003175/0.1294, allocations: 2.182 MB / 367 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.1297, allocations: 0.7481 MB / 367.8 MB, free: 10.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.1299, allocations: 25.94 kB / 367.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.855e-05/0.13, allocations: 67.34 kB / 367.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.13, allocations: 0 / 367.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01938/0.1493, allocations: 5.392 MB / 373.3 MB, free: 5.031 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001952/0.1496, allocations: 212.2 kB / 373.5 MB, free: 4.793 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.822/1.972, allocations: 3.938 kB / 373.5 MB, free: 4.789 MB / 302.1 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