Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_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.001202/0.001201, allocations: 95.41 kB / 16.93 MB, free: 5.984 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.001067/0.001067, allocations: 181.2 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 205.4 MB / 224 MB, free: 13.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004709/0.000471, allocations: 12 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1095, allocations: 47.58 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00202/0.1116, allocations: 1.75 MB / 330.2 MB, free: 2.242 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.1127, allocations: 0.7143 MB / 330.9 MB, free: 1.52 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.1128, allocations: 0 / 330.9 MB, free: 1.52 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001151/0.113, allocations: 19.84 kB / 330.9 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001873/0.1132, allocations: 79.77 kB / 331 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002537/0.1134, allocations: 83.77 kB / 331.1 MB, free: 1.34 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001999/0.1136, allocations: 172.1 kB / 331.2 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.1138, allocations: 48.5 kB / 331.3 MB, free: 1.125 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.1139, allocations: 103.7 kB / 331.4 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.1141, allocations: 111.6 kB / 331.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.382e-05/0.1141, allocations: 12 kB / 331.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.994e-05/0.1142, allocations: 43.97 kB / 331.5 MB, free: 0.8594 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.657e-05/0.1143, allocations: 43.81 kB / 331.6 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.84e-05/0.1143, allocations: 65.58 kB / 331.6 MB, free: 0.7461 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001845/0.1145, allocations: 195.8 kB / 331.8 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.553e-06/0.1145, allocations: 0 / 331.8 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1146, allocations: 0 / 331.8 MB, free: 0.5547 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.1146, allocations: 0 / 331.8 MB, free: 0.5547 MB / 270.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.0008486/0.1154, allocations: 0.5391 MB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.729e-05/0.1155, allocations: 8.031 kB / 332.4 MB, free: 15.95 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.499e-05/0.1155, allocations: 50.55 kB / 332.4 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.476e-05/0.1156, allocations: 19.81 kB / 332.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002112/0.1158, allocations: 238.5 kB / 332.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.1158, allocations: 16 kB / 332.7 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.726e-05/0.1159, allocations: 20 kB / 332.7 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004269/0.1163, allocations: 239.2 kB / 333 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.1163, allocations: 0 / 333 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.146e-05/0.1163, allocations: 11.98 kB / 333 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.1163, allocations: 4 kB / 333 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004571/0.1168, allocations: 211.8 kB / 333.2 MB, free: 15.1 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008698/0.1177, allocations: 0.6836 MB / 333.9 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004961/0.1182, allocations: 214.5 kB / 334.1 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.1182, allocations: 4 kB / 334.1 MB, free: 14.14 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003911/0.1186, allocations: 175.5 kB / 334.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.1186, allocations: 0 / 334.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002192/0.1208, allocations: 1.203 MB / 335.5 MB, free: 12.64 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.927e-05/0.1209, allocations: 59.34 kB / 335.5 MB, free: 12.57 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.121, allocations: 202.8 kB / 335.7 MB, free: 12.36 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.1211, allocations: 29.7 kB / 335.7 MB, free: 12.32 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.322e-05/0.1212, allocations: 136.3 kB / 335.9 MB, free: 12.19 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.315e-05/0.1212, allocations: 94.73 kB / 336 MB, free: 12.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.561e-05/0.1212, allocations: 8 kB / 336 MB, free: 12.09 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1214, allocations: 330.8 kB / 336.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002548/0.1216, allocations: 116.2 kB / 336.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000269/0.1219, allocations: 148.3 kB / 336.6 MB, free: 11.48 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002628/0.1222, allocations: 135.1 kB / 336.7 MB, free: 11.34 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-06/0.1222, allocations: 0 / 336.7 MB, free: 11.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008282/0.123, allocations: 417.3 kB / 337.1 MB, free: 10.92 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.204e-05/0.1231, allocations: 33.7 kB / 337.1 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.596e-06/0.1231, allocations: 0 / 337.1 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001771/0.1233, allocations: 68.81 kB / 337.2 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.1235, allocations: 55.91 kB / 337.2 MB, free: 10.76 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004301/0.1239, allocations: 0.6148 MB / 337.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002644/0.1242, allocations: 43.98 kB / 337.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.1242, allocations: 12.11 kB / 337.9 MB, free: 10.06 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.0001361/0.1244, allocations: 146 kB / 338.1 MB, free: 9.91 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.254e-05/0.1244, allocations: 19.81 kB / 338.1 MB, free: 9.891 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.313e-05/0.1245, allocations: 29.86 kB / 338.1 MB, free: 9.859 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1245, allocations: 0 / 338.1 MB, free: 9.859 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1245, allocations: 4 kB / 338.1 MB, free: 9.855 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.1245, allocations: 4 kB / 338.1 MB, free: 9.852 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.1255, allocations: 0.6941 MB / 338.8 MB, free: 9.098 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.1255, allocations: 0 / 338.8 MB, free: 9.098 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002006/0.1257, allocations: 55.84 kB / 338.9 MB, free: 9.043 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001484/0.1259, allocations: 68.81 kB / 338.9 MB, free: 8.973 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.1259, allocations: 0 / 338.9 MB, free: 8.973 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005033/0.1264, allocations: 0.6149 MB / 339.5 MB, free: 8.332 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1264, allocations: 0 / 339.5 MB, free: 8.332 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009598/0.1274, allocations: 0.5155 MB / 340.1 MB, free: 7.797 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.635e-05/0.1275, allocations: 108.9 kB / 340.2 MB, free: 7.672 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.114e-05/0.1276, allocations: 19.88 kB / 340.2 MB, free: 7.652 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.1278, allocations: 39.97 kB / 340.2 MB, free: 7.613 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.816e-05/0.1279, allocations: 31.94 kB / 340.3 MB, free: 7.582 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.1279, allocations: 8 kB / 340.3 MB, free: 7.574 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001086/0.128, allocations: 143.2 kB / 340.4 MB, free: 7.434 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.128, allocations: 0 / 340.4 MB, free: 7.434 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003184/0.1284, allocations: 72 kB / 340.5 MB, free: 7.363 MB / 286.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.001241/0.1296, allocations: 1.084 MB / 341.6 MB, free: 6.25 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006474/0.1303, allocations: 339.1 kB / 341.9 MB, free: 5.906 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1303, allocations: 0 / 341.9 MB, free: 5.906 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003307/0.1306, allocations: 151.9 kB / 342 MB, free: 5.758 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002844/0.1309, allocations: 40.08 kB / 342.1 MB, free: 5.723 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003082/0.134, allocations: 2.202 MB / 344.3 MB, free: 3.453 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.1343, allocations: 0.7481 MB / 345 MB, free: 2.68 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.513e-05/0.1344, allocations: 17.95 kB / 345 MB, free: 2.664 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.339e-05/0.1345, allocations: 63.42 kB / 345.1 MB, free: 2.602 MB / 286.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1345, allocations: 0 / 345.1 MB, free: 2.602 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01792/0.1525, allocations: 5.41 MB / 350.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.1527, allocations: 208.9 kB / 350.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.84/1.992, allocations: 0 / 350.7 MB, free: 12.96 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat