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.0008491/0.0008492, allocations: 97.31 kB / 16.95 MB, free: 6.453 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.0009354/0.0009354, allocations: 182.5 kB / 17.84 MB, free: 6.004 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.487/1.487, 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.0004283/0.0004283, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08801/0.08845, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002728/0.09123, allocations: 2.299 MB / 330.7 MB, free: 1.668 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.09304, allocations: 1.078 MB / 331.8 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002246/0.09329, allocations: 7.938 kB / 331.8 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002201/0.09352, allocations: 51.67 kB / 331.9 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005039/0.09404, allocations: 163.1 kB / 332 MB, free: 372 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004192/0.09447, allocations: 195.7 kB / 332.2 MB, free: 176 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005503/0.09503, allocations: 0.5611 MB / 332.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001668/0.0952, allocations: 94.02 kB / 332.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002836/0.0955, allocations: 251.2 kB / 333.1 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003146/0.09582, allocations: 307 kB / 333.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.584e-05/0.09589, allocations: 32 kB / 333.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001869/0.09608, allocations: 99.88 kB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001401/0.09623, allocations: 115.6 kB / 333.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.795e-05/0.09631, allocations: 97.45 kB / 333.8 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004869/0.09681, allocations: 471 kB / 334.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.09682, allocations: 0 / 334.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.09683, allocations: 0 / 334.2 MB, free: 14.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.09684, allocations: 0 / 334.2 MB, free: 14.16 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.001301/0.09815, allocations: 0.7291 MB / 334.9 MB, free: 13.38 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.09819, allocations: 8.031 kB / 335 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.519e-05/0.0983, allocations: 82.47 kB / 335 MB, free: 13.28 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002953/0.0986, allocations: 63.42 kB / 335.1 MB, free: 13.22 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004759/0.09908, allocations: 357.3 kB / 335.4 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001161/0.09921, allocations: 100.4 kB / 335.5 MB, free: 12.72 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.366e-05/0.09929, allocations: 39.98 kB / 335.6 MB, free: 12.68 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009939/0.1003, allocations: 0.5566 MB / 336.1 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.262e-05/0.1003, allocations: 7.938 kB / 336.1 MB, free: 12.11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.809e-05/0.1004, allocations: 20 kB / 336.2 MB, free: 12.09 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.1004, allocations: 8 kB / 336.2 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001258/0.1017, allocations: 0.6441 MB / 336.8 MB, free: 11.43 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0023/0.104, allocations: 1.322 MB / 338.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.105, allocations: 0.5522 MB / 338.7 MB, free: 9.492 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005958/0.1056, allocations: 329.8 kB / 339 MB, free: 9.172 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.983e-05/0.1057, allocations: 16.53 kB / 339 MB, free: 9.156 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.1057, allocations: 43.12 kB / 339.1 MB, free: 9.105 MB / 286.1 MB Notification: Performance of pre-optimization done (n=61): time 1.894e-06/0.1057, allocations: 3.938 kB / 339.1 MB, free: 9.102 MB / 286.1 MB Notification: Performance of matching and sorting (n=69): time 0.00642/0.1122, allocations: 2.958 MB / 342 MB, free: 6.02 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.1122, allocations: 85.67 kB / 342.1 MB, free: 5.918 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003743/0.1126, allocations: 334.9 kB / 342.4 MB, free: 5.578 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.304e-05/0.1127, allocations: 41.7 kB / 342.5 MB, free: 5.531 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.732e-05/0.1128, allocations: 157.6 kB / 342.6 MB, free: 5.375 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001774/0.113, allocations: 240.7 kB / 342.9 MB, free: 5.137 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.113, allocations: 12 kB / 342.9 MB, free: 5.125 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1132, allocations: 346.8 kB / 343.2 MB, free: 4.777 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005686/0.1137, allocations: 293.2 kB / 343.5 MB, free: 4.492 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006191/0.1144, allocations: 362.5 kB / 343.9 MB, free: 4.125 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005096/0.1149, allocations: 267.1 kB / 344.1 MB, free: 3.867 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1149, allocations: 0 / 344.1 MB, free: 3.867 MB / 286.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001677/0.1166, allocations: 0.9162 MB / 345 MB, free: 2.941 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.1166, allocations: 4 kB / 345 MB, free: 2.938 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-06/0.1166, allocations: 0 / 345 MB, free: 2.938 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009723/0.1176, allocations: 469.9 kB / 345.5 MB, free: 2.477 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000341/0.118, allocations: 87.89 kB / 345.6 MB, free: 2.391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/0.1192, allocations: 1.083 MB / 346.7 MB, free: 1.281 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004489/0.1196, allocations: 83.98 kB / 346.8 MB, free: 1.199 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.977e-05/0.1197, allocations: 23.98 kB / 346.8 MB, free: 1.176 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.0002269/0.1199, allocations: 169.7 kB / 346.9 MB, free: 1 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.956e-05/0.12, allocations: 47.52 kB / 347 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001697/0.1202, allocations: 75.75 kB / 347.1 MB, free: 0.875 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.1202, allocations: 7.953 kB / 347.1 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.1202, allocations: 0 / 347.1 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.1203, allocations: 0 / 347.1 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003214/0.1235, allocations: 1.785 MB / 348.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.1235, allocations: 8.031 kB / 348.9 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003393/0.1238, allocations: 79.89 kB / 348.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008751/0.1247, allocations: 448.5 kB / 349.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.832e-05/0.1248, allocations: 19.97 kB / 349.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.1259, allocations: 1.036 MB / 350.4 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.1259, allocations: 7.969 kB / 350.4 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/0.1283, allocations: 1.313 MB / 351.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.1285, allocations: 184.5 kB / 351.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.704e-05/0.1286, allocations: 20 kB / 352 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000397/0.129, allocations: 72 kB / 352 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.1292, allocations: 96.36 kB / 352.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.381e-05/0.1293, allocations: 23.98 kB / 352.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002684/0.1296, allocations: 241.9 kB / 352.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1296, allocations: 0 / 352.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004667/0.13, allocations: 147.9 kB / 352.5 MB, free: 11.27 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.002708/0.1328, allocations: 1.901 MB / 354.4 MB, free: 9.344 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001416/0.1342, allocations: 0.7236 MB / 355.2 MB, free: 8.617 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1342, allocations: 0 / 355.2 MB, free: 8.617 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007776/0.135, allocations: 400.2 kB / 355.5 MB, free: 8.227 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00047/0.1355, allocations: 52.86 kB / 355.6 MB, free: 8.168 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006028/0.1415, allocations: 3.434 MB / 359 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004678/0.142, allocations: 0.8212 MB / 359.9 MB, free: 3.828 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002634/0.1423, allocations: 67.33 kB / 359.9 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.1425, allocations: 131.4 kB / 360 MB, free: 3.629 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1425, allocations: 0 / 360 MB, free: 3.629 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6491/0.7916, allocations: 12.44 MB / 372.5 MB, free: 7.18 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002466/0.7919, allocations: 228.4 kB / 372.7 MB, free: 6.93 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.2/2.992, allocations: 0 / 372.7 MB, free: 6.93 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