Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001503/0.001503, 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.001506/0.001506, allocations: 194.1 kB / 16.14 MB, free: 6.707 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.601/1.601, allocations: 205.1 MB / 222 MB, free: 4.977 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.001243/0.001243, allocations: 43.94 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3664/0.3676, allocations: 46.63 MB / 324.7 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01587/0.3835, allocations: 12.01 MB / 336.7 MB, free: 8.145 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009419/0.393, allocations: 3.278 MB / 340 MB, free: 4.855 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003682/0.3968, allocations: 35.94 kB / 340 MB, free: 4.82 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002525/0.3993, allocations: 0.571 MB / 340.6 MB, free: 4.246 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003365/0.4027, allocations: 0.6167 MB / 341.2 MB, free: 3.625 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001027/0.4037, allocations: 359.7 kB / 341.5 MB, free: 3.273 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003864/0.4076, allocations: 2.284 MB / 343.8 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001322/0.4089, allocations: 0.8582 MB / 344.7 MB, free: 84 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001366/0.4103, allocations: 0.809 MB / 345.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000957/0.4113, allocations: 0.9253 MB / 346.4 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002269/0.4115, allocations: 140 kB / 346.6 MB, free: 14.2 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005013/0.412, allocations: 191.8 kB / 346.7 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003448/0.4124, allocations: 358.4 kB / 347.1 MB, free: 13.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001191/0.4136, allocations: 0.991 MB / 348.1 MB, free: 12.67 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003122/0.4167, allocations: 2.721 MB / 350.8 MB, free: 9.938 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.136e-06/0.4168, allocations: 4 kB / 350.8 MB, free: 9.934 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4168, allocations: 0 / 350.8 MB, free: 9.934 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.118e-05/0.4168, allocations: 0 / 350.8 MB, free: 9.934 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.004983/0.4218, allocations: 2.16 MB / 353 MB, free: 7.715 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.069e-05/0.4219, allocations: 8.031 kB / 353 MB, free: 7.707 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001073/0.423, allocations: 278.4 kB / 353.2 MB, free: 7.434 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001995/0.425, allocations: 1.115 MB / 354.4 MB, free: 6.262 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.488e-05/0.4251, allocations: 111.5 kB / 354.5 MB, free: 6.152 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002189/0.4253, allocations: 163.8 kB / 354.6 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00265/0.428, allocations: 1.5 MB / 356.1 MB, free: 4.43 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.673e-05/0.428, allocations: 15.83 kB / 356.1 MB, free: 4.414 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001286/0.4282, allocations: 67.94 kB / 356.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.549e-05/0.4282, allocations: 36 kB / 356.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002096/0.4303, allocations: 1.045 MB / 357.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.4407, allocations: 6.288 MB / 363.6 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001709/0.4425, allocations: 0.6159 MB / 364.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009703/0.4434, allocations: 458.8 kB / 364.6 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.267e-05/0.4435, allocations: 16.69 kB / 364.7 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.742e-05/0.4436, allocations: 51.06 kB / 364.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 4.539e-06/0.4436, allocations: 3.938 kB / 364.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.006161/0.4498, allocations: 2.356 MB / 367.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.565e-05/0.4499, allocations: 111.5 kB / 367.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001871/0.4517, allocations: 1.31 MB / 368.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.14e-05/0.4518, allocations: 41.64 kB / 368.5 MB, free: 7.562 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007132/0.4525, allocations: 0.8492 MB / 369.4 MB, free: 6.703 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.4528, allocations: 260.3 kB / 369.6 MB, free: 6.445 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003037/0.4531, allocations: 206.7 kB / 369.8 MB, free: 6.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002084/0.4533, allocations: 353.9 kB / 370.2 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005932/0.4539, allocations: 278.5 kB / 370.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/0.4551, allocations: 0.7382 MB / 371.2 MB, free: 4.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001762/0.4569, allocations: 1.088 MB / 372.3 MB, free: 3.359 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.4569, allocations: 4 kB / 372.3 MB, free: 3.355 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002465/0.4594, allocations: 1.264 MB / 373.5 MB, free: 2.074 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.722e-05/0.4594, allocations: 12 kB / 373.6 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.829e-05/0.4595, allocations: 16 kB / 373.6 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000584/0.4601, allocations: 131 kB / 373.7 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008789/0.4609, allocations: 259.5 kB / 374 MB, free: 1.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004461/0.4654, allocations: 4.266 MB / 378.2 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.4668, allocations: 64.03 kB / 378.3 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.623e-05/0.4669, allocations: 55.98 kB / 378.3 MB, free: 12.88 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.0009793/0.4679, allocations: 361.3 kB / 378.7 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002838/0.4682, allocations: 138.3 kB / 378.8 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001957/0.4702, allocations: 0.8334 MB / 379.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.4702, allocations: 8 kB / 379.7 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.4702, allocations: 0 / 379.7 MB, free: 11.51 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.718e-06/0.4702, allocations: 3.984 kB / 379.7 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004511/0.4747, allocations: 2.33 MB / 382 MB, free: 9.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.798e-05/0.4748, allocations: 4 kB / 382 MB, free: 9.051 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005811/0.4754, allocations: 123.8 kB / 382.1 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005826/0.476, allocations: 142.8 kB / 382.3 MB, free: 8.781 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.762e-05/0.476, allocations: 19.94 kB / 382.3 MB, free: 8.762 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004817/0.4808, allocations: 4.391 MB / 386.7 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.742e-06/0.4809, allocations: 12.09 kB / 386.7 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.4835, allocations: 1.299 MB / 388 MB, free: 2.586 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007705/0.4843, allocations: 291.2 kB / 388.3 MB, free: 2.281 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001584/0.4845, allocations: 16.14 kB / 388.3 MB, free: 2.266 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006418/0.4851, allocations: 35.97 kB / 388.3 MB, free: 2.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.4853, allocations: 72.34 kB / 388.4 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-05/0.4854, allocations: 24 kB / 388.4 MB, free: 2.137 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001426/0.4868, allocations: 0.8742 MB / 389.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4868, allocations: 0 / 389.3 MB, free: 1.262 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001485/0.4883, allocations: 328 kB / 389.6 MB, free: 0.9414 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.0003376/0.4886, allocations: 139.1 kB / 389.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002037/0.4907, allocations: 1.12 MB / 390.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.4907, allocations: 3.984 kB / 390.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.4918, allocations: 0.7037 MB / 391.6 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001952/0.4937, allocations: 348.9 kB / 391.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006606/0.5004, allocations: 3.577 MB / 395.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001194/0.5016, allocations: 1.217 MB / 396.7 MB, free: 9.645 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009353/0.5026, allocations: 171.6 kB / 396.9 MB, free: 9.473 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002409/0.5028, allocations: 87.42 kB / 397 MB, free: 9.387 MB / 334.1 MB Notification: Performance of SimCode: time 1.683e-06/0.5028, allocations: 0 / 397 MB, free: 9.387 MB / 334.1 MB Notification: Performance of Templates: time 0.0354/0.5382, allocations: 16.78 MB / 413.7 MB, free: 8.578 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)