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.001421/0.001422, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 194 kB / 16.53 MB, free: 6.391 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.912/1.912, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.001396/0.001396, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3671/0.3685, allocations: 46.63 MB / 325.3 MB, free: 1.879 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01117/0.3798, allocations: 7.093 MB / 332.4 MB, free: 12.25 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005774/0.3856, allocations: 2.385 MB / 334.8 MB, free: 10.27 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.3869, allocations: 17.41 kB / 334.8 MB, free: 10.27 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001674/0.3886, allocations: 0.494 MB / 335.3 MB, free: 9.906 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001223/0.3898, allocations: 378.7 kB / 335.7 MB, free: 9.551 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004336/0.3903, allocations: 207.7 kB / 335.9 MB, free: 9.348 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001417/0.3917, allocations: 1.191 MB / 337.1 MB, free: 8.152 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007346/0.3924, allocations: 0.4998 MB / 337.6 MB, free: 7.633 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005757/0.393, allocations: 458.2 kB / 338 MB, free: 7.184 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005413/0.3936, allocations: 0.4899 MB / 338.5 MB, free: 6.691 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001303/0.3937, allocations: 116 kB / 338.6 MB, free: 6.578 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003288/0.3941, allocations: 152 kB / 338.8 MB, free: 6.43 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/0.3943, allocations: 227.2 kB / 339 MB, free: 6.207 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005012/0.3948, allocations: 0.5404 MB / 339.5 MB, free: 5.664 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001432/0.3962, allocations: 1.417 MB / 340.9 MB, free: 4.242 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.3962, allocations: 0 / 340.9 MB, free: 4.242 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3962, allocations: 0 / 340.9 MB, free: 4.242 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.571e-05/0.3963, allocations: 4 kB / 340.9 MB, free: 4.238 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.002075/0.3983, allocations: 1.246 MB / 342.2 MB, free: 2.938 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.3984, allocations: 12.03 kB / 342.2 MB, free: 2.926 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005186/0.3989, allocations: 147.7 kB / 342.4 MB, free: 2.781 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009536/0.3999, allocations: 0.6337 MB / 343 MB, free: 2.109 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.576e-05/0.4, allocations: 62.38 kB / 343 MB, free: 2.047 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.4001, allocations: 76.38 kB / 343.1 MB, free: 1.973 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.4014, allocations: 0.7832 MB / 343.9 MB, free: 1.16 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.377e-05/0.4015, allocations: 7.906 kB / 343.9 MB, free: 1.152 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.021e-05/0.4015, allocations: 32 kB / 343.9 MB, free: 1.121 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.4016, allocations: 19.98 kB / 344 MB, free: 1.102 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.4026, allocations: 0.5192 MB / 344.5 MB, free: 0.582 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00416/0.4068, allocations: 3.391 MB / 347.9 MB, free: 12.98 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005348/0.4073, allocations: 242.4 kB / 348.1 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002453/0.4076, allocations: 112.8 kB / 348.2 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.4076, allocations: 0 / 348.2 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.4077, allocations: 38.56 kB / 348.3 MB, free: 12.58 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 1.423e-06/0.4077, allocations: 0 / 348.3 MB, free: 12.58 MB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.002171/0.4099, allocations: 1.047 MB / 349.3 MB, free: 11.46 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.841e-05/0.4099, allocations: 81.11 kB / 349.4 MB, free: 11.36 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009438/0.4109, allocations: 0.7387 MB / 350.1 MB, free: 10.61 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.938e-05/0.4109, allocations: 33.7 kB / 350.2 MB, free: 10.57 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004428/0.4114, allocations: 0.4904 MB / 350.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.99e-05/0.4115, allocations: 110.5 kB / 350.8 MB, free: 9.965 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.4116, allocations: 114.2 kB / 350.9 MB, free: 9.844 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.4118, allocations: 378.8 kB / 351.2 MB, free: 9.465 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002794/0.4121, allocations: 125.2 kB / 351.4 MB, free: 9.344 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004782/0.4126, allocations: 426.1 kB / 351.8 MB, free: 8.789 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000746/0.4133, allocations: 0.5639 MB / 352.3 MB, free: 8.09 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.4134, allocations: 4 kB / 352.3 MB, free: 8.086 MB / 286.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001146/0.4145, allocations: 0.6111 MB / 353 MB, free: 7.465 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.4146, allocations: 15.98 kB / 353 MB, free: 7.449 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.4146, allocations: 12 kB / 353 MB, free: 7.438 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001846/0.4148, allocations: 28.86 kB / 353 MB, free: 7.406 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004418/0.4152, allocations: 143.7 kB / 353.1 MB, free: 7.266 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001158/0.4164, allocations: 1.39 MB / 354.5 MB, free: 5.738 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004796/0.4169, allocations: 32.14 kB / 354.6 MB, free: 5.707 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.392e-05/0.4169, allocations: 32 kB / 354.6 MB, free: 5.676 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.0003753/0.4173, allocations: 237.5 kB / 354.8 MB, free: 5.434 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000105/0.4174, allocations: 75.06 kB / 354.9 MB, free: 5.359 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006364/0.4181, allocations: 329.6 kB / 355.2 MB, free: 5.023 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.4181, allocations: 4 kB / 355.2 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.4181, allocations: 0 / 355.2 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.4181, allocations: 0 / 355.2 MB, free: 5.02 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/0.4197, allocations: 1.094 MB / 356.3 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.4197, allocations: 4 kB / 356.3 MB, free: 3.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002523/0.42, allocations: 55.91 kB / 356.4 MB, free: 3.785 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.945e-05/0.4201, allocations: 29.06 kB / 356.4 MB, free: 3.754 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.4201, allocations: 8 kB / 356.4 MB, free: 3.746 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009742/0.4211, allocations: 1.371 MB / 357.8 MB, free: 2.234 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/0.4211, allocations: 8.016 kB / 357.8 MB, free: 2.227 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008549/0.422, allocations: 0.5598 MB / 358.4 MB, free: 1.625 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/0.4222, allocations: 172.3 kB / 358.5 MB, free: 1.438 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.785e-05/0.4223, allocations: 11.94 kB / 358.5 MB, free: 1.426 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003063/0.4226, allocations: 19.97 kB / 358.6 MB, free: 1.406 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.633e-05/0.4227, allocations: 27.86 kB / 358.6 MB, free: 1.379 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.4227, allocations: 15.98 kB / 358.6 MB, free: 1.363 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0006669/0.4234, allocations: 0.503 MB / 359.1 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.623e-06/0.4234, allocations: 0 / 359.1 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006849/0.4241, allocations: 159.9 kB / 359.3 MB, free: 0.7109 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.0002473/0.4243, allocations: 123.1 kB / 359.4 MB, free: 0.582 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009217/0.4253, allocations: 468.6 kB / 359.8 MB, free: 116 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4253, allocations: 4.062 kB / 359.8 MB, free: 112 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003691/0.4257, allocations: 242.5 kB / 360.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009917/0.4267, allocations: 187.9 kB / 360.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002489/0.4292, allocations: 1.432 MB / 361.7 MB, free: 14.19 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005526/0.4297, allocations: 0.9411 MB / 362.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003569/0.4301, allocations: 86.03 kB / 362.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001029/0.4302, allocations: 51.42 kB / 362.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of SimCode: time 1.343e-06/0.4302, allocations: 0 / 362.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of Templates: time 0.01725/0.4475, allocations: 8.127 MB / 370.9 MB, free: 4.957 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)