Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001831/0.001831, allocations: 103.8 kB / 16.92 MB, free: 5.855 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.001969/0.001969, allocations: 191.3 kB / 17.85 MB, free: 5.176 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.941/1.941, allocations: 205.1 MB / 223.7 MB, free: 12.33 MB / 190.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.001679/0.001679, allocations: 63.91 kB / 280 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1482, allocations: 46.63 MB / 326.6 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.0181/0.1663, allocations: 13.97 MB / 340.6 MB, free: 6.418 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01328/0.1796, allocations: 5.158 MB / 345.8 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005804/0.1856, allocations: 59.75 kB / 345.8 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004102/0.1897, allocations: 0.8657 MB / 346.7 MB, free: 320 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003873/0.1937, allocations: 0.5503 MB / 347.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001694/0.1954, allocations: 0.515 MB / 347.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004049/0.1994, allocations: 2.155 MB / 349.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001766/0.2012, allocations: 1.116 MB / 351 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001428/0.2027, allocations: 0.7899 MB / 351.8 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009374/0.2036, allocations: 0.8749 MB / 352.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000279/0.2039, allocations: 236 kB / 352.9 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005112/0.2044, allocations: 268 kB / 353.2 MB, free: 9.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003481/0.2048, allocations: 450.5 kB / 353.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009501/0.2058, allocations: 0.9797 MB / 354.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003066/0.2088, allocations: 2.714 MB / 357.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2089, allocations: 0 / 357.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2089, allocations: 0 / 357.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.194e-05/0.2089, allocations: 0 / 357.3 MB, free: 5.598 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003916/0.2128, allocations: 2.035 MB / 359.3 MB, free: 3.504 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.847e-05/0.2129, allocations: 15.89 kB / 359.4 MB, free: 3.488 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007707/0.2137, allocations: 246.5 kB / 359.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001661/0.2154, allocations: 1.028 MB / 360.6 MB, free: 2.176 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.052e-05/0.2155, allocations: 111.4 kB / 360.7 MB, free: 2.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000202/0.2157, allocations: 156.3 kB / 360.9 MB, free: 1.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002375/0.218, allocations: 1.431 MB / 362.3 MB, free: 436 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.937e-05/0.2181, allocations: 15.89 kB / 362.3 MB, free: 420 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.2182, allocations: 56 kB / 362.4 MB, free: 364 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.982e-05/0.2183, allocations: 36 kB / 362.4 MB, free: 328 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001778/0.2201, allocations: 0.9557 MB / 363.4 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008328/0.2284, allocations: 6.144 MB / 369.5 MB, free: 8.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.2296, allocations: 0.6518 MB / 370.2 MB, free: 8.215 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000424/0.23, allocations: 242 kB / 370.4 MB, free: 7.977 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.97e-05/0.2301, allocations: 4.438 kB / 370.4 MB, free: 7.973 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.374e-05/0.2301, allocations: 39 kB / 370.5 MB, free: 7.926 MB / 318.1 MB Notification: Performance of pre-optimization done (n=51): time 3.396e-06/0.2301, allocations: 4 kB / 370.5 MB, free: 7.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.003383/0.2335, allocations: 1.711 MB / 372.2 MB, free: 6.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.456e-05/0.2336, allocations: 85.55 kB / 372.3 MB, free: 6.031 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001566/0.2352, allocations: 1.131 MB / 373.4 MB, free: 4.887 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.2352, allocations: 33.7 kB / 373.4 MB, free: 4.848 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005749/0.2358, allocations: 0.8054 MB / 374.2 MB, free: 4.031 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001719/0.236, allocations: 201.1 kB / 374.4 MB, free: 3.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002744/0.2363, allocations: 186.5 kB / 374.6 MB, free: 3.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.2364, allocations: 341.9 kB / 374.9 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004729/0.2369, allocations: 244.8 kB / 375.2 MB, free: 3.062 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007376/0.2377, allocations: 0.629 MB / 375.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.2389, allocations: 0.9107 MB / 376.7 MB, free: 1.156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.2389, allocations: 4 kB / 376.7 MB, free: 1.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00163/0.2405, allocations: 1.003 MB / 377.7 MB, free: 144 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.2406, allocations: 12 kB / 377.7 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.2406, allocations: 15.94 kB / 377.7 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001998/0.2408, allocations: 36.84 kB / 377.8 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2547/0.4955, allocations: 222.4 kB / 378 MB, free: 52.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.497, allocations: 1.393 MB / 379.4 MB, free: 50.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/0.4983, allocations: 53.81 kB / 379.4 MB, free: 50.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.29e-05/0.4984, allocations: 45.11 kB / 379.5 MB, free: 50.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001177/0.4995, allocations: 470.7 kB / 380 MB, free: 50.73 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007746/0.5003, allocations: 0.5966 MB / 380.5 MB, free: 50.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001312/0.5017, allocations: 0.8666 MB / 381.4 MB, free: 49.76 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.428e-05/0.5017, allocations: 4.219 kB / 381.4 MB, free: 49.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.002208/0.5039, allocations: 0.9513 MB / 382.4 MB, free: 49.5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.5039, allocations: 9.719 kB / 382.4 MB, free: 49.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.504, allocations: 15.78 kB / 382.4 MB, free: 49.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001432/0.5041, allocations: 42.14 kB / 382.4 MB, free: 49.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007082/0.5048, allocations: 210.3 kB / 382.6 MB, free: 49.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000812/0.5056, allocations: 1.399 MB / 384 MB, free: 48.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007648/0.5064, allocations: 40.95 kB / 384.1 MB, free: 48.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.714e-05/0.5065, allocations: 46.47 kB / 384.1 MB, free: 48.04 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * 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.0002862/0.5068, allocations: 252.7 kB / 384.4 MB, free: 47.81 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.507, allocations: 114.6 kB / 384.5 MB, free: 47.81 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.5082, allocations: 0.5621 MB / 385 MB, free: 47.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.5083, allocations: 8.531 kB / 385.1 MB, free: 47.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.5083, allocations: 5.094 kB / 385.1 MB, free: 47.56 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.5083, allocations: 4.172 kB / 385.1 MB, free: 47.56 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003397/0.5117, allocations: 1.865 MB / 386.9 MB, free: 46.61 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.66e-06/0.5117, allocations: 2.125 kB / 386.9 MB, free: 46.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005116/0.5122, allocations: 107.7 kB / 387 MB, free: 46.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.677e-05/0.5123, allocations: 19.06 kB / 387.1 MB, free: 46.59 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.026e-05/0.5124, allocations: 16.5 kB / 387.1 MB, free: 46.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008055/0.5132, allocations: 1.376 MB / 388.4 MB, free: 45.17 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.5132, allocations: 2.219 kB / 388.4 MB, free: 45.17 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001581/0.5148, allocations: 0.9079 MB / 389.4 MB, free: 44.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003543/0.5152, allocations: 251.9 kB / 389.6 MB, free: 44.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001235/0.5153, allocations: 14 kB / 389.6 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004996/0.5158, allocations: 36.86 kB / 389.7 MB, free: 44.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.5159, allocations: 36.88 kB / 389.7 MB, free: 44.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.869e-05/0.516, allocations: 19.78 kB / 389.7 MB, free: 44.55 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001377/0.5173, allocations: 0.7567 MB / 390.5 MB, free: 44.23 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5174, allocations: 0 / 390.5 MB, free: 44.23 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002046/0.5194, allocations: 471.5 kB / 390.9 MB, free: 44.19 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,loadTorque.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 (53): * Single equations (assignments): 52 * 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.0003819/0.5198, allocations: 133 kB / 391.1 MB, free: 44.08 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002756/0.5226, allocations: 1.26 MB / 392.3 MB, free: 43.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.5226, allocations: 2 kB / 392.3 MB, free: 43.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006202/0.5232, allocations: 357.5 kB / 392.7 MB, free: 43.3 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/0.5246, allocations: 289.6 kB / 392.9 MB, free: 43.2 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005064/0.5297, allocations: 2.531 MB / 395.5 MB, free: 41.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/0.5307, allocations: 1.17 MB / 396.7 MB, free: 41.08 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007935/0.5315, allocations: 153.8 kB / 396.8 MB, free: 41.05 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002128/0.5318, allocations: 73.2 kB / 396.9 MB, free: 41.04 MB / 318.1 MB Notification: Performance of SimCode: time 1.423e-06/0.5318, allocations: 4.906 kB / 396.9 MB, free: 41.04 MB / 318.1 MB Notification: Performance of Templates: time 0.02359/0.5554, allocations: 13.1 MB / 410 MB, free: 31.63 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1)