Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.001106/0.001106, allocations: 98.11 kB / 16.94 MB, free: 6.441 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.001447/0.001447, allocations: 188.6 kB / 17.83 MB, free: 6.008 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.538/1.538, allocations: 205.4 MB / 224 MB, free: 13.17 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.0005194/0.0005196, allocations: 15.44 kB / 280.9 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1151, allocations: 47.57 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003242/0.1184, allocations: 1.946 MB / 330.4 MB, free: 2.051 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002134/0.1206, allocations: 0.9653 MB / 331.3 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001736/0.1208, allocations: 7.938 kB / 331.3 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001631/0.121, allocations: 35.7 kB / 331.4 MB, free: 1.035 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006261/0.1216, allocations: 143.6 kB / 331.5 MB, free: 0.8945 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004339/0.1221, allocations: 143.7 kB / 331.7 MB, free: 0.7539 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004889/0.1226, allocations: 299.3 kB / 331.9 MB, free: 472 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/0.1228, allocations: 76.91 kB / 332 MB, free: 392 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003261/0.1231, allocations: 175.5 kB / 332.2 MB, free: 216 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003351/0.1235, allocations: 215.2 kB / 332.4 MB, free: 0 / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.555e-05/0.1236, allocations: 20.05 kB / 332.4 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002195/0.1238, allocations: 87.89 kB / 332.5 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001456/0.124, allocations: 79.72 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.59e-05/0.1241, allocations: 85.5 kB / 332.7 MB, free: 15.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005004/0.1246, allocations: 363.3 kB / 333 MB, free: 15.37 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.1246, allocations: 0 / 333 MB, free: 15.37 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1246, allocations: 4 kB / 333 MB, free: 15.37 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.1246, allocations: 0 / 333 MB, free: 15.37 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001466/0.1261, allocations: 0.6119 MB / 333.6 MB, free: 14.71 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.1262, allocations: 12.03 kB / 333.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.1263, allocations: 66.53 kB / 333.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004375/0.1267, allocations: 59.59 kB / 333.8 MB, free: 14.56 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005833/0.1273, allocations: 310.3 kB / 334.1 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001542/0.1275, allocations: 88.05 kB / 334.2 MB, free: 14.12 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.616e-05/0.1276, allocations: 32 kB / 334.2 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007731/0.1283, allocations: 412.9 kB / 334.6 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.797e-05/0.1284, allocations: 3.984 kB / 334.6 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.238e-05/0.1284, allocations: 16 kB / 334.6 MB, free: 13.65 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.1284, allocations: 11.94 kB / 334.6 MB, free: 13.64 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00101/0.1295, allocations: 482.3 kB / 335.1 MB, free: 13.17 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001947/0.1314, allocations: 0.9969 MB / 336.1 MB, free: 12.12 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.1326, allocations: 408.5 kB / 336.5 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.354e-05/0.1327, allocations: 8.438 kB / 336.5 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.269e-05/0.1327, allocations: 39.19 kB / 336.5 MB, free: 11.66 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 2.735e-06/0.1327, allocations: 3.938 kB / 336.5 MB, free: 11.65 MB / 286.1 MB Notification: Performance of matching and sorting (n=55): time 0.007277/0.14, allocations: 2.203 MB / 338.8 MB, free: 9.336 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.618e-05/0.1401, allocations: 85.67 kB / 338.8 MB, free: 9.234 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004549/0.1406, allocations: 263 kB / 339.1 MB, free: 8.969 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.223e-05/0.1407, allocations: 41.7 kB / 339.1 MB, free: 8.922 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.1408, allocations: 133.1 kB / 339.3 MB, free: 8.785 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000212/0.141, allocations: 189.3 kB / 339.4 MB, free: 8.598 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.652e-05/0.1411, allocations: 4 kB / 339.5 MB, free: 8.594 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1412, allocations: 342.8 kB / 339.8 MB, free: 8.25 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006005/0.1418, allocations: 201 kB / 340 MB, free: 8.055 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006753/0.1425, allocations: 252.6 kB / 340.2 MB, free: 7.797 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005798/0.1431, allocations: 194.2 kB / 340.4 MB, free: 7.609 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1431, allocations: 0 / 340.4 MB, free: 7.609 MB / 286.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001769/0.1449, allocations: 0.6173 MB / 341 MB, free: 6.984 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.145, allocations: 19.94 kB / 341.1 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.145, allocations: 0 / 341.1 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.146, allocations: 254.1 kB / 341.3 MB, free: 6.715 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004586/0.1465, allocations: 63.89 kB / 341.4 MB, free: 6.652 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005444/0.152, allocations: 2.761 MB / 344.1 MB, free: 3.758 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005057/0.1525, allocations: 39.92 kB / 344.2 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.987e-05/0.1526, allocations: 12 kB / 344.2 MB, free: 3.707 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003285/0.1529, allocations: 161.8 kB / 344.3 MB, free: 3.539 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.153, allocations: 31.62 kB / 344.4 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001374/0.1532, allocations: 47.38 kB / 344.4 MB, free: 3.461 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.1532, allocations: 4 kB / 344.4 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.1532, allocations: 0 / 344.4 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/0.1532, allocations: 11.97 kB / 344.4 MB, free: 3.445 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003157/0.1564, allocations: 1.28 MB / 345.7 MB, free: 2.102 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.1564, allocations: 3.953 kB / 345.7 MB, free: 2.098 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004345/0.1569, allocations: 71.98 kB / 345.8 MB, free: 2.027 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008818/0.1578, allocations: 240.6 kB / 346 MB, free: 1.789 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.766e-05/0.1579, allocations: 15.98 kB / 346 MB, free: 1.773 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00407/0.1619, allocations: 2.647 MB / 348.7 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.162, allocations: 0 / 348.7 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001768/0.1638, allocations: 0.9901 MB / 349.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002011/0.164, allocations: 156.7 kB / 349.8 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.251e-05/0.1641, allocations: 16 kB / 349.8 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003922/0.1645, allocations: 40.03 kB / 349.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/0.1647, allocations: 80.25 kB / 350 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.319e-05/0.1647, allocations: 15.98 kB / 350 MB, free: 13.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002362/0.1649, allocations: 196.6 kB / 350.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.1649, allocations: 0 / 350.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006402/0.1656, allocations: 152 kB / 350.3 MB, free: 13.32 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: 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 (31): * Single equations (assignments): 30 * 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.002314/0.1679, allocations: 1.662 MB / 352 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.1694, allocations: 0.7073 MB / 352.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.1694, allocations: 0 / 352.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008223/0.1703, allocations: 483.7 kB / 353.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.1707, allocations: 40.5 kB / 353.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004286/0.175, allocations: 2.593 MB / 355.8 MB, free: 7.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004497/0.1754, allocations: 0.8048 MB / 356.6 MB, free: 6.898 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000227/0.1757, allocations: 66.92 kB / 356.7 MB, free: 6.828 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001667/0.1759, allocations: 95.39 kB / 356.8 MB, free: 6.734 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1759, allocations: 0 / 356.8 MB, free: 6.734 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02473/0.2006, allocations: 9.78 MB / 366.5 MB, free: 12.95 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/0.2008, allocations: 211.1 kB / 366.7 MB, free: 12.71 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.04/2.241, allocations: 0 / 366.7 MB, free: 12.71 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat