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.001027/0.001028, allocations: 94.03 kB / 16.93 MB, free: 5.984 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.0009189/0.000919, allocations: 180.1 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.492/1.492, 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.0005087/0.0005089, allocations: 19.28 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1234, allocations: 47.57 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007153/0.1306, allocations: 5.683 MB / 334.1 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004398/0.1351, allocations: 2.27 MB / 336.4 MB, free: 12 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.1361, allocations: 16 kB / 336.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001714/0.1379, allocations: 426 kB / 336.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001612/0.1395, allocations: 398.8 kB / 337.2 MB, free: 11.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005992/0.1401, allocations: 123.8 kB / 337.3 MB, free: 11.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002122/0.1423, allocations: 0.8507 MB / 338.2 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008201/0.1431, allocations: 360.5 kB / 338.5 MB, free: 9.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007414/0.1439, allocations: 346.6 kB / 338.9 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007854/0.1447, allocations: 386.2 kB / 339.2 MB, free: 9.121 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001895/0.1449, allocations: 48 kB / 339.3 MB, free: 9.074 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004786/0.1454, allocations: 99.89 kB / 339.4 MB, free: 8.977 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.1455, allocations: 139.4 kB / 339.5 MB, free: 8.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003315/0.1459, allocations: 221.2 kB / 339.7 MB, free: 8.617 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001233/0.1471, allocations: 1.079 MB / 340.8 MB, free: 7.535 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.1471, allocations: 0 / 340.8 MB, free: 7.535 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1471, allocations: 0 / 340.8 MB, free: 7.535 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.422e-05/0.1472, allocations: 0 / 340.8 MB, free: 7.535 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.002102/0.1493, allocations: 1.083 MB / 341.9 MB, free: 6.402 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.412e-05/0.1494, allocations: 12.03 kB / 341.9 MB, free: 6.391 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000261/0.1496, allocations: 126.9 kB / 342 MB, free: 6.258 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004498/0.1501, allocations: 130.7 kB / 342.2 MB, free: 6.129 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/0.1513, allocations: 0.6212 MB / 342.8 MB, free: 5.461 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.73e-05/0.1514, allocations: 61.94 kB / 342.8 MB, free: 5.402 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.1515, allocations: 76 kB / 342.9 MB, free: 5.328 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/0.1531, allocations: 0.7754 MB / 343.7 MB, free: 4.52 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.651e-05/0.1531, allocations: 3.906 kB / 343.7 MB, free: 4.516 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.427e-05/0.1532, allocations: 32 kB / 343.7 MB, free: 4.484 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.995e-05/0.1532, allocations: 20 kB / 343.8 MB, free: 4.465 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00121/0.1545, allocations: 0.5309 MB / 344.3 MB, free: 3.938 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004634/0.1591, allocations: 3.345 MB / 347.6 MB, free: 396 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005004/0.1596, allocations: 246.3 kB / 347.9 MB, free: 140 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.1597, allocations: 4 kB / 347.9 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.1597, allocations: 34.56 kB / 347.9 MB, free: 92 kB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 2.575e-06/0.1597, allocations: 0 / 347.9 MB, free: 92 kB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.002165/0.1619, allocations: 1.082 MB / 349 MB, free: 14.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.994e-05/0.162, allocations: 81.11 kB / 349.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008333/0.1628, allocations: 0.6723 MB / 349.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.1628, allocations: 29.7 kB / 349.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003965/0.1633, allocations: 0.4943 MB / 350.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.52e-05/0.1634, allocations: 106.5 kB / 350.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.976e-05/0.1634, allocations: 12 kB / 350.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002134/0.1636, allocations: 382.7 kB / 350.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002775/0.1639, allocations: 129.2 kB / 350.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005011/0.1644, allocations: 426.1 kB / 351.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003597/0.1648, allocations: 191.9 kB / 351.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.1648, allocations: 0 / 351.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00101/0.1658, allocations: 0.6189 MB / 352.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.1658, allocations: 12 kB / 352.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.1659, allocations: 8 kB / 352.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000162/0.166, allocations: 36.84 kB / 352.2 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004349/0.1665, allocations: 144.1 kB / 352.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001123/0.1676, allocations: 1.299 MB / 353.6 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004338/0.1681, allocations: 40 kB / 353.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.798e-05/0.1681, allocations: 28 kB / 353.7 MB, free: 9.918 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.0003555/0.1685, allocations: 233.6 kB / 353.9 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.351e-05/0.1686, allocations: 75.06 kB / 354 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006415/0.1692, allocations: 341.7 kB / 354.3 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.1693, allocations: 4 kB / 354.3 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1693, allocations: 3.953 kB / 354.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1693, allocations: 4 kB / 354.3 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001565/0.1708, allocations: 1.078 MB / 355.4 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.1709, allocations: 4 kB / 355.4 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000277/0.1711, allocations: 64.12 kB / 355.5 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.62e-05/0.1712, allocations: 20.84 kB / 355.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.1713, allocations: 8 kB / 355.5 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009442/0.1722, allocations: 1.284 MB / 356.8 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1722, allocations: 0 / 356.8 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009257/0.1732, allocations: 0.6459 MB / 357.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/0.1734, allocations: 168.3 kB / 357.6 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.024e-05/0.1734, allocations: 8 kB / 357.6 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002923/0.1737, allocations: 27.88 kB / 357.6 MB, free: 5.629 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.208e-05/0.1738, allocations: 31.91 kB / 357.6 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.523e-05/0.1738, allocations: 8 kB / 357.7 MB, free: 5.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005727/0.1744, allocations: 463 kB / 358.1 MB, free: 5.141 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1744, allocations: 0 / 358.1 MB, free: 5.141 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006723/0.1751, allocations: 156 kB / 358.3 MB, free: 4.988 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.001514/0.1766, allocations: 1.703 MB / 360 MB, free: 3.207 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008685/0.1775, allocations: 469.4 kB / 360.4 MB, free: 2.738 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.1775, allocations: 0 / 360.4 MB, free: 2.738 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.1779, allocations: 251 kB / 360.7 MB, free: 2.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008228/0.1787, allocations: 162.8 kB / 360.8 MB, free: 2.328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009893/0.1886, allocations: 10.69 MB / 371.5 MB, free: 7.371 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006653/0.1893, allocations: 0.9566 MB / 372.5 MB, free: 6.383 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004071/0.1898, allocations: 89.92 kB / 372.6 MB, free: 6.293 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003583/0.1901, allocations: 295.3 kB / 372.8 MB, free: 6.004 MB / 318.1 MB Notification: Performance of SimCode: time 1.272e-06/0.1901, allocations: 4 kB / 372.8 MB, free: 6 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2175/0.4077, allocations: 13.56 MB / 386.4 MB, free: 51.4 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001885/0.4079, allocations: 218.8 kB / 386.6 MB, free: 51.15 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.961/2.369, allocations: 1.344 kB / 386.6 MB, free: 51.15 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