Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_4_0_0_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.0008035/0.0008035, allocations: 90.67 kB / 16.31 MB, free: 5.66 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.0008309/0.0008311, allocations: 178.9 kB / 17.2 MB, free: 5.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.404/1.404, allocations: 223.2 MB / 241.2 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002744/0.0002744, allocations: 6.375 kB / 300.9 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.109, allocations: 50.42 MB / 351.3 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.00734/0.1164, allocations: 6.275 MB / 357.6 MB, free: 5.316 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004111/0.1206, allocations: 2.187 MB / 359.8 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009245/0.1215, allocations: 19.94 kB / 359.8 MB, free: 3.105 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001562/0.1231, allocations: 421.7 kB / 360.2 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001286/0.1244, allocations: 313.6 kB / 360.5 MB, free: 2.383 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005421/0.125, allocations: 127.8 kB / 360.7 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001641/0.1266, allocations: 1.08 MB / 361.7 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007752/0.1274, allocations: 356.6 kB / 362.1 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007267/0.1282, allocations: 370.3 kB / 362.4 MB, free: 460 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007585/0.1289, allocations: 410.1 kB / 362.9 MB, free: 48 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002169/0.1292, allocations: 60.05 kB / 362.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004726/0.1296, allocations: 87.92 kB / 363 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001908/0.1298, allocations: 151.3 kB / 363.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003871/0.1302, allocations: 217.2 kB / 363.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.1316, allocations: 1.129 MB / 364.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.1316, allocations: 0 / 364.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1316, allocations: 0 / 364.5 MB, free: 14.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.82e-05/0.1316, allocations: 0 / 364.5 MB, free: 14.4 MB / 302.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.002312/0.134, allocations: 1.106 MB / 365.6 MB, free: 13.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.134, allocations: 8.031 kB / 365.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002633/0.1343, allocations: 130.8 kB / 365.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005254/0.1348, allocations: 146.6 kB / 365.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001279/0.1361, allocations: 0.6174 MB / 366.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.017e-05/0.1362, allocations: 58 kB / 366.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.1363, allocations: 80 kB / 366.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.1379, allocations: 0.7793 MB / 367.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.767e-05/0.1379, allocations: 7.844 kB / 367.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.791e-05/0.138, allocations: 35.95 kB / 367.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/0.138, allocations: 20 kB / 367.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.1392, allocations: 0.5309 MB / 368 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004827/0.1441, allocations: 3.403 MB / 371.4 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005364/0.1446, allocations: 234.5 kB / 371.6 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002561/0.1449, allocations: 124.7 kB / 371.7 MB, free: 6.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.429e-05/0.1449, allocations: 7.938 kB / 371.8 MB, free: 6.773 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/0.145, allocations: 38.56 kB / 371.8 MB, free: 6.727 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 2.114e-06/0.145, allocations: 0 / 371.8 MB, free: 6.727 MB / 302.1 MB Notification: Performance of matching and sorting (n=28): time 0.002421/0.1474, allocations: 1.08 MB / 372.9 MB, free: 5.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.717e-05/0.1475, allocations: 81.34 kB / 373 MB, free: 5.473 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001173/0.1487, allocations: 0.7309 MB / 373.7 MB, free: 4.734 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.078e-05/0.1487, allocations: 29.7 kB / 373.7 MB, free: 4.699 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003832/0.1491, allocations: 498.2 kB / 374.2 MB, free: 4.203 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.528e-05/0.1492, allocations: 110.5 kB / 374.3 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.061e-05/0.1493, allocations: 19.94 kB / 374.3 MB, free: 4.074 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001706/0.1494, allocations: 370.8 kB / 374.7 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002868/0.1497, allocations: 137.2 kB / 374.8 MB, free: 3.566 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004635/0.1502, allocations: 422.2 kB / 375.2 MB, free: 3.023 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003595/0.1506, allocations: 195.9 kB / 375.4 MB, free: 2.832 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.1506, allocations: 4 kB / 375.4 MB, free: 2.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001108/0.1517, allocations: 0.615 MB / 376 MB, free: 2.203 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.856e-05/0.1517, allocations: 16.05 kB / 376.1 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/0.1518, allocations: 12 kB / 376.1 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001635/0.1519, allocations: 32.84 kB / 376.1 MB, free: 2.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004318/0.1524, allocations: 143.8 kB / 376.2 MB, free: 2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.1535, allocations: 1.292 MB / 377.5 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004532/0.1539, allocations: 35.98 kB / 377.6 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.019e-05/0.154, allocations: 32.16 kB / 377.6 MB, free: 0.5078 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.000328/0.1543, allocations: 236.3 kB / 377.8 MB, free: 276 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.1544, allocations: 79.02 kB / 377.9 MB, free: 196 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006702/0.1551, allocations: 337.9 kB / 378.2 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.1551, allocations: 4 kB / 378.2 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1551, allocations: 0 / 378.2 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.1552, allocations: 0 / 378.2 MB, free: 15.85 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.1568, allocations: 1.118 MB / 379.4 MB, free: 14.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.1568, allocations: 4 kB / 379.4 MB, free: 14.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002555/0.1571, allocations: 63.91 kB / 379.4 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.514e-05/0.1572, allocations: 24.84 kB / 379.5 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.1572, allocations: 12.17 kB / 379.5 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009799/0.1582, allocations: 1.276 MB / 380.7 MB, free: 13.13 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.1582, allocations: 8.094 kB / 380.7 MB, free: 13.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000893/0.1591, allocations: 0.5755 MB / 381.3 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002242/0.1594, allocations: 172.2 kB / 381.5 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.562e-05/0.1595, allocations: 8 kB / 381.5 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003053/0.1598, allocations: 19.98 kB / 381.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.911e-05/0.1599, allocations: 23.97 kB / 381.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.1599, allocations: 16 kB / 381.6 MB, free: 12.25 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006694/0.1606, allocations: 0.499 MB / 382.1 MB, free: 11.76 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1606, allocations: 0 / 382.1 MB, free: 11.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006571/0.1613, allocations: 160 kB / 382.2 MB, free: 11.6 MB / 318.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.001264/0.1625, allocations: 1.148 MB / 383.4 MB, free: 10.4 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009346/0.1635, allocations: 464.9 kB / 383.8 MB, free: 9.934 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.1635, allocations: 0.5 kB / 383.8 MB, free: 9.934 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003817/0.1639, allocations: 248.6 kB / 384.1 MB, free: 9.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009186/0.1648, allocations: 178 kB / 384.2 MB, free: 9.512 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007562/0.1724, allocations: 4.372 MB / 388.6 MB, free: 4.926 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006354/0.1731, allocations: 0.9414 MB / 389.5 MB, free: 3.953 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003938/0.1735, allocations: 90.02 kB / 389.6 MB, free: 3.863 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003926/0.1739, allocations: 299.3 kB / 389.9 MB, free: 3.57 MB / 318.1 MB Notification: Performance of SimCode: time 9.22e-07/0.1739, allocations: 0 / 389.9 MB, free: 3.57 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03419/0.2081, allocations: 14.14 MB / 404.1 MB, free: 5.695 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002318/0.2083, allocations: 219.6 kB / 404.3 MB, free: 5.457 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.109/2.317, allocations: 0 / 404.3 MB, free: 5.457 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat