Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001225/0.001225, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001734/0.001734, allocations: 195.3 kB / 16.14 MB, free: 6.715 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.737/1.737, allocations: 205.1 MB / 222 MB, free: 4.98 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.001264/0.001265, allocations: 55.92 kB / 278.1 MB, free: 12.99 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3665/0.3678, allocations: 46.62 MB / 324.7 MB, free: 2.059 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01029/0.3781, allocations: 7.075 MB / 331.8 MB, free: 12.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006315/0.3845, allocations: 2.362 MB / 334.1 MB, free: 10.51 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001378/0.386, allocations: 16.44 kB / 334.1 MB, free: 10.51 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001719/0.3877, allocations: 447.7 kB / 334.6 MB, free: 10.21 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00157/0.3893, allocations: 337.5 kB / 334.9 MB, free: 9.914 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004855/0.3898, allocations: 175.3 kB / 335.1 MB, free: 9.762 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001615/0.3914, allocations: 1.139 MB / 336.2 MB, free: 8.77 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009266/0.3923, allocations: 442.7 kB / 336.6 MB, free: 8.316 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009807/0.3933, allocations: 418.1 kB / 337.1 MB, free: 7.906 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006272/0.394, allocations: 473.8 kB / 337.5 MB, free: 7.441 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001232/0.3941, allocations: 68 kB / 337.6 MB, free: 7.375 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004228/0.3945, allocations: 108 kB / 337.7 MB, free: 7.27 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001952/0.3948, allocations: 187.1 kB / 337.9 MB, free: 7.086 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006405/0.3954, allocations: 0.5014 MB / 338.4 MB, free: 6.582 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001729/0.3971, allocations: 1.378 MB / 339.7 MB, free: 5.199 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.137e-05/0.3972, allocations: 0 / 339.7 MB, free: 5.199 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.3972, allocations: 0 / 339.7 MB, free: 5.199 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.3972, allocations: 4 kB / 339.8 MB, free: 5.195 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.00281/0.4, allocations: 1.25 MB / 341 MB, free: 3.895 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.4001, allocations: 8.031 kB / 341 MB, free: 3.887 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005997/0.4007, allocations: 139.7 kB / 341.1 MB, free: 3.75 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001122/0.4018, allocations: 0.6376 MB / 341.8 MB, free: 3.066 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.034e-05/0.4019, allocations: 62.36 kB / 341.8 MB, free: 3.008 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001262/0.402, allocations: 84.38 kB / 341.9 MB, free: 2.926 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.4035, allocations: 0.7832 MB / 342.7 MB, free: 2.109 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.807e-05/0.4036, allocations: 7.844 kB / 342.7 MB, free: 2.102 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.622e-05/0.4036, allocations: 32 kB / 342.8 MB, free: 2.07 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.589e-05/0.4037, allocations: 24 kB / 342.8 MB, free: 2.047 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001209/0.4049, allocations: 0.5114 MB / 343.3 MB, free: 1.539 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004675/0.4096, allocations: 3.403 MB / 346.7 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005505/0.4102, allocations: 234.5 kB / 346.9 MB, free: 13.69 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002407/0.4104, allocations: 108.8 kB / 347 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.54e-05/0.4105, allocations: 7.984 kB / 347 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.4105, allocations: 38.56 kB / 347.1 MB, free: 13.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 2.144e-06/0.4105, allocations: 0 / 347.1 MB, free: 13.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.002392/0.4129, allocations: 1.055 MB / 348.1 MB, free: 12.39 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.329e-05/0.413, allocations: 81.11 kB / 348.2 MB, free: 12.3 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001111/0.4141, allocations: 0.7309 MB / 348.9 MB, free: 11.56 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.057e-05/0.4142, allocations: 29.7 kB / 349 MB, free: 11.52 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004018/0.4146, allocations: 0.4981 MB / 349.5 MB, free: 11.02 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.174e-05/0.4147, allocations: 98.56 kB / 349.6 MB, free: 10.92 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001739/0.4148, allocations: 118.2 kB / 349.7 MB, free: 10.79 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.4151, allocations: 382.8 kB / 350 MB, free: 10.41 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002646/0.4153, allocations: 121.2 kB / 350.2 MB, free: 10.29 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005175/0.4159, allocations: 414.2 kB / 350.6 MB, free: 9.75 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007986/0.4167, allocations: 0.5792 MB / 351.1 MB, free: 9.035 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.4167, allocations: 8 kB / 351.2 MB, free: 9.027 MB / 286.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001094/0.4178, allocations: 0.611 MB / 351.8 MB, free: 8.406 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.4178, allocations: 12 kB / 351.8 MB, free: 8.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.4178, allocations: 8 kB / 351.8 MB, free: 8.387 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001836/0.418, allocations: 32.84 kB / 351.8 MB, free: 8.352 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004232/0.4185, allocations: 136.2 kB / 352 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.4196, allocations: 1.291 MB / 353.2 MB, free: 6.797 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005877/0.4203, allocations: 36.14 kB / 353.3 MB, free: 6.762 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/0.4203, allocations: 28 kB / 353.3 MB, free: 6.734 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.0004276/0.4207, allocations: 245.5 kB / 353.5 MB, free: 6.484 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.4209, allocations: 75.06 kB / 353.6 MB, free: 6.41 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006798/0.4216, allocations: 317.4 kB / 353.9 MB, free: 6.09 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.4216, allocations: 4 kB / 353.9 MB, free: 6.086 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.467e-06/0.4216, allocations: 3.938 kB / 353.9 MB, free: 6.082 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.4216, allocations: 0 / 353.9 MB, free: 6.082 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001764/0.4234, allocations: 1.098 MB / 355 MB, free: 4.902 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.4234, allocations: 0 / 355 MB, free: 4.902 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002787/0.4237, allocations: 59.91 kB / 355.1 MB, free: 4.844 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001066/0.4238, allocations: 25.06 kB / 355.1 MB, free: 4.816 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.4238, allocations: 8 kB / 355.1 MB, free: 4.809 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.4249, allocations: 1.28 MB / 356.4 MB, free: 3.395 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.4249, allocations: 3.938 kB / 356.4 MB, free: 3.391 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008941/0.4258, allocations: 0.56 MB / 357 MB, free: 2.789 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002714/0.4261, allocations: 176.1 kB / 357.1 MB, free: 2.598 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.169e-05/0.4262, allocations: 8 kB / 357.1 MB, free: 2.59 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003198/0.4266, allocations: 19.98 kB / 357.2 MB, free: 2.57 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.917e-05/0.4266, allocations: 23.97 kB / 357.2 MB, free: 2.547 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.4267, allocations: 8 kB / 357.2 MB, free: 2.539 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0007648/0.4274, allocations: 0.5029 MB / 357.7 MB, free: 2.039 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4275, allocations: 3.938 kB / 357.7 MB, free: 2.035 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0008571/0.4283, allocations: 160 kB / 357.9 MB, free: 1.879 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.0002825/0.4286, allocations: 127 kB / 358 MB, free: 1.746 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009896/0.4296, allocations: 457.2 kB / 358.4 MB, free: 1.289 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4296, allocations: 0 / 358.4 MB, free: 1.289 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003872/0.43, allocations: 239.2 kB / 358.7 MB, free: 1.043 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.4312, allocations: 171 kB / 358.8 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003257/0.4344, allocations: 1.759 MB / 360.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006548/0.4351, allocations: 0.9414 MB / 361.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004262/0.4356, allocations: 90.02 kB / 361.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.4357, allocations: 43.44 kB / 361.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of SimCode: time 1.704e-06/0.4357, allocations: 3.938 kB / 361.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of Templates: time 0.01827/0.454, allocations: 7.716 MB / 369.4 MB, free: 6.246 MB / 302.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1)