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.001314/0.001314, allocations: 108 kB / 15.61 MB, free: 152 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.00186/0.001859, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.758/1.758, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.001253/0.001254, allocations: 51.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3771/0.3783, allocations: 46.64 MB / 325.3 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.009225/0.3876, allocations: 7.09 MB / 332.4 MB, free: 12.21 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.005156/0.3928, allocations: 2.381 MB / 334.8 MB, free: 10.23 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009282/0.3938, allocations: 21.09 kB / 334.8 MB, free: 10.23 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001498/0.3953, allocations: 0.4984 MB / 335.3 MB, free: 9.863 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001063/0.3964, allocations: 381 kB / 335.7 MB, free: 9.52 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004415/0.3969, allocations: 207.7 kB / 335.9 MB, free: 9.316 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001227/0.3981, allocations: 1.195 MB / 337.1 MB, free: 8.117 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007938/0.3989, allocations: 0.4959 MB / 337.6 MB, free: 7.602 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005772/0.3995, allocations: 454.2 kB / 338 MB, free: 7.156 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006199/0.4001, allocations: 0.4899 MB / 338.5 MB, free: 6.664 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001578/0.4003, allocations: 116 kB / 338.6 MB, free: 6.551 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003447/0.4006, allocations: 152 kB / 338.8 MB, free: 6.402 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001812/0.4008, allocations: 223.2 kB / 339 MB, free: 6.184 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005065/0.4013, allocations: 0.5482 MB / 339.5 MB, free: 5.633 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001492/0.4028, allocations: 1.417 MB / 341 MB, free: 4.211 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.4029, allocations: 0 / 341 MB, free: 4.211 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4029, allocations: 0 / 341 MB, free: 4.211 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.883e-05/0.4029, allocations: 0 / 341 MB, free: 4.211 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.002454/0.4054, allocations: 1.254 MB / 342.2 MB, free: 2.902 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.494e-05/0.4054, allocations: 8.031 kB / 342.2 MB, free: 2.895 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005721/0.406, allocations: 143.7 kB / 342.4 MB, free: 2.754 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.4071, allocations: 0.6454 MB / 343 MB, free: 2.07 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.697e-05/0.4072, allocations: 58.38 kB / 343.1 MB, free: 2.012 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.4073, allocations: 76.38 kB / 343.1 MB, free: 1.938 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001423/0.4088, allocations: 0.7832 MB / 343.9 MB, free: 1.125 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.427e-05/0.4088, allocations: 3.906 kB / 343.9 MB, free: 1.121 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.199e-05/0.4089, allocations: 36 kB / 344 MB, free: 1.086 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.636e-05/0.4089, allocations: 20 kB / 344 MB, free: 1.066 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.41, allocations: 0.5153 MB / 344.5 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004089/0.4141, allocations: 3.391 MB / 347.9 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005618/0.4146, allocations: 238.4 kB / 348.1 MB, free: 12.71 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002636/0.4149, allocations: 108.8 kB / 348.2 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.415, allocations: 4 kB / 348.2 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.046e-05/0.415, allocations: 34.56 kB / 348.3 MB, free: 12.55 MB / 286.1 MB Notification: Performance of pre-optimization done (n=25): time 2.054e-06/0.415, allocations: 0 / 348.3 MB, free: 12.55 MB / 286.1 MB Notification: Performance of matching and sorting (n=28): time 0.00227/0.4173, allocations: 1.047 MB / 349.3 MB, free: 11.43 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.906e-05/0.4174, allocations: 89.05 kB / 349.4 MB, free: 11.33 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009669/0.4184, allocations: 0.7348 MB / 350.1 MB, free: 10.58 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.489e-05/0.4184, allocations: 33.7 kB / 350.2 MB, free: 10.54 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000379/0.4188, allocations: 0.4942 MB / 350.7 MB, free: 10.04 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.941e-05/0.4189, allocations: 106.5 kB / 350.8 MB, free: 9.938 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001508/0.419, allocations: 114.2 kB / 350.9 MB, free: 9.816 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.4192, allocations: 374.8 kB / 351.2 MB, free: 9.441 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002867/0.4195, allocations: 125.2 kB / 351.4 MB, free: 9.32 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004916/0.42, allocations: 422.2 kB / 351.8 MB, free: 8.77 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007975/0.4208, allocations: 0.5677 MB / 352.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4208, allocations: 0 / 352.3 MB, free: 8.066 MB / 286.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001055/0.4219, allocations: 0.611 MB / 352.9 MB, free: 7.445 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.4219, allocations: 8.125 kB / 353 MB, free: 7.438 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.422, allocations: 16 kB / 353 MB, free: 7.422 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001842/0.4222, allocations: 32.84 kB / 353 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004278/0.4226, allocations: 143.7 kB / 353.1 MB, free: 7.246 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.4238, allocations: 1.39 MB / 354.5 MB, free: 5.719 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003951/0.4243, allocations: 40.09 kB / 354.6 MB, free: 5.68 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.671e-05/0.4243, allocations: 28 kB / 354.6 MB, free: 5.652 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.0003321/0.4246, allocations: 241.6 kB / 354.8 MB, free: 5.406 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.4248, allocations: 71.06 kB / 354.9 MB, free: 5.336 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006351/0.4254, allocations: 329.6 kB / 355.2 MB, free: 5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.4254, allocations: 8.031 kB / 355.2 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.4254, allocations: 0 / 355.2 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.4254, allocations: 0 / 355.2 MB, free: 4.992 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001582/0.427, allocations: 1.098 MB / 356.3 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.427, allocations: 0 / 356.3 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002578/0.4273, allocations: 55.91 kB / 356.4 MB, free: 3.758 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.011e-05/0.4274, allocations: 29.06 kB / 356.4 MB, free: 3.727 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.996e-05/0.4274, allocations: 8 kB / 356.4 MB, free: 3.719 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009503/0.4284, allocations: 1.371 MB / 357.8 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4284, allocations: 0 / 357.8 MB, free: 2.207 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008903/0.4293, allocations: 0.5637 MB / 358.4 MB, free: 1.602 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000191/0.4295, allocations: 172.3 kB / 358.5 MB, free: 1.414 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.935e-05/0.4296, allocations: 12 kB / 358.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003099/0.4299, allocations: 23.97 kB / 358.6 MB, free: 1.379 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.805e-05/0.43, allocations: 23.86 kB / 358.6 MB, free: 1.355 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.696e-05/0.43, allocations: 12 kB / 358.6 MB, free: 1.344 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0006128/0.4306, allocations: 0.5029 MB / 359.1 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4306, allocations: 7.938 kB / 359.1 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000734/0.4314, allocations: 160 kB / 359.3 MB, free: 0.6836 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.0002239/0.4316, allocations: 123.1 kB / 359.4 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0009081/0.4325, allocations: 472.4 kB / 359.8 MB, free: 84 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4325, allocations: 192 / 359.8 MB, free: 84 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003728/0.4329, allocations: 242.5 kB / 360.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.4339, allocations: 175.4 kB / 360.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002469/0.4364, allocations: 1.436 MB / 361.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005212/0.4369, allocations: 0.941 MB / 362.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003183/0.4373, allocations: 94.02 kB / 362.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.453e-05/0.4374, allocations: 47.44 kB / 362.8 MB, free: 13.06 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.4374, allocations: 0 / 362.8 MB, free: 13.06 MB / 302.1 MB Notification: Performance of Templates: time 0.01677/0.4542, allocations: 8.123 MB / 370.9 MB, free: 4.938 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)