Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008043/0.0008043, allocations: 100.8 kB / 17.01 MB, free: 6.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008983/0.0008985, allocations: 194.4 kB / 17.91 MB, free: 5.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000269/0.0002691, allocations: 8 kB / 306.8 MB, free: 1.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1144, allocations: 51.49 MB / 358.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002581/0.117, allocations: 1.917 MB / 360.2 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.1183, allocations: 0.8026 MB / 361 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.1184, allocations: 3.938 kB / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002453/0.1187, allocations: 35.77 kB / 361.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002164/0.1189, allocations: 87.52 kB / 361.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000183/0.1191, allocations: 63.86 kB / 361.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002781/0.1194, allocations: 259.4 kB / 361.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.1195, allocations: 44.55 kB / 361.5 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002119/0.1197, allocations: 111.6 kB / 361.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.1199, allocations: 123.5 kB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.12, allocations: 12 kB / 361.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001288/0.1201, allocations: 59.97 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.731e-05/0.1202, allocations: 43.83 kB / 361.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.127e-05/0.1203, allocations: 69.58 kB / 361.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002539/0.1205, allocations: 223.7 kB / 362.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1205, allocations: 0 / 362.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1205, allocations: 0 / 362.1 MB, free: 9.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.1206, allocations: 0 / 362.1 MB, free: 9.93 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0009241/0.1215, allocations: 0.5586 MB / 362.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1215, allocations: 15.97 kB / 362.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.4e-05/0.1216, allocations: 50.55 kB / 362.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.1217, allocations: 35.7 kB / 362.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002676/0.122, allocations: 242.6 kB / 363 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.414e-05/0.1221, allocations: 20 kB / 363 MB, free: 8.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.084e-05/0.1221, allocations: 19.95 kB / 363.1 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004241/0.1225, allocations: 227.2 kB / 363.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.1226, allocations: 4 kB / 363.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.056e-05/0.1226, allocations: 4 kB / 363.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.1226, allocations: 8 kB / 363.3 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004497/0.1231, allocations: 207.5 kB / 363.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009501/0.124, allocations: 0.6565 MB / 364.2 MB, free: 7.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005654/0.1246, allocations: 218.4 kB / 364.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002518/0.1249, allocations: 112.8 kB / 364.5 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.506e-05/0.1249, allocations: 3.953 kB / 364.5 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004109/0.1253, allocations: 172.3 kB / 364.7 MB, free: 7.207 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 3.306e-06/0.1253, allocations: 4 kB / 364.7 MB, free: 7.203 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002507/0.1278, allocations: 1.225 MB / 365.9 MB, free: 5.871 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.1279, allocations: 55.41 kB / 365.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002222/0.1281, allocations: 198.2 kB / 366.1 MB, free: 5.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.855e-05/0.1282, allocations: 33.7 kB / 366.2 MB, free: 5.562 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.272e-05/0.1283, allocations: 128.4 kB / 366.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.695e-05/0.1284, allocations: 98.72 kB / 366.4 MB, free: 5.336 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.787e-05/0.1284, allocations: 8 kB / 366.4 MB, free: 5.328 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1286, allocations: 330.8 kB / 366.7 MB, free: 4.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.1288, allocations: 99.94 kB / 366.8 MB, free: 4.898 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000299/0.1291, allocations: 147.4 kB / 367 MB, free: 4.742 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/0.1294, allocations: 127.6 kB / 367.1 MB, free: 4.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.1294, allocations: 4 kB / 367.1 MB, free: 4.605 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007884/0.1302, allocations: 402.3 kB / 367.5 MB, free: 4.199 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.36e-05/0.1303, allocations: 33.7 kB / 367.5 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.1303, allocations: 3.938 kB / 367.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002077/0.1305, allocations: 56.83 kB / 367.6 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.1307, allocations: 51.97 kB / 367.6 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00167/0.1324, allocations: 1.641 MB / 369.3 MB, free: 2.277 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002346/0.1326, allocations: 48 kB / 369.3 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.386e-05/0.1327, allocations: 12 kB / 369.3 MB, free: 2.219 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: 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 (31): * Single equations (assignments): 29 * 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.0001579/0.1328, allocations: 142.4 kB / 369.5 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.903e-05/0.1329, allocations: 23.67 kB / 369.5 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.067e-05/0.133, allocations: 26.56 kB / 369.5 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.133, allocations: 4 kB / 369.5 MB, free: 2.016 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.133, allocations: 0 / 369.5 MB, free: 2.016 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.133, allocations: 7.922 kB / 369.5 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001099/0.1341, allocations: 0.6983 MB / 370.2 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.1341, allocations: 4 kB / 370.2 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002139/0.1343, allocations: 47.97 kB / 370.3 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001423/0.1345, allocations: 52.92 kB / 370.3 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.1345, allocations: 4 kB / 370.3 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2308/0.3654, allocations: 1.536 MB / 371.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3654, allocations: 3.219 kB / 371.9 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001143/0.3666, allocations: 0.5356 MB / 372.4 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001302/0.3667, allocations: 114.8 kB / 372.5 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.703e-05/0.3668, allocations: 10 kB / 372.5 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002592/0.367, allocations: 45.62 kB / 372.6 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002482/0.3673, allocations: 78.06 kB / 372.6 MB, free: 18.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.3673, allocations: 6.703 kB / 372.7 MB, free: 18.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001845/0.3675, allocations: 143.1 kB / 372.8 MB, free: 18.24 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3675, allocations: 0 / 372.8 MB, free: 18.24 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005109/0.368, allocations: 73.89 kB / 372.9 MB, free: 18.24 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 (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.002026/0.3701, allocations: 1.333 MB / 374.2 MB, free: 17.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000979/0.371, allocations: 449.6 kB / 374.6 MB, free: 17.35 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.3711, allocations: 3.656 kB / 374.6 MB, free: 17.35 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004855/0.3716, allocations: 272.2 kB / 374.9 MB, free: 17.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004534/0.372, allocations: 46.73 kB / 375 MB, free: 17.23 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/0.3756, allocations: 1.757 MB / 376.7 MB, free: 16.49 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002804/0.3759, allocations: 0.7479 MB / 377.5 MB, free: 15.79 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.00015/0.376, allocations: 30.61 kB / 377.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.3762, allocations: 72.64 kB / 377.6 MB, free: 15.76 MB / 302.1 MB Notification: Performance of SimCode: time 1.883e-06/0.3762, allocations: 0 / 377.6 MB, free: 15.76 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.3989, allocations: 6.117 MB / 383.7 MB, free: 14.89 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001738/0.3992, allocations: 268.6 kB / 383.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.931/2.331, allocations: 3.375 kB / 383.9 MB, free: 14.55 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat