Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_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.00103/0.00103, allocations: 90.22 kB / 16.95 MB, free: 6.113 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.00121/0.00121, allocations: 176.2 kB / 17.84 MB, free: 5.73 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.603/1.603, allocations: 205.4 MB / 224 MB, free: 13.14 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.0004361/0.0004361, allocations: 12 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.108, allocations: 47.58 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002664/0.1108, allocations: 1.843 MB / 330.3 MB, free: 2.133 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.1121, allocations: 0.6985 MB / 331 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.1123, allocations: 4 kB / 331 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002058/0.1125, allocations: 27.78 kB / 331 MB, free: 1.395 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001758/0.1127, allocations: 59.59 kB / 331.1 MB, free: 1.336 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.113, allocations: 75.84 kB / 331.2 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002573/0.1132, allocations: 231.5 kB / 331.4 MB, free: 1.035 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001631/0.1134, allocations: 52.36 kB / 331.4 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.1136, allocations: 99.62 kB / 331.5 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001889/0.1138, allocations: 103.6 kB / 331.6 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.641e-05/0.1138, allocations: 8 kB / 331.6 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000126/0.114, allocations: 47.97 kB / 331.7 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.288e-05/0.114, allocations: 39.83 kB / 331.7 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.42e-05/0.1141, allocations: 65.58 kB / 331.8 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.1144, allocations: 187.8 kB / 332 MB, free: 448 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.121e-05/0.1144, allocations: 0 / 332 MB, free: 448 kB / 270.1 MB Notification: Performance of FrontEnd: time 4.448e-06/0.1145, allocations: 0 / 332 MB, free: 448 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.1145, allocations: 0 / 332 MB, free: 448 kB / 270.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.000885/0.1154, allocations: 0.4951 MB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/0.1154, allocations: 8.031 kB / 332.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.764e-05/0.1155, allocations: 54.48 kB / 332.5 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.583e-05/0.1156, allocations: 23.72 kB / 332.5 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003051/0.1159, allocations: 226.7 kB / 332.8 MB, free: 15.54 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.56e-05/0.1159, allocations: 20.44 kB / 332.8 MB, free: 15.52 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.595e-05/0.116, allocations: 23.84 kB / 332.8 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000474/0.1165, allocations: 221.7 kB / 333 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.1165, allocations: 0 / 333 MB, free: 15.26 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.43e-05/0.1165, allocations: 8 kB / 333 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.1166, allocations: 4 kB / 333 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003693/0.1169, allocations: 173 kB / 333.2 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001279/0.1182, allocations: 0.7758 MB / 334 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003921/0.1186, allocations: 134.5 kB / 334.1 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001713/0.1188, allocations: 72.83 kB / 334.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.1189, allocations: 7.984 kB / 334.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.1189, allocations: 30.56 kB / 334.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of pre-optimization done (n=18): time 3.416e-06/0.1189, allocations: 0 / 334.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.001862/0.1208, allocations: 1.033 MB / 335.3 MB, free: 12.83 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.1208, allocations: 55.41 kB / 335.3 MB, free: 12.77 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002054/0.121, allocations: 198.6 kB / 335.5 MB, free: 12.56 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.32e-05/0.1211, allocations: 37.64 kB / 335.5 MB, free: 12.52 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.252e-05/0.1212, allocations: 140.2 kB / 335.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.259e-05/0.1212, allocations: 63.02 kB / 335.7 MB, free: 12.32 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.339e-05/0.1213, allocations: 8 kB / 335.7 MB, free: 12.31 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001362/0.1214, allocations: 334.8 kB / 336.1 MB, free: 11.97 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001533/0.1216, allocations: 83.95 kB / 336.2 MB, free: 11.89 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.1217, allocations: 119.6 kB / 336.3 MB, free: 11.76 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.1219, allocations: 77.16 kB / 336.3 MB, free: 11.69 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.1219, allocations: 4 kB / 336.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004852/0.1224, allocations: 291.9 kB / 336.6 MB, free: 11.39 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.1224, allocations: 4 kB / 336.6 MB, free: 11.39 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1225, allocations: 4 kB / 336.6 MB, free: 11.38 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002707/0.1227, allocations: 76.8 kB / 336.7 MB, free: 11.3 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.1229, allocations: 39.98 kB / 336.8 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005205/0.1234, allocations: 0.6149 MB / 337.4 MB, free: 10.62 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/0.1236, allocations: 28.05 kB / 337.4 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.1236, allocations: 12 kB / 337.4 MB, free: 10.59 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: 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.000133/0.1238, allocations: 137.8 kB / 337.5 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.297e-05/0.1238, allocations: 23.66 kB / 337.6 MB, free: 10.42 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.207e-05/0.1239, allocations: 25.88 kB / 337.6 MB, free: 10.39 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.1239, allocations: 7.953 kB / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1239, allocations: 0 / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1239, allocations: 3.984 kB / 337.6 MB, free: 10.38 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008431/0.1248, allocations: 0.5983 MB / 338.2 MB, free: 9.715 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.1248, allocations: 4 kB / 338.2 MB, free: 9.711 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001592/0.125, allocations: 31.98 kB / 338.2 MB, free: 9.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001613/0.1251, allocations: 72.81 kB / 338.3 MB, free: 9.605 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.1252, allocations: 8 kB / 338.3 MB, free: 9.598 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004646/0.1256, allocations: 0.6147 MB / 338.9 MB, free: 8.957 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1257, allocations: 0 / 338.9 MB, free: 8.957 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005998/0.1263, allocations: 425.7 kB / 339.4 MB, free: 8.516 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.005e-05/0.1264, allocations: 108.9 kB / 339.5 MB, free: 8.391 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.375e-05/0.1264, allocations: 4 kB / 339.5 MB, free: 8.387 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001717/0.1266, allocations: 35.97 kB / 339.5 MB, free: 8.352 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.237e-05/0.1267, allocations: 23.95 kB / 339.5 MB, free: 8.328 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.1267, allocations: 8 kB / 339.5 MB, free: 8.32 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001283/0.1268, allocations: 148.2 kB / 339.7 MB, free: 8.176 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1268, allocations: 0 / 339.7 MB, free: 8.176 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003309/0.1272, allocations: 68 kB / 339.7 MB, free: 8.109 MB / 286.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.0009735/0.1282, allocations: 0.9794 MB / 340.7 MB, free: 7.098 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004596/0.1286, allocations: 199.9 kB / 340.9 MB, free: 6.902 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1286, allocations: 0 / 340.9 MB, free: 6.902 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002139/0.1289, allocations: 104 kB / 341 MB, free: 6.801 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003877/0.1293, allocations: 35.72 kB / 341.1 MB, free: 6.766 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002554/0.1318, allocations: 1.65 MB / 342.7 MB, free: 5.055 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.1321, allocations: 0.7365 MB / 343.4 MB, free: 4.293 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.739e-05/0.1322, allocations: 29.92 kB / 343.5 MB, free: 4.266 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.883e-05/0.1323, allocations: 55.42 kB / 343.5 MB, free: 4.211 MB / 286.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1323, allocations: 0 / 343.5 MB, free: 4.211 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02709/0.1594, allocations: 4.92 MB / 348.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003464/0.1598, allocations: 233.7 kB / 348.7 MB, free: 15.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.902/2.062, allocations: 0 / 348.7 MB, free: 15.04 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat does not exist to compare? outputFormat=mat