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.001056/0.001056, allocations: 88.62 kB / 16.31 MB, free: 5.676 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.001218/0.001218, allocations: 182 kB / 17.21 MB, free: 5.594 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.473/1.473, allocations: 223.2 MB / 241.2 MB, free: 292 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002685/0.0002686, allocations: 4 kB / 300.9 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1143/0.1146, allocations: 50.43 MB / 351.3 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002599/0.1172, allocations: 1.799 MB / 353.1 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.1186, allocations: 0.6587 MB / 353.8 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.1187, allocations: 4 kB / 353.8 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001687/0.1189, allocations: 23.84 kB / 353.8 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001642/0.1191, allocations: 63.53 kB / 353.9 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003002/0.1194, allocations: 79.84 kB / 354 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000271/0.1197, allocations: 239.5 kB / 354.2 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.1198, allocations: 48.53 kB / 354.2 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.12, allocations: 99.64 kB / 354.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001959/0.1202, allocations: 111.6 kB / 354.5 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.862e-05/0.1202, allocations: 12 kB / 354.5 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.1204, allocations: 55.95 kB / 354.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.796e-05/0.1204, allocations: 39.83 kB / 354.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.667e-05/0.1205, allocations: 61.58 kB / 354.6 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000213/0.1207, allocations: 195.8 kB / 354.8 MB, free: 408 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1207, allocations: 4 kB / 354.8 MB, free: 404 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1208, allocations: 0 / 354.8 MB, free: 404 kB / 286.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1208, allocations: 0 / 354.8 MB, free: 404 kB / 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.000879/0.1216, allocations: 0.5314 MB / 355.3 MB, free: 15.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.1217, allocations: 12.03 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.58e-05/0.1218, allocations: 50.48 kB / 355.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.501e-05/0.1218, allocations: 31.61 kB / 355.4 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002584/0.1221, allocations: 238.7 kB / 355.7 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/0.1221, allocations: 12 kB / 355.7 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.1222, allocations: 20 kB / 355.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000477/0.1227, allocations: 243.1 kB / 355.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.1227, allocations: 0 / 355.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.361e-05/0.1227, allocations: 8 kB / 355.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.1227, allocations: 11.95 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004798/0.1232, allocations: 207.8 kB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.1243, allocations: 0.6797 MB / 356.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000551/0.1248, allocations: 221.5 kB / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002259/0.1251, allocations: 104.8 kB / 357.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.614e-05/0.1251, allocations: 4 kB / 357.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003773/0.1255, allocations: 171.5 kB / 357.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.713e-06/0.1255, allocations: 4 kB / 357.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.002396/0.1279, allocations: 1.209 MB / 358.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.128, allocations: 59.39 kB / 358.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001844/0.1282, allocations: 191.9 kB / 358.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.357e-05/0.1282, allocations: 33.7 kB / 358.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.715e-05/0.1283, allocations: 136.3 kB / 359 MB, free: 11.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.027e-05/0.1284, allocations: 86.75 kB / 359 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.522e-05/0.1284, allocations: 4 kB / 359 MB, free: 11.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1286, allocations: 330.8 kB / 359.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002625/0.1288, allocations: 112.3 kB / 359.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002896/0.1291, allocations: 156.2 kB / 359.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000261/0.1294, allocations: 143 kB / 359.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1294, allocations: 0 / 359.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008029/0.1302, allocations: 414.2 kB / 360.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.777e-05/0.1303, allocations: 33.7 kB / 360.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.1303, allocations: 0 / 360.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002372/0.1305, allocations: 72.81 kB / 360.3 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.1307, allocations: 51.91 kB / 360.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005031/0.1313, allocations: 0.6148 MB / 360.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000248/0.1315, allocations: 43.98 kB / 361 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.1315, allocations: 12 kB / 361 MB, free: 9.793 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 (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.0001443/0.1317, allocations: 146.1 kB / 361.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.709e-05/0.1317, allocations: 15.81 kB / 361.2 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.1e-05/0.1318, allocations: 33.89 kB / 361.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1318, allocations: 4 kB / 361.2 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.1318, allocations: 7.891 kB / 361.2 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.319e-06/0.1319, allocations: 0 / 361.2 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/0.133, allocations: 0.7062 MB / 361.9 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.133, allocations: 3.938 kB / 361.9 MB, free: 8.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/0.1332, allocations: 43.97 kB / 362 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002322/0.1334, allocations: 64.81 kB / 362 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.225e-05/0.1335, allocations: 8 kB / 362 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004756/0.134, allocations: 0.6108 MB / 362.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.134, allocations: 8.094 kB / 362.6 MB, free: 8.051 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.1351, allocations: 0.5154 MB / 363.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.1352, allocations: 120.8 kB / 363.3 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.786e-05/0.1353, allocations: 4 kB / 363.3 MB, free: 7.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.1355, allocations: 43.97 kB / 363.3 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.134e-05/0.1356, allocations: 31.94 kB / 363.4 MB, free: 7.301 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/0.1356, allocations: 7.984 kB / 363.4 MB, free: 7.293 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001205/0.1358, allocations: 135.2 kB / 363.5 MB, free: 7.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1358, allocations: 0 / 363.5 MB, free: 7.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003435/0.1361, allocations: 71.98 kB / 363.6 MB, free: 7.09 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.001503/0.1376, allocations: 1.087 MB / 364.7 MB, free: 5.973 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007982/0.1384, allocations: 351.2 kB / 365 MB, free: 5.617 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1385, allocations: 0 / 365 MB, free: 5.617 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003537/0.1388, allocations: 148 kB / 365.1 MB, free: 5.473 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000424/0.1393, allocations: 40.11 kB / 365.2 MB, free: 5.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003101/0.1424, allocations: 1.745 MB / 366.9 MB, free: 3.637 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.1427, allocations: 0.7364 MB / 367.7 MB, free: 2.871 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.1429, allocations: 29.88 kB / 367.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.143, allocations: 59.42 kB / 367.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.143, allocations: 0 / 367.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2005/0.3435, allocations: 5.41 MB / 373.2 MB, free: 24.61 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/0.3437, allocations: 216.9 kB / 373.4 MB, free: 24.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/2.194, allocations: 7.266 kB / 373.4 MB, free: 24.38 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