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.001348/0.001348, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001664/0.001665, allocations: 194.2 kB / 16.13 MB, free: 6.66 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.851/1.851, allocations: 205.1 MB / 222 MB, free: 4.719 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.001344/0.001344, allocations: 55.91 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3263, allocations: 46.62 MB / 324.7 MB, free: 2.152 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01483/0.3412, allocations: 12.01 MB / 336.7 MB, free: 8.266 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007892/0.3491, allocations: 3.281 MB / 340 MB, free: 4.973 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00175/0.351, allocations: 39.88 kB / 340 MB, free: 4.934 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001946/0.353, allocations: 0.5671 MB / 340.6 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00218/0.3552, allocations: 0.6245 MB / 341.2 MB, free: 3.734 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008461/0.356, allocations: 359.7 kB / 341.5 MB, free: 3.383 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002764/0.3588, allocations: 2.277 MB / 343.8 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001192/0.36, allocations: 0.8621 MB / 344.7 MB, free: 200 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001161/0.3612, allocations: 0.8128 MB / 345.5 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000871/0.3621, allocations: 0.9176 MB / 346.4 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002004/0.3623, allocations: 140 kB / 346.6 MB, free: 14.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004366/0.3627, allocations: 180 kB / 346.7 MB, free: 14.14 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003006/0.363, allocations: 378.3 kB / 347.1 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008922/0.3639, allocations: 0.9794 MB / 348.1 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002172/0.3661, allocations: 2.729 MB / 350.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3661, allocations: 0 / 350.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3661, allocations: 0 / 350.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.783e-05/0.3662, allocations: 0 / 350.8 MB, free: 10.05 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.003927/0.3701, allocations: 2.164 MB / 353 MB, free: 7.828 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.596e-05/0.3702, allocations: 8.031 kB / 353 MB, free: 7.82 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/0.3713, allocations: 278.4 kB / 353.3 MB, free: 7.547 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/0.373, allocations: 1.103 MB / 354.4 MB, free: 6.387 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.647e-05/0.3732, allocations: 115.5 kB / 354.5 MB, free: 6.273 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002146/0.3734, allocations: 167.8 kB / 354.6 MB, free: 6.109 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002536/0.3759, allocations: 1.508 MB / 356.1 MB, free: 4.539 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.703e-05/0.376, allocations: 11.91 kB / 356.2 MB, free: 4.527 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001318/0.3761, allocations: 67.94 kB / 356.2 MB, free: 4.461 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.112e-05/0.3762, allocations: 36 kB / 356.3 MB, free: 4.426 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001926/0.3781, allocations: 1.049 MB / 357.3 MB, free: 3.371 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008213/0.3863, allocations: 6.288 MB / 363.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001673/0.388, allocations: 0.6043 MB / 364.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009241/0.389, allocations: 470.9 kB / 364.7 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.988e-05/0.389, allocations: 8.562 kB / 364.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.741e-05/0.3891, allocations: 47.06 kB / 364.7 MB, free: 11.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.344e-06/0.3891, allocations: 3.938 kB / 364.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.005351/0.3945, allocations: 2.36 MB / 367.1 MB, free: 9.188 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.539e-05/0.3946, allocations: 111.5 kB / 367.2 MB, free: 9.051 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/0.3964, allocations: 1.306 MB / 368.5 MB, free: 7.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.3964, allocations: 37.7 kB / 368.5 MB, free: 7.688 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006714/0.3971, allocations: 0.8531 MB / 369.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002113/0.3973, allocations: 256.3 kB / 369.6 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002906/0.3976, allocations: 210.7 kB / 369.8 MB, free: 6.355 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.3978, allocations: 349.9 kB / 370.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005608/0.3984, allocations: 278.5 kB / 370.4 MB, free: 5.738 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009879/0.3994, allocations: 0.7459 MB / 371.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001578/0.401, allocations: 1.08 MB / 372.3 MB, free: 3.484 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.401, allocations: 4 kB / 372.3 MB, free: 3.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002325/0.4033, allocations: 1.264 MB / 373.5 MB, free: 2.199 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.4034, allocations: 12 kB / 373.6 MB, free: 2.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.373e-05/0.4034, allocations: 16 kB / 373.6 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005981/0.404, allocations: 143 kB / 373.7 MB, free: 2.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008638/0.4049, allocations: 255.6 kB / 374 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00482/0.4097, allocations: 4.277 MB / 378.2 MB, free: 13.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/0.411, allocations: 56.05 kB / 378.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.4e-05/0.4111, allocations: 55.98 kB / 378.3 MB, free: 12.99 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.0008776/0.412, allocations: 357.3 kB / 378.7 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002526/0.4122, allocations: 138.3 kB / 378.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001866/0.4141, allocations: 0.8334 MB / 379.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/0.4141, allocations: 8 kB / 379.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.4141, allocations: 3.938 kB / 379.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.212e-05/0.4142, allocations: 7.984 kB / 379.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00424/0.4184, allocations: 2.33 MB / 382 MB, free: 9.164 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.405e-06/0.4184, allocations: 4 kB / 382 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005811/0.419, allocations: 127.8 kB / 382.1 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004699/0.4195, allocations: 134.8 kB / 382.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.898e-05/0.4196, allocations: 19.94 kB / 382.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004383/0.424, allocations: 4.395 MB / 386.7 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/0.424, allocations: 8.297 kB / 386.7 MB, free: 4.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002608/0.4266, allocations: 1.307 MB / 388 MB, free: 2.691 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006563/0.4273, allocations: 283.3 kB / 388.3 MB, free: 2.395 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001574/0.4274, allocations: 20 kB / 388.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006282/0.4281, allocations: 35.97 kB / 388.3 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.4282, allocations: 64.36 kB / 388.4 MB, free: 2.277 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.245e-05/0.4283, allocations: 23.98 kB / 388.4 MB, free: 2.254 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001385/0.4297, allocations: 0.882 MB / 389.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4297, allocations: 0 / 389.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001414/0.4311, allocations: 328 kB / 389.6 MB, free: 1.051 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.0003373/0.4315, allocations: 139 kB / 389.8 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002117/0.4336, allocations: 1.109 MB / 390.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.4336, allocations: 0 / 390.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.4347, allocations: 0.7076 MB / 391.6 MB, free: 15.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/0.4366, allocations: 341 kB / 391.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006653/0.4433, allocations: 3.581 MB / 395.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009961/0.4443, allocations: 1.221 MB / 396.7 MB, free: 9.766 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000922/0.4452, allocations: 167.6 kB / 396.9 MB, free: 9.598 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002347/0.4455, allocations: 95.42 kB / 397 MB, free: 9.504 MB / 334.1 MB Notification: Performance of SimCode: time 2.084e-06/0.4455, allocations: 0 / 397 MB, free: 9.504 MB / 334.1 MB Notification: Performance of Templates: time 0.04031/0.4858, allocations: 16.77 MB / 413.7 MB, free: 8.703 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)