Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",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.001053/0.001053, allocations: 94.58 kB / 16.95 MB, free: 6.891 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.001253/0.001253, allocations: 185.9 kB / 17.84 MB, free: 6.137 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.863/1.863, 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.0004886/0.0004887, allocations: 12 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1269, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009167/0.1361, allocations: 6.25 MB / 334.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004777/0.1409, allocations: 2.215 MB / 336.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005321/0.1415, allocations: 19.94 kB / 336.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.1428, allocations: 421.7 kB / 337.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008432/0.1437, allocations: 309.7 kB / 337.6 MB, free: 10.74 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004203/0.1441, allocations: 127.8 kB / 337.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001319/0.1454, allocations: 1.085 MB / 338.9 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006766/0.1461, allocations: 360.6 kB / 339.2 MB, free: 9.168 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005451/0.1467, allocations: 374.2 kB / 339.6 MB, free: 8.801 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005517/0.1473, allocations: 410.1 kB / 340 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.1474, allocations: 52 kB / 340 MB, free: 8.348 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002972/0.1477, allocations: 95.95 kB / 340.1 MB, free: 8.254 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001696/0.1479, allocations: 155.2 kB / 340.3 MB, free: 8.102 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002367/0.1481, allocations: 221.2 kB / 340.5 MB, free: 7.879 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001352/0.1495, allocations: 1.126 MB / 341.6 MB, free: 6.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1495, allocations: 0 / 341.6 MB, free: 6.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1495, allocations: 0 / 341.6 MB, free: 6.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.1495, allocations: 0 / 341.6 MB, free: 6.75 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002348/0.1519, allocations: 1.099 MB / 342.7 MB, free: 5.602 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.152, allocations: 8.031 kB / 342.7 MB, free: 5.594 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001973/0.1522, allocations: 126.9 kB / 342.8 MB, free: 5.461 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006736/0.1529, allocations: 146.6 kB / 343 MB, free: 5.316 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00131/0.1542, allocations: 0.6251 MB / 343.6 MB, free: 4.645 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.314e-05/0.1543, allocations: 54 kB / 343.7 MB, free: 4.594 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001533/0.1544, allocations: 79.98 kB / 343.7 MB, free: 4.516 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001927/0.1564, allocations: 0.7832 MB / 344.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.1e-05/0.1564, allocations: 7.891 kB / 344.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.677e-05/0.1565, allocations: 32 kB / 344.6 MB, free: 3.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.792e-05/0.1566, allocations: 20 kB / 344.6 MB, free: 3.641 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001541/0.1581, allocations: 0.5309 MB / 345.1 MB, free: 3.113 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005616/0.1637, allocations: 3.399 MB / 348.5 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007072/0.1645, allocations: 248.5 kB / 348.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003608/0.1649, allocations: 124.8 kB / 348.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.633e-05/0.1649, allocations: 0 / 348.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.1649, allocations: 42.5 kB / 348.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.155e-06/0.165, allocations: 4 kB / 348.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002854/0.1678, allocations: 1.075 MB / 350 MB, free: 13.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.373e-05/0.1679, allocations: 81.11 kB / 350.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.1692, allocations: 0.7348 MB / 350.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.1693, allocations: 29.7 kB / 350.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004416/0.1697, allocations: 0.4904 MB / 351.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.1698, allocations: 110.5 kB / 351.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-05/0.1699, allocations: 8 kB / 351.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002043/0.1701, allocations: 390.7 kB / 351.8 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004339/0.1706, allocations: 125.2 kB / 351.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006514/0.1712, allocations: 422.2 kB / 352.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005252/0.1718, allocations: 195.9 kB / 352.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.498e-06/0.1718, allocations: 4 kB / 352.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001575/0.1734, allocations: 0.623 MB / 353.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/0.1734, allocations: 8 kB / 353.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/0.1735, allocations: 8 kB / 353.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002052/0.1737, allocations: 32.84 kB / 353.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007011/0.1744, allocations: 143.8 kB / 353.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/0.1757, allocations: 1.299 MB / 354.7 MB, free: 8.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007275/0.1765, allocations: 40.14 kB / 354.7 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.217e-05/0.1765, allocations: 28 kB / 354.7 MB, free: 8.852 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 72 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004885/0.177, allocations: 237.5 kB / 355 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001461/0.1772, allocations: 71.06 kB / 355 MB, free: 8.539 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009619/0.1782, allocations: 337.7 kB / 355.4 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.1782, allocations: 7.953 kB / 355.4 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1782, allocations: 3.984 kB / 355.4 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1782, allocations: 0 / 355.4 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/0.1804, allocations: 1.113 MB / 356.5 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-06/0.1805, allocations: 4 kB / 356.5 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000377/0.1809, allocations: 67.83 kB / 356.6 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001073/0.181, allocations: 17.08 kB / 356.6 MB, free: 6.906 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.857e-05/0.181, allocations: 12 kB / 356.6 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.1822, allocations: 1.28 MB / 357.9 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.1822, allocations: 0 / 357.9 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001205/0.1834, allocations: 0.5716 MB / 358.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003073/0.1837, allocations: 176.2 kB / 358.6 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.1839, allocations: 11.98 kB / 358.6 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000489/0.1844, allocations: 19.98 kB / 358.6 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.367e-05/0.1845, allocations: 35.86 kB / 358.7 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.484e-05/0.1845, allocations: 8 kB / 358.7 MB, free: 4.602 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009465/0.1855, allocations: 0.4912 MB / 359.2 MB, free: 4.113 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1855, allocations: 0 / 359.2 MB, free: 4.113 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001154/0.1867, allocations: 168 kB / 359.3 MB, free: 3.949 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001701/0.1884, allocations: 1.132 MB / 360.5 MB, free: 2.766 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001218/0.1896, allocations: 473.3 kB / 360.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.1896, allocations: 0 / 360.9 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005004/0.1901, allocations: 254.5 kB / 361.2 MB, free: 2.031 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/0.1915, allocations: 175.5 kB / 361.4 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.2021, allocations: 4.356 MB / 365.7 MB, free: 13.29 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000726/0.2029, allocations: 0.9411 MB / 366.7 MB, free: 12.32 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000588/0.2035, allocations: 89.97 kB / 366.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005291/0.2041, allocations: 303.3 kB / 367 MB, free: 11.93 MB / 318.1 MB Notification: Performance of SimCode: time 1.192e-06/0.2041, allocations: 0 / 367 MB, free: 11.93 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2941/0.4982, allocations: 14.14 MB / 381.2 MB, free: 50.65 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002514/0.4985, allocations: 216.6 kB / 381.4 MB, free: 50.41 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.271/2.77, allocations: 3.938 kB / 381.4 MB, free: 50.41 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat