Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.0009641/0.000964, allocations: 97.03 kB / 16.94 MB, free: 5.98 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.0009105/0.0009105, allocations: 179.4 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.543/1.543, allocations: 205.4 MB / 224 MB, free: 13.12 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.0004758/0.0004759, allocations: 19.98 kB / 280.8 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1007, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002795/0.1036, allocations: 1.876 MB / 330.3 MB, free: 2.109 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.1052, allocations: 0.9264 MB / 331.2 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001398/0.1054, allocations: 4 kB / 331.2 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.1055, allocations: 35.77 kB / 331.3 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005/0.106, allocations: 131.6 kB / 331.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002759/0.1063, allocations: 143.7 kB / 331.5 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003282/0.1067, allocations: 259.5 kB / 331.8 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002011/0.1069, allocations: 56.7 kB / 331.8 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001753/0.1071, allocations: 151.6 kB / 332 MB, free: 420 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002704/0.1073, allocations: 199.3 kB / 332.2 MB, free: 220 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.817e-05/0.1074, allocations: 16 kB / 332.2 MB, free: 204 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.1075, allocations: 83.88 kB / 332.3 MB, free: 120 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.1077, allocations: 79.72 kB / 332.4 MB, free: 40 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.67e-05/0.1078, allocations: 73.58 kB / 332.4 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003522/0.1081, allocations: 323.4 kB / 332.7 MB, free: 15.64 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.1081, allocations: 0 / 332.7 MB, free: 15.64 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.1082, allocations: 4 kB / 332.7 MB, free: 15.64 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.1082, allocations: 0 / 332.7 MB, free: 15.64 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001057/0.1092, allocations: 0.577 MB / 333.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.1093, allocations: 8.031 kB / 333.3 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001342/0.1094, allocations: 62.53 kB / 333.4 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002868/0.1097, allocations: 51.61 kB / 333.4 MB, free: 14.89 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004218/0.1101, allocations: 294.5 kB / 333.7 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.1103, allocations: 91.95 kB / 333.8 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.626e-05/0.1104, allocations: 24 kB / 333.8 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000682/0.111, allocations: 381.2 kB / 334.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.1111, allocations: 3.906 kB / 334.2 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.706e-05/0.1111, allocations: 12 kB / 334.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.899e-06/0.1111, allocations: 12 kB / 334.2 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008514/0.112, allocations: 421.9 kB / 334.7 MB, free: 13.6 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002045/0.114, allocations: 1.261 MB / 335.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007463/0.1148, allocations: 355 kB / 336.3 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.33e-05/0.1149, allocations: 8 kB / 336.3 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.093e-05/0.1149, allocations: 38.56 kB / 336.3 MB, free: 11.86 MB / 286.1 MB Notification: Performance of pre-optimization done (n=43): time 1.623e-06/0.1149, allocations: 0 / 336.3 MB, free: 11.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.004786/0.1197, allocations: 1.942 MB / 338.3 MB, free: 9.801 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.1198, allocations: 88.86 kB / 338.3 MB, free: 9.695 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003501/0.1201, allocations: 234.3 kB / 338.6 MB, free: 9.453 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.396e-05/0.1202, allocations: 41.69 kB / 338.6 MB, free: 9.406 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.169e-05/0.1203, allocations: 132.6 kB / 338.7 MB, free: 9.273 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001259/0.1204, allocations: 146 kB / 338.9 MB, free: 9.129 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.386e-05/0.1204, allocations: 19.94 kB / 338.9 MB, free: 9.109 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.1206, allocations: 330.8 kB / 339.2 MB, free: 8.777 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003623/0.121, allocations: 172.8 kB / 339.4 MB, free: 8.609 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003904/0.1214, allocations: 229.9 kB / 339.6 MB, free: 8.363 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003439/0.1217, allocations: 160.8 kB / 339.8 MB, free: 8.211 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1217, allocations: 4 kB / 339.8 MB, free: 8.207 MB / 286.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001092/0.1228, allocations: 0.5629 MB / 340.3 MB, free: 7.633 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.1229, allocations: 7.938 kB / 340.3 MB, free: 7.625 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1229, allocations: 4 kB / 340.4 MB, free: 7.621 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006965/0.1236, allocations: 248.8 kB / 340.6 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002397/0.1238, allocations: 51.91 kB / 340.6 MB, free: 7.324 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003657/0.1275, allocations: 2.71 MB / 343.4 MB, free: 4.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002626/0.1278, allocations: 36.08 kB / 343.4 MB, free: 4.445 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.97e-05/0.1278, allocations: 15.98 kB / 343.4 MB, free: 4.43 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001902/0.128, allocations: 153.9 kB / 343.6 MB, free: 4.27 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.355e-05/0.1281, allocations: 31.62 kB / 343.6 MB, free: 4.238 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.388e-05/0.1282, allocations: 42.98 kB / 343.6 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-06/0.1282, allocations: 7.953 kB / 343.6 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.796e-06/0.1282, allocations: 0 / 343.6 MB, free: 4.188 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1282, allocations: 3.984 kB / 343.6 MB, free: 4.184 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001848/0.1301, allocations: 1.097 MB / 344.7 MB, free: 3.027 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.1301, allocations: 3.953 kB / 344.7 MB, free: 3.023 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002145/0.1303, allocations: 47.97 kB / 344.8 MB, free: 2.977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006653/0.131, allocations: 232.9 kB / 345 MB, free: 2.746 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.443e-05/0.131, allocations: 15.98 kB / 345 MB, free: 2.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003485/0.1345, allocations: 2.651 MB / 347.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1346, allocations: 0 / 347.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.136, allocations: 0.8295 MB / 348.5 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.1362, allocations: 140.8 kB / 348.7 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.307e-05/0.1362, allocations: 15.98 kB / 348.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.1365, allocations: 28.05 kB / 348.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.1366, allocations: 71.8 kB / 348.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.1367, allocations: 12 kB / 348.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000199/0.1369, allocations: 184.2 kB / 349 MB, free: 14.64 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1369, allocations: 0 / 349 MB, free: 14.64 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000655/0.1375, allocations: 140 kB / 349.1 MB, free: 14.5 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.001881/0.1394, allocations: 1.425 MB / 350.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001254/0.1407, allocations: 0.6258 MB / 351.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1407, allocations: 0 / 351.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006706/0.1414, allocations: 441 kB / 351.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.1417, allocations: 32.02 kB / 351.6 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003847/0.1456, allocations: 2.726 MB / 354.3 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.146, allocations: 0.792 MB / 355.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001881/0.1462, allocations: 58.94 kB / 355.2 MB, free: 8.262 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.1463, allocations: 75.41 kB / 355.3 MB, free: 8.188 MB / 302.1 MB Notification: Performance of SimCode: time 7.82e-07/0.1463, allocations: 4 kB / 355.3 MB, free: 8.184 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.1687, allocations: 8.833 MB / 364.1 MB, free: 15.35 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000194/0.1689, allocations: 211.1 kB / 364.3 MB, free: 15.11 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.987/2.156, allocations: 0 / 364.3 MB, free: 15.11 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat