Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000999/0.0009989, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.009763/0.009763, allocations: 171.3 kB / 16.27 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.126/2.126, allocations: 205.4 MB / 222.5 MB, free: 5.531 MB / 174.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.0006424/0.0006427, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4048/0.4054, allocations: 47.59 MB / 327 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01076/0.4163, allocations: 6.61 MB / 333.6 MB, free: 12.17 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007395/0.4237, allocations: 2.34 MB / 336 MB, free: 10.23 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001505/0.4253, allocations: 20.81 kB / 336 MB, free: 10.23 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002214/0.4275, allocations: 449.6 kB / 336.4 MB, free: 9.922 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002208/0.4298, allocations: 335.5 kB / 336.8 MB, free: 9.598 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006055/0.4304, allocations: 171.9 kB / 336.9 MB, free: 9.43 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001746/0.4322, allocations: 1.144 MB / 338.1 MB, free: 8.281 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009017/0.4331, allocations: 434.7 kB / 338.5 MB, free: 7.836 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000793/0.4339, allocations: 386.2 kB / 338.9 MB, free: 7.457 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006063/0.4345, allocations: 433.7 kB / 339.3 MB, free: 7.031 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001252/0.4346, allocations: 56 kB / 339.4 MB, free: 6.977 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003279/0.435, allocations: 87.97 kB / 339.5 MB, free: 6.891 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001765/0.4352, allocations: 155.2 kB / 339.6 MB, free: 6.738 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006008/0.4358, allocations: 0.4991 MB / 340.1 MB, free: 6.23 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002255/0.438, allocations: 1.346 MB / 341.4 MB, free: 4.879 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.4381, allocations: 0 / 341.4 MB, free: 4.879 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.867e-06/0.4381, allocations: 4 kB / 341.5 MB, free: 4.875 MB / 270.1 MB Notification: Performance of Transformations before backend: time 3.071e-05/0.4381, allocations: 0 / 341.5 MB, free: 4.875 MB / 270.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.003431/0.4416, allocations: 1.079 MB / 342.5 MB, free: 3.746 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.162e-05/0.4417, allocations: 8.031 kB / 342.5 MB, free: 3.738 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008877/0.4426, allocations: 151.6 kB / 342.7 MB, free: 3.59 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001797/0.4444, allocations: 0.6338 MB / 343.3 MB, free: 2.91 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.4445, allocations: 66.31 kB / 343.4 MB, free: 2.848 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002074/0.4447, allocations: 84.27 kB / 343.5 MB, free: 2.766 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002459/0.4472, allocations: 0.7871 MB / 344.3 MB, free: 1.945 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.95e-05/0.4473, allocations: 3.984 kB / 344.3 MB, free: 1.941 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001286/0.4474, allocations: 32 kB / 344.3 MB, free: 1.91 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-05/0.4475, allocations: 20 kB / 344.3 MB, free: 1.891 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001813/0.4493, allocations: 0.5348 MB / 344.8 MB, free: 1.359 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007361/0.4567, allocations: 3.415 MB / 348.3 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007799/0.4575, allocations: 242.5 kB / 348.5 MB, free: 13.49 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003586/0.4579, allocations: 116.8 kB / 348.6 MB, free: 13.37 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.4579, allocations: 7.938 kB / 348.6 MB, free: 13.36 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.561e-05/0.458, allocations: 38.56 kB / 348.7 MB, free: 13.32 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 4.528e-06/0.458, allocations: 0 / 348.7 MB, free: 13.32 MB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.00347/0.4615, allocations: 1.086 MB / 349.7 MB, free: 12.16 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.4617, allocations: 81.11 kB / 349.8 MB, free: 12.06 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0016/0.4633, allocations: 0.7349 MB / 350.6 MB, free: 11.32 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.848e-05/0.4633, allocations: 25.7 kB / 350.6 MB, free: 11.29 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005821/0.4639, allocations: 0.4982 MB / 351.1 MB, free: 10.78 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001332/0.4641, allocations: 106.5 kB / 351.2 MB, free: 10.67 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.151e-05/0.4642, allocations: 49.69 kB / 351.2 MB, free: 10.62 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002526/0.4644, allocations: 382.8 kB / 351.6 MB, free: 10.23 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004035/0.4649, allocations: 129.2 kB / 351.7 MB, free: 10.11 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007485/0.4656, allocations: 426.2 kB / 352.1 MB, free: 9.555 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00122/0.4669, allocations: 0.5871 MB / 352.7 MB, free: 8.832 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.4669, allocations: 4 kB / 352.7 MB, free: 8.828 MB / 286.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001754/0.4686, allocations: 0.6265 MB / 353.4 MB, free: 8.191 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.4687, allocations: 8 kB / 353.4 MB, free: 8.184 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.191e-05/0.4687, allocations: 16.38 kB / 353.4 MB, free: 8.168 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002499/0.469, allocations: 36.84 kB / 353.4 MB, free: 8.129 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006517/0.4697, allocations: 147.7 kB / 353.6 MB, free: 7.984 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001543/0.4712, allocations: 1.296 MB / 354.9 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007814/0.472, allocations: 35.89 kB / 354.9 MB, free: 6.523 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.729e-05/0.4721, allocations: 32 kB / 354.9 MB, free: 6.492 MB / 286.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006217/0.4727, allocations: 245.5 kB / 355.2 MB, free: 6.242 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.4729, allocations: 71.16 kB / 355.2 MB, free: 6.172 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001039/0.4739, allocations: 337.4 kB / 355.6 MB, free: 5.832 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.474, allocations: 0 / 355.6 MB, free: 5.832 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.474, allocations: 7.938 kB / 355.6 MB, free: 5.824 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.474, allocations: 0 / 355.6 MB, free: 5.824 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002626/0.4766, allocations: 1.106 MB / 356.7 MB, free: 4.637 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.4766, allocations: 4 kB / 356.7 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003901/0.477, allocations: 63.89 kB / 356.7 MB, free: 4.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001441/0.4772, allocations: 16.86 kB / 356.8 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.288e-05/0.4772, allocations: 11.98 kB / 356.8 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001364/0.4786, allocations: 1.272 MB / 358 MB, free: 3.133 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/0.4786, allocations: 11.88 kB / 358.1 MB, free: 3.121 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.48, allocations: 0.5756 MB / 358.6 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004381/0.4804, allocations: 180.2 kB / 358.8 MB, free: 2.309 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.4806, allocations: 8 kB / 358.8 MB, free: 2.301 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005158/0.4811, allocations: 23.98 kB / 358.8 MB, free: 2.277 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.4812, allocations: 19.97 kB / 358.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.59e-05/0.4813, allocations: 8 kB / 358.9 MB, free: 2.25 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.001158/0.4824, allocations: 0.5069 MB / 359.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4825, allocations: 0 / 359.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.001355/0.4838, allocations: 160 kB / 359.5 MB, free: 1.59 MB / 286.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003055/0.4841, allocations: 123 kB / 359.7 MB, free: 1.461 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001427/0.4856, allocations: 475.8 kB / 360.1 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.4856, allocations: 0 / 360.1 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005627/0.4862, allocations: 252.4 kB / 360.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001677/0.4879, allocations: 171 kB / 360.5 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004056/0.4919, allocations: 1.844 MB / 362.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008908/0.4929, allocations: 0.9375 MB / 363.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006656/0.4935, allocations: 82.03 kB / 363.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.4937, allocations: 55.42 kB / 363.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of SimCode: time 2.014e-06/0.4937, allocations: 0 / 363.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of Templates: time 0.02725/0.521, allocations: 7.657 MB / 371.1 MB, free: 5.898 MB / 302.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)