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.0009745/0.0009747, allocations: 102.9 kB / 16.94 MB, free: 6.445 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.001078/0.001078, allocations: 184 kB / 17.83 MB, free: 6.012 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.000445/0.0004451, allocations: 15.98 kB / 280.8 MB, free: 3.672 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1092, allocations: 47.58 MB / 328.4 MB, free: 4.023 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002249/0.1115, allocations: 1.781 MB / 330.2 MB, free: 2.227 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.1125, allocations: 0.7026 MB / 330.9 MB, free: 1.516 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000109/0.1126, allocations: 4 kB / 330.9 MB, free: 1.512 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.1128, allocations: 19.84 kB / 330.9 MB, free: 1.492 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001813/0.113, allocations: 75.77 kB / 331 MB, free: 1.418 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.1132, allocations: 79.8 kB / 331.1 MB, free: 1.34 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000224/0.1134, allocations: 172.1 kB / 331.2 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.1136, allocations: 52.36 kB / 331.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001351/0.1137, allocations: 91.67 kB / 331.4 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001492/0.1139, allocations: 103.5 kB / 331.5 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.403e-05/0.1139, allocations: 8 kB / 331.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.114, allocations: 51.94 kB / 331.5 MB, free: 0.8711 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.264e-05/0.1141, allocations: 43.84 kB / 331.6 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.64e-05/0.1141, allocations: 61.58 kB / 331.6 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002024/0.1143, allocations: 191.8 kB / 331.8 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.1144, allocations: 0 / 331.8 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1144, allocations: 0 / 331.8 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1144, allocations: 0 / 331.8 MB, free: 0.5742 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.000703/0.1151, allocations: 499 kB / 332.3 MB, free: 36 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.1151, allocations: 8.031 kB / 332.3 MB, free: 28 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.327e-05/0.1152, allocations: 54.55 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.515e-05/0.1153, allocations: 23.72 kB / 332.4 MB, free: 15.94 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002466/0.1155, allocations: 234.6 kB / 332.6 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.1155, allocations: 12.44 kB / 332.6 MB, free: 15.66 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.102e-05/0.1156, allocations: 23.91 kB / 332.7 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000373/0.116, allocations: 221.7 kB / 332.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.661e-05/0.116, allocations: 4 kB / 332.9 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.102e-05/0.116, allocations: 8 kB / 332.9 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.116, allocations: 4 kB / 332.9 MB, free: 15.39 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003051/0.1163, allocations: 169 kB / 333.1 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.1174, allocations: 0.7875 MB / 333.9 MB, free: 14.37 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003151/0.1177, allocations: 130.5 kB / 334 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.992e-05/0.1178, allocations: 4 kB / 334 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.043e-05/0.1178, allocations: 34.56 kB / 334 MB, free: 14.19 MB / 286.1 MB Notification: Performance of pre-optimization done (n=18): time 1.152e-06/0.1178, allocations: 0 / 334 MB, free: 14.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.001795/0.1196, allocations: 1.014 MB / 335 MB, free: 13.06 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/0.1196, allocations: 55.34 kB / 335.1 MB, free: 13 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001854/0.1198, allocations: 206.5 kB / 335.3 MB, free: 12.79 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.042e-05/0.1199, allocations: 29.7 kB / 335.3 MB, free: 12.75 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.447e-05/0.1199, allocations: 148.2 kB / 335.5 MB, free: 12.6 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.436e-05/0.12, allocations: 71 kB / 335.5 MB, free: 12.53 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.231e-05/0.12, allocations: 4 kB / 335.5 MB, free: 12.53 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1202, allocations: 330.8 kB / 335.9 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.1203, allocations: 87.94 kB / 335.9 MB, free: 12.11 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001677/0.1205, allocations: 111.6 kB / 336.1 MB, free: 11.99 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001454/0.1206, allocations: 85.14 kB / 336.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1207, allocations: 0 / 336.1 MB, free: 11.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004493/0.1211, allocations: 291.9 kB / 336.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1211, allocations: 8 kB / 336.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1212, allocations: 8.047 kB / 336.4 MB, free: 11.6 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002386/0.1214, allocations: 68.83 kB / 336.5 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001476/0.1216, allocations: 39.97 kB / 336.5 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004691/0.122, allocations: 0.6148 MB / 337.2 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001978/0.1222, allocations: 36.06 kB / 337.2 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.1223, allocations: 8 kB / 337.2 MB, free: 10.8 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.0001372/0.1224, allocations: 133.8 kB / 337.3 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.426e-05/0.1225, allocations: 19.72 kB / 337.4 MB, free: 10.64 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.689e-05/0.1225, allocations: 29.86 kB / 337.4 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.1225, allocations: 8 kB / 337.4 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.1226, allocations: 3.953 kB / 337.4 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.1226, allocations: 0 / 337.4 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007874/0.1234, allocations: 0.5975 MB / 338 MB, free: 9.941 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.1234, allocations: 12.03 kB / 338 MB, free: 9.93 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001555/0.1235, allocations: 32.02 kB / 338 MB, free: 9.898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001552/0.1237, allocations: 68.75 kB / 338.1 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/0.1237, allocations: 11.98 kB / 338.1 MB, free: 9.816 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004165/0.1242, allocations: 0.6225 MB / 338.7 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.1242, allocations: 0 / 338.7 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005651/0.1247, allocations: 449.1 kB / 339.2 MB, free: 8.691 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.764e-05/0.1248, allocations: 108.9 kB / 339.3 MB, free: 8.566 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.674e-05/0.1249, allocations: 8 kB / 339.3 MB, free: 8.559 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.1251, allocations: 19.98 kB / 339.3 MB, free: 8.539 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.658e-05/0.1251, allocations: 31.95 kB / 339.3 MB, free: 8.508 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.103e-05/0.1252, allocations: 4 kB / 339.3 MB, free: 8.504 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001178/0.1253, allocations: 152.2 kB / 339.5 MB, free: 8.355 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1253, allocations: 0 / 339.5 MB, free: 8.355 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003143/0.1256, allocations: 68 kB / 339.6 MB, free: 8.289 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.001034/0.1267, allocations: 1.133 MB / 340.7 MB, free: 7.113 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004389/0.1271, allocations: 195.9 kB / 340.9 MB, free: 6.922 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1271, allocations: 3.938 kB / 340.9 MB, free: 6.918 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002112/0.1273, allocations: 103.8 kB / 341 MB, free: 6.816 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002846/0.1276, allocations: 36.69 kB / 341 MB, free: 6.781 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002558/0.1302, allocations: 2.106 MB / 343.1 MB, free: 4.609 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002915/0.1305, allocations: 0.744 MB / 343.9 MB, free: 3.84 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.47e-05/0.1306, allocations: 17.94 kB / 343.9 MB, free: 3.824 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.145e-05/0.1307, allocations: 59.42 kB / 343.9 MB, free: 3.766 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1307, allocations: 0 / 343.9 MB, free: 3.766 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01814/0.1488, allocations: 4.893 MB / 348.8 MB, free: 14.87 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/0.1491, allocations: 224.4 kB / 349.1 MB, free: 14.63 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.798/1.948, allocations: 7.938 kB / 349.1 MB, free: 14.62 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