Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",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.0009464/0.0009464, allocations: 95.31 kB / 16.93 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.001039/0.001039, allocations: 184.6 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.566/1.566, allocations: 205.4 MB / 224 MB, free: 13.19 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.000456/0.0004561, allocations: 8 kB / 280.8 MB, free: 3.668 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1026, allocations: 47.59 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.00289/0.1055, allocations: 2.184 MB / 330.6 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002022/0.1076, allocations: 1.098 MB / 331.7 MB, free: 0.707 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000163/0.1078, allocations: 4 kB / 331.7 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.1079, allocations: 55.61 kB / 331.8 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005461/0.1085, allocations: 179.5 kB / 331.9 MB, free: 484 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003878/0.1089, allocations: 187.7 kB / 332.1 MB, free: 296 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004817/0.1094, allocations: 399.6 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/0.1096, allocations: 98 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003159/0.1099, allocations: 259.2 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003402/0.1103, allocations: 291 kB / 333.1 MB, free: 15.26 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.921e-05/0.1104, allocations: 32 kB / 333.2 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001961/0.1106, allocations: 95.92 kB / 333.3 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001536/0.1107, allocations: 119.6 kB / 333.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.1108, allocations: 93.52 kB / 333.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004582/0.1113, allocations: 471 kB / 333.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.1113, allocations: 0 / 333.9 MB, free: 14.46 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1113, allocations: 3.938 kB / 333.9 MB, free: 14.45 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.577e-06/0.1113, allocations: 0 / 333.9 MB, free: 14.45 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001489/0.1128, allocations: 0.7251 MB / 334.7 MB, free: 13.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.1129, allocations: 12.02 kB / 334.7 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001149/0.113, allocations: 78.53 kB / 334.8 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003186/0.1133, allocations: 63.42 kB / 334.8 MB, free: 13.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005155/0.1138, allocations: 361.2 kB / 335.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001273/0.114, allocations: 100.4 kB / 335.3 MB, free: 13.01 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.772e-05/0.1141, allocations: 36 kB / 335.3 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.1151, allocations: 0.5643 MB / 335.9 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.1152, allocations: 0 / 335.9 MB, free: 12.4 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.876e-05/0.1152, allocations: 20 kB / 335.9 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.1152, allocations: 8 kB / 335.9 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001306/0.1166, allocations: 0.6441 MB / 336.5 MB, free: 11.73 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002422/0.119, allocations: 1.318 MB / 337.9 MB, free: 10.35 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001105/0.1201, allocations: 0.56 MB / 338.4 MB, free: 9.785 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.045e-05/0.1202, allocations: 8.562 kB / 338.4 MB, free: 9.777 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.1202, allocations: 39.12 kB / 338.5 MB, free: 9.73 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 3.056e-06/0.1202, allocations: 4.172 kB / 338.5 MB, free: 9.727 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.006752/0.127, allocations: 2.951 MB / 341.4 MB, free: 6.652 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.127, allocations: 85.67 kB / 341.5 MB, free: 6.547 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004017/0.1275, allocations: 330.9 kB / 341.8 MB, free: 6.215 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.817e-05/0.1275, allocations: 41.7 kB / 341.9 MB, free: 6.168 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.1276, allocations: 161.6 kB / 342 MB, free: 6.008 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.1278, allocations: 228.8 kB / 342.2 MB, free: 5.781 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.1279, allocations: 12 kB / 342.3 MB, free: 5.77 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.1281, allocations: 354.8 kB / 342.6 MB, free: 5.414 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005651/0.1287, allocations: 297.2 kB / 342.9 MB, free: 5.125 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006083/0.1293, allocations: 354.4 kB / 343.2 MB, free: 4.766 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005308/0.1298, allocations: 271.2 kB / 343.5 MB, free: 4.504 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1298, allocations: 0 / 343.5 MB, free: 4.504 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001817/0.1316, allocations: 0.9123 MB / 344.4 MB, free: 3.582 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1317, allocations: 4 kB / 344.4 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.1317, allocations: 0 / 344.4 MB, free: 3.578 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.1327, allocations: 477.9 kB / 344.9 MB, free: 3.109 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004393/0.1332, allocations: 83.89 kB / 345 MB, free: 3.027 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00127/0.1345, allocations: 1.087 MB / 346.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004774/0.135, allocations: 79.98 kB / 346.1 MB, free: 1.836 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.513e-05/0.135, allocations: 23.98 kB / 346.2 MB, free: 1.812 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002484/0.1353, allocations: 177.7 kB / 346.3 MB, free: 1.629 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.606e-05/0.1354, allocations: 47.52 kB / 346.4 MB, free: 1.582 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001481/0.1355, allocations: 63.7 kB / 346.4 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.1356, allocations: 15.94 kB / 346.5 MB, free: 1.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.1356, allocations: 3.938 kB / 346.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.1356, allocations: 0 / 346.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00314/0.1387, allocations: 1.785 MB / 348.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.1387, allocations: 0 / 348.2 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003638/0.1391, allocations: 79.89 kB / 348.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009111/0.14, allocations: 448.5 kB / 348.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.987e-05/0.1401, allocations: 23.97 kB / 348.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.1413, allocations: 1.036 MB / 349.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.1413, allocations: 4.031 kB / 349.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002426/0.1438, allocations: 1.323 MB / 351.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002905/0.1441, allocations: 184.5 kB / 351.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.389e-05/0.1442, allocations: 16 kB / 351.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004418/0.1446, allocations: 76 kB / 351.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001959/0.1448, allocations: 96.36 kB / 351.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.617e-05/0.1449, allocations: 19.98 kB / 351.5 MB, free: 12.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002972/0.1452, allocations: 253.8 kB / 351.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1452, allocations: 7.938 kB / 351.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000538/0.1457, allocations: 144 kB / 351.9 MB, free: 11.88 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.003017/0.1488, allocations: 1.976 MB / 353.9 MB, free: 9.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.1503, allocations: 0.7198 MB / 354.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1503, allocations: 0 / 354.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007916/0.1511, allocations: 396.2 kB / 355 MB, free: 8.766 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000376/0.1515, allocations: 52.75 kB / 355.1 MB, free: 8.711 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006477/0.158, allocations: 3.716 MB / 358.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003776/0.1584, allocations: 0.829 MB / 359.6 MB, free: 4.078 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002314/0.1587, allocations: 63.33 kB / 359.7 MB, free: 4.012 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000204/0.1589, allocations: 131.4 kB / 359.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of SimCode: time 7.52e-07/0.1589, allocations: 0 / 359.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02715/0.186, allocations: 12.4 MB / 372.2 MB, free: 7.469 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0008786/0.187, allocations: 219.2 kB / 372.4 MB, free: 7.223 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.037/2.224, allocations: 0 / 372.4 MB, free: 7.223 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat