Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008597/0.0008597, allocations: 98.03 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.00635/0.00635, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.778/1.778, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0005169/0.0005169, allocations: 8 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3954, allocations: 47.59 MB / 327 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01153/0.407, allocations: 11.43 MB / 338.5 MB, free: 7.91 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00755/0.4146, allocations: 3.247 MB / 341.7 MB, free: 4.652 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00281/0.4175, allocations: 35.94 kB / 341.7 MB, free: 4.617 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002851/0.4204, allocations: 0.571 MB / 342.3 MB, free: 4.043 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004474/0.4249, allocations: 0.6206 MB / 342.9 MB, free: 3.418 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001318/0.4262, allocations: 355.6 kB / 343.3 MB, free: 3.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003898/0.4301, allocations: 2.288 MB / 345.6 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001574/0.4317, allocations: 0.8387 MB / 346.4 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001785/0.4335, allocations: 0.7503 MB / 347.2 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001355/0.4349, allocations: 0.8473 MB / 348 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002246/0.4351, allocations: 104 kB / 348.1 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004711/0.4356, allocations: 156 kB / 348.3 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002954/0.4359, allocations: 314.4 kB / 348.6 MB, free: 13.73 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.4371, allocations: 0.9537 MB / 349.5 MB, free: 12.76 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003036/0.4402, allocations: 2.646 MB / 352.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.4402, allocations: 0 / 352.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.4402, allocations: 0 / 352.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.768e-05/0.4403, allocations: 0 / 352.2 MB, free: 10.11 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004163/0.4444, allocations: 1.852 MB / 354 MB, free: 8.195 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.168e-05/0.4445, allocations: 8.031 kB / 354 MB, free: 8.188 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001062/0.4456, allocations: 286.4 kB / 354.3 MB, free: 7.906 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002235/0.4479, allocations: 1.115 MB / 355.4 MB, free: 6.734 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.299e-05/0.448, allocations: 119.5 kB / 355.5 MB, free: 6.617 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002307/0.4482, allocations: 163.8 kB / 355.7 MB, free: 6.457 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002827/0.451, allocations: 1.508 MB / 357.2 MB, free: 4.887 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.678e-05/0.4511, allocations: 15.89 kB / 357.2 MB, free: 4.871 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001288/0.4513, allocations: 63.94 kB / 357.3 MB, free: 4.809 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.561e-05/0.4513, allocations: 47.94 kB / 357.3 MB, free: 4.762 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00228/0.4536, allocations: 1.069 MB / 358.4 MB, free: 3.688 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01057/0.4642, allocations: 6.304 MB / 364.7 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.4659, allocations: 0.6317 MB / 365.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009402/0.4669, allocations: 470.2 kB / 365.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.315e-05/0.467, allocations: 12.56 kB / 365.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.502e-05/0.467, allocations: 39.12 kB / 365.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 3.306e-06/0.467, allocations: 3.938 kB / 365.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.006297/0.4733, allocations: 2.458 MB / 368.3 MB, free: 9.367 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.4735, allocations: 119.5 kB / 368.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002212/0.4757, allocations: 1.302 MB / 369.7 MB, free: 7.906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.577e-05/0.4758, allocations: 41.7 kB / 369.8 MB, free: 7.859 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007413/0.4766, allocations: 0.8531 MB / 370.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/0.4768, allocations: 260.2 kB / 370.9 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.4769, allocations: 93.66 kB / 371 MB, free: 6.641 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.4771, allocations: 349.9 kB / 371.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006061/0.4778, allocations: 298.5 kB / 371.6 MB, free: 6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009544/0.4787, allocations: 0.7421 MB / 372.3 MB, free: 5.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001682/0.4804, allocations: 1.115 MB / 373.5 MB, free: 3.719 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.4804, allocations: 4 kB / 373.5 MB, free: 3.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002862/0.4833, allocations: 1.307 MB / 374.8 MB, free: 2.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.4834, allocations: 8 kB / 374.8 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/0.4834, allocations: 16 kB / 374.8 MB, free: 2.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005913/0.484, allocations: 142.7 kB / 374.9 MB, free: 2.219 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008674/0.4849, allocations: 259.6 kB / 375.2 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0042/0.4891, allocations: 4.32 MB / 379.5 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.4904, allocations: 67.88 kB / 379.6 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.691e-05/0.4905, allocations: 52.06 kB / 379.6 MB, free: 13.13 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0008204/0.4914, allocations: 357.3 kB / 380 MB, free: 12.77 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002274/0.4916, allocations: 142.2 kB / 380.1 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001882/0.4935, allocations: 0.8724 MB / 381 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.795e-06/0.4935, allocations: 12 kB / 381 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.4935, allocations: 0 / 381 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.4936, allocations: 4.109 kB / 381 MB, free: 11.72 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004238/0.4978, allocations: 2.373 MB / 383.4 MB, free: 9.227 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.4978, allocations: 4 kB / 383.4 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006025/0.4984, allocations: 131.8 kB / 383.5 MB, free: 9.094 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004769/0.4989, allocations: 142.9 kB / 383.6 MB, free: 8.945 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.5e-05/0.499, allocations: 27.92 kB / 383.7 MB, free: 8.918 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00419/0.5032, allocations: 4.453 MB / 388.1 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/0.5032, allocations: 7.938 kB / 388.1 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002667/0.5059, allocations: 1.342 MB / 389.5 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006735/0.5066, allocations: 287.3 kB / 389.8 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.5067, allocations: 20 kB / 389.8 MB, free: 2.316 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006376/0.5074, allocations: 51.95 kB / 389.8 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.5075, allocations: 60.38 kB / 389.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.295e-05/0.5076, allocations: 23.98 kB / 389.9 MB, free: 2.184 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00138/0.509, allocations: 0.8781 MB / 390.8 MB, free: 1.305 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.509, allocations: 0 / 390.8 MB, free: 1.305 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001349/0.5104, allocations: 332 kB / 391.1 MB, free: 0.9805 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002722/0.5106, allocations: 135 kB / 391.2 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002071/0.5127, allocations: 1.137 MB / 392.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.5127, allocations: 4 kB / 392.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.5138, allocations: 0.7147 MB / 393.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002482/0.5163, allocations: 345 kB / 393.4 MB, free: 14.56 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006407/0.5228, allocations: 3.758 MB / 397.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009451/0.5237, allocations: 1.214 MB / 398.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0008788/0.5246, allocations: 175.7 kB / 398.6 MB, free: 9.312 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000232/0.5249, allocations: 95.42 kB / 398.7 MB, free: 9.219 MB / 334.1 MB Notification: Performance of SimCode: time 1.423e-06/0.5249, allocations: 4 kB / 398.7 MB, free: 9.215 MB / 334.1 MB Notification: Performance of Templates: time 0.03792/0.5628, allocations: 16.64 MB / 415.3 MB, free: 8.555 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)