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.001269/0.001269, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002004/0.002005, allocations: 192 kB / 16.25 MB, free: 6.637 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.653/1.653, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.001702/0.001702, allocations: 59.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4113/0.413, allocations: 46.62 MB / 324.9 MB, free: 2.168 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01581/0.4289, allocations: 12 MB / 336.9 MB, free: 8.227 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008229/0.4372, allocations: 3.274 MB / 340.1 MB, free: 4.941 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003209/0.4405, allocations: 35.94 kB / 340.2 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00285/0.4434, allocations: 0.571 MB / 340.7 MB, free: 4.332 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003951/0.4474, allocations: 0.6284 MB / 341.4 MB, free: 3.699 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.4486, allocations: 359.6 kB / 341.7 MB, free: 3.348 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004203/0.4528, allocations: 2.409 MB / 344.1 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001653/0.4545, allocations: 0.993 MB / 345.1 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001729/0.4562, allocations: 0.8987 MB / 346 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001194/0.4574, allocations: 0.9762 MB / 347 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002857/0.4577, allocations: 232 kB / 347.2 MB, free: 13.78 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005833/0.4583, allocations: 272 kB / 347.5 MB, free: 13.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003629/0.4587, allocations: 458.3 kB / 347.9 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001087/0.4598, allocations: 1.077 MB / 349 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003176/0.463, allocations: 2.795 MB / 351.8 MB, free: 9.18 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.087e-06/0.463, allocations: 0 / 351.8 MB, free: 9.18 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.848e-06/0.463, allocations: 0 / 351.8 MB, free: 9.18 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.764e-05/0.4631, allocations: 0 / 351.8 MB, free: 9.18 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.004896/0.468, allocations: 2.164 MB / 354 MB, free: 6.957 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.165e-05/0.4681, allocations: 8.031 kB / 354 MB, free: 6.949 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001111/0.4692, allocations: 278.4 kB / 354.2 MB, free: 6.676 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002059/0.4712, allocations: 1.099 MB / 355.3 MB, free: 5.52 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/0.4714, allocations: 119.5 kB / 355.5 MB, free: 5.402 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002548/0.4716, allocations: 163.8 kB / 355.6 MB, free: 5.242 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002977/0.4746, allocations: 1.508 MB / 357.1 MB, free: 3.672 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.139e-05/0.4747, allocations: 7.906 kB / 357.1 MB, free: 3.664 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001299/0.4748, allocations: 64 kB / 357.2 MB, free: 3.602 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.581e-05/0.4749, allocations: 36 kB / 357.2 MB, free: 3.566 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002032/0.4769, allocations: 1.061 MB / 358.3 MB, free: 2.5 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009453/0.4864, allocations: 6.288 MB / 364.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.4881, allocations: 0.6121 MB / 365.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009373/0.4891, allocations: 462.4 kB / 365.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.162e-05/0.4891, allocations: 12.5 kB / 365.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.4892, allocations: 43.12 kB / 365.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.856e-06/0.4892, allocations: 0 / 365.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.005502/0.4947, allocations: 2.36 MB / 368.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.4948, allocations: 115.4 kB / 368.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002053/0.4969, allocations: 1.306 MB / 369.5 MB, free: 6.859 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.561e-05/0.497, allocations: 37.7 kB / 369.5 MB, free: 6.816 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007115/0.4977, allocations: 0.857 MB / 370.4 MB, free: 5.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002389/0.498, allocations: 260.3 kB / 370.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003216/0.4983, allocations: 202.7 kB / 370.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002098/0.4985, allocations: 349.9 kB / 371.2 MB, free: 5.137 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005639/0.4991, allocations: 278.5 kB / 371.4 MB, free: 4.867 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009026/0.5, allocations: 0.742 MB / 372.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001673/0.5017, allocations: 1.092 MB / 373.3 MB, free: 2.605 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.5017, allocations: 4 kB / 373.3 MB, free: 2.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002541/0.5042, allocations: 1.26 MB / 374.5 MB, free: 1.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/0.5043, allocations: 12.5 kB / 374.6 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.453e-05/0.5043, allocations: 12 kB / 374.6 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005602/0.5049, allocations: 142.4 kB / 374.7 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008287/0.5057, allocations: 255.6 kB / 375 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004261/0.51, allocations: 4.646 MB / 379.6 MB, free: 11.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001201/0.5112, allocations: 55.83 kB / 379.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.828e-05/0.5113, allocations: 59.98 kB / 379.7 MB, free: 11.73 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.0007995/0.5121, allocations: 357.4 kB / 380.1 MB, free: 11.37 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002246/0.5124, allocations: 138.3 kB / 380.2 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001786/0.5142, allocations: 0.8256 MB / 381 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.5142, allocations: 11.94 kB / 381 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.5142, allocations: 0 / 381 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.5142, allocations: 7.984 kB / 381 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003871/0.5181, allocations: 2.33 MB / 383.4 MB, free: 7.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.5181, allocations: 4.469 kB / 383.4 MB, free: 7.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005559/0.5187, allocations: 131.8 kB / 383.5 MB, free: 7.777 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004227/0.5191, allocations: 138.4 kB / 383.6 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.429e-05/0.5192, allocations: 16 kB / 383.7 MB, free: 7.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004442/0.5236, allocations: 4.787 MB / 388.4 MB, free: 2.41 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.5236, allocations: 12 kB / 388.5 MB, free: 2.398 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002489/0.5261, allocations: 1.299 MB / 389.8 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000672/0.5268, allocations: 283.3 kB / 390 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.527, allocations: 20.19 kB / 390 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006217/0.5276, allocations: 39.97 kB / 390.1 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/0.5278, allocations: 64.36 kB / 390.2 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.532e-05/0.5278, allocations: 24 kB / 390.2 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001427/0.5293, allocations: 0.8782 MB / 391.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.5293, allocations: 0 / 391.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001376/0.5307, allocations: 332 kB / 391.4 MB, free: 15.38 MB / 334.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.0003016/0.531, allocations: 135.1 kB / 391.5 MB, free: 15.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002167/0.5331, allocations: 1.151 MB / 392.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/0.5332, allocations: 4 kB / 392.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001048/0.5342, allocations: 0.7039 MB / 393.4 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/0.536, allocations: 360.8 kB / 393.7 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005795/0.5418, allocations: 3.575 MB / 397.3 MB, free: 9.293 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008432/0.5426, allocations: 1.221 MB / 398.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00069/0.5433, allocations: 175.6 kB / 398.7 MB, free: 7.867 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002237/0.5436, allocations: 87.42 kB / 398.8 MB, free: 7.781 MB / 334.1 MB Notification: Performance of SimCode: time 1.453e-06/0.5436, allocations: 0 / 398.8 MB, free: 7.781 MB / 334.1 MB Notification: Performance of Templates: time 0.03731/0.5809, allocations: 17.53 MB / 416.3 MB, free: 6.219 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)