Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_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.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_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.0009834/0.0009834, allocations: 89.5 kB / 16.31 MB, free: 5.684 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.001077/0.001077, allocations: 177.2 kB / 17.21 MB, free: 5.602 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.479/1.479, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002945/0.0002947, allocations: 8.406 kB / 300.9 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1045, allocations: 50.43 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.00831/0.1129, allocations: 7.008 MB / 358.4 MB, free: 4.574 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005416/0.1184, allocations: 2.425 MB / 360.8 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001691/0.1201, allocations: 23.94 kB / 360.8 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002055/0.1222, allocations: 469.4 kB / 361.3 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001995/0.1242, allocations: 369.2 kB / 361.6 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007721/0.125, allocations: 163.7 kB / 361.8 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002675/0.1277, allocations: 1.295 MB / 363.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001709/0.1294, allocations: 427.2 kB / 363.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001436/0.1309, allocations: 438 kB / 363.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001089/0.132, allocations: 493.6 kB / 364.4 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003268/0.1323, allocations: 64 kB / 364.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006295/0.133, allocations: 99.98 kB / 364.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002816/0.1333, allocations: 187.1 kB / 364.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006557/0.1339, allocations: 257.1 kB / 365 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001652/0.1356, allocations: 1.332 MB / 366.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.1356, allocations: 0 / 366.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1356, allocations: 0 / 366.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.479e-05/0.1357, allocations: 0 / 366.3 MB, free: 12.54 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: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.002914/0.1386, allocations: 1.254 MB / 367.6 MB, free: 11.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.1387, allocations: 15.91 kB / 367.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003943/0.1391, allocations: 152.1 kB / 367.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007149/0.1398, allocations: 170.5 kB / 367.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001593/0.1414, allocations: 0.6835 MB / 368.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.772e-05/0.1415, allocations: 70 kB / 368.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001514/0.1416, allocations: 99.98 kB / 368.8 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001944/0.1436, allocations: 0.9268 MB / 369.7 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.846e-05/0.1436, allocations: 3.906 kB / 369.7 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.083e-05/0.1437, allocations: 51.89 kB / 369.7 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.485e-05/0.1438, allocations: 24 kB / 369.8 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.1452, allocations: 0.6246 MB / 370.4 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006195/0.1514, allocations: 3.932 MB / 374.3 MB, free: 4.176 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000673/0.1521, allocations: 357.3 kB / 374.7 MB, free: 3.801 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003852/0.1525, allocations: 149.3 kB / 374.8 MB, free: 3.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.356e-05/0.1526, allocations: 7.984 kB / 374.8 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.1526, allocations: 46.55 kB / 374.9 MB, free: 3.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.535e-06/0.1526, allocations: 0 / 374.9 MB, free: 3.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002622/0.1552, allocations: 1.219 MB / 376.1 MB, free: 2.293 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.434e-05/0.1553, allocations: 81.11 kB / 376.2 MB, free: 2.195 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/0.1566, allocations: 0.8174 MB / 377 MB, free: 1.367 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.374e-05/0.1566, allocations: 33.7 kB / 377 MB, free: 1.328 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000455/0.1571, allocations: 0.5679 MB / 377.6 MB, free: 0.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002054/0.1573, allocations: 138.1 kB / 377.7 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.905e-05/0.1573, allocations: 16 kB / 377.7 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.1575, allocations: 333.9 kB / 378.1 MB, free: 272 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000324/0.1578, allocations: 149.9 kB / 378.2 MB, free: 124 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005256/0.1584, allocations: 467.9 kB / 378.7 MB, free: 15.52 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004379/0.1588, allocations: 223.9 kB / 378.9 MB, free: 15.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.1589, allocations: 4 kB / 378.9 MB, free: 15.3 MB / 318.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001468/0.1603, allocations: 0.7006 MB / 379.6 MB, free: 14.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.828e-05/0.1604, allocations: 8 kB / 379.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/0.1604, allocations: 12 kB / 379.6 MB, free: 14.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001598/0.1606, allocations: 32.89 kB / 379.6 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005156/0.1611, allocations: 175.9 kB / 379.8 MB, free: 14.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.1626, allocations: 1.288 MB / 381.1 MB, free: 12.94 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006712/0.1632, allocations: 35.89 kB / 381.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.998e-05/0.1633, allocations: 36 kB / 381.2 MB, free: 12.87 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (84): * Single equations (assignments): 83 * 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.0004855/0.1638, allocations: 253.6 kB / 381.4 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001809/0.164, allocations: 79.16 kB / 381.5 MB, free: 12.53 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008376/0.1648, allocations: 390.2 kB / 381.9 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.1649, allocations: 4 kB / 381.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1649, allocations: 8 kB / 381.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.469e-06/0.1649, allocations: 0 / 381.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002471/0.1674, allocations: 1.281 MB / 383.2 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.1674, allocations: 0 / 383.2 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000327/0.1677, allocations: 80.11 kB / 383.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000103/0.1678, allocations: 24.84 kB / 383.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/0.1679, allocations: 8 kB / 383.3 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001199/0.1691, allocations: 1.288 MB / 384.6 MB, free: 9.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.1691, allocations: 7.984 kB / 384.6 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.1703, allocations: 0.651 MB / 385.2 MB, free: 8.527 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003388/0.1706, allocations: 188.1 kB / 385.4 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001358/0.1708, allocations: 12 kB / 385.4 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003962/0.1712, allocations: 35.92 kB / 385.5 MB, free: 8.277 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.528e-05/0.1713, allocations: 31.91 kB / 385.5 MB, free: 8.246 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.026e-05/0.1713, allocations: 8 kB / 385.5 MB, free: 8.238 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008663/0.1722, allocations: 0.5537 MB / 386.1 MB, free: 7.691 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1722, allocations: 0 / 386.1 MB, free: 7.691 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008356/0.173, allocations: 192 kB / 386.2 MB, free: 7.504 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,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 (34): * Single equations (assignments): 33 * 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.001581/0.1746, allocations: 1.215 MB / 387.5 MB, free: 6.238 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.1757, allocations: 0.5107 MB / 388 MB, free: 5.715 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1757, allocations: 1.938 kB / 388 MB, free: 5.715 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004343/0.1762, allocations: 274.9 kB / 388.2 MB, free: 5.434 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.1774, allocations: 202 kB / 388.4 MB, free: 5.234 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009744/0.1871, allocations: 5.116 MB / 393.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007988/0.188, allocations: 1 MB / 394.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005189/0.1885, allocations: 98.88 kB / 394.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005088/0.189, allocations: 367.3 kB / 395 MB, free: 14.34 MB / 334.1 MB Notification: Performance of SimCode: time 1.502e-06/0.189, allocations: 0 / 395 MB, free: 14.34 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03708/0.2261, allocations: 16.4 MB / 411.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002271/0.2264, allocations: 239 kB / 411.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.243/2.47, allocations: 0 / 411.6 MB, free: 13.97 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCEE_Start.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat does not exist to compare? outputFormat=mat