Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006013/0.006013, allocations: 98.39 kB / 15.73 MB, free: 6.004 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.001122/0.001122, allocations: 193.1 kB / 16.67 MB, free: 5.934 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.867/1.867, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001207/0.001207, allocations: 46.47 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1235, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01867/0.1422, allocations: 14.56 MB / 387.8 MB, free: 2.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01434/0.1567, allocations: 5.361 MB / 393.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004798/0.1615, allocations: 63.75 kB / 393.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00413/0.1657, allocations: 0.9122 MB / 394.1 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003347/0.1691, allocations: 0.585 MB / 394.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002117/0.1713, allocations: 0.6009 MB / 395.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004689/0.176, allocations: 2.397 MB / 397.7 MB, free: 8.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00261/0.1786, allocations: 1.2 MB / 398.9 MB, free: 7.477 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001807/0.1804, allocations: 0.8676 MB / 399.7 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001859/0.1823, allocations: 0.9642 MB / 400.7 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007633/0.1831, allocations: 252 kB / 401 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001071/0.1842, allocations: 292 kB / 401.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006552/0.1848, allocations: 494.2 kB / 401.7 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001606/0.1865, allocations: 1.073 MB / 402.8 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003372/0.1898, allocations: 3.015 MB / 405.8 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.475e-06/0.1899, allocations: 7.922 kB / 405.8 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1899, allocations: 4 kB / 405.8 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.857e-05/0.1899, allocations: 0 / 405.8 MB, free: 0.5039 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.003995/0.1939, allocations: 2.295 MB / 408.1 MB, free: 14.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.194, allocations: 11.89 kB / 408.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007594/0.1948, allocations: 283.5 kB / 408.4 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001867/0.1966, allocations: 1.167 MB / 409.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.1967, allocations: 135.6 kB / 409.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002128/0.197, allocations: 168.3 kB / 409.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002778/0.1998, allocations: 1.597 MB / 411.5 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.028e-05/0.1998, allocations: 3.953 kB / 411.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/0.1999, allocations: 68 kB / 411.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.154e-05/0.2, allocations: 40 kB / 411.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002128/0.2021, allocations: 1.089 MB / 412.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008317/0.2105, allocations: 6.621 MB / 419.3 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001734/0.2122, allocations: 0.9441 MB / 420.2 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005542/0.2128, allocations: 310.3 kB / 420.5 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.992e-05/0.2128, allocations: 8.562 kB / 420.5 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.2129, allocations: 39.12 kB / 420.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 2.515e-06/0.2129, allocations: 0 / 420.6 MB, free: 1.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.003974/0.2169, allocations: 2.061 MB / 422.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.733e-05/0.217, allocations: 97.55 kB / 422.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001733/0.2187, allocations: 1.27 MB / 424 MB, free: 13.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.554e-05/0.2188, allocations: 41.7 kB / 424 MB, free: 13.6 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007267/0.2195, allocations: 0.9141 MB / 425 MB, free: 12.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001981/0.2197, allocations: 249.9 kB / 425.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003029/0.22, allocations: 202.8 kB / 425.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.2202, allocations: 345.9 kB / 425.7 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000616/0.2208, allocations: 310 kB / 426 MB, free: 11.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008888/0.2217, allocations: 0.708 MB / 426.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001583/0.2233, allocations: 1.043 MB / 427.8 MB, free: 9.453 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.2233, allocations: 7.938 kB / 427.8 MB, free: 9.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002118/0.2254, allocations: 1.169 MB / 429 MB, free: 8.266 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.2255, allocations: 8 kB / 429 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/0.2255, allocations: 19.94 kB / 429 MB, free: 8.238 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001981/0.2257, allocations: 40.89 kB / 429 MB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008822/0.2266, allocations: 263.5 kB / 429.3 MB, free: 7.938 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001268/0.2279, allocations: 1.394 MB / 430.7 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009756/0.2289, allocations: 72.06 kB / 430.8 MB, free: 6.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.796e-05/0.2289, allocations: 48 kB / 430.8 MB, free: 6.281 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001142/0.2301, allocations: 0.5221 MB / 431.3 MB, free: 5.754 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007965/0.2309, allocations: 0.6737 MB / 432 MB, free: 4.887 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001265/0.2322, allocations: 0.9815 MB / 433 MB, free: 3.711 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.502e-06/0.2322, allocations: 4 kB / 433 MB, free: 3.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.001816/0.234, allocations: 1.103 MB / 434.1 MB, free: 2.594 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.2341, allocations: 12 kB / 434.1 MB, free: 2.582 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.2341, allocations: 12 kB / 434.1 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001118/0.2342, allocations: 37.39 kB / 434.2 MB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007992/0.235, allocations: 255.6 kB / 434.4 MB, free: 2.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/0.236, allocations: 1.402 MB / 435.8 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008017/0.2369, allocations: 51.98 kB / 435.9 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.769e-05/0.2369, allocations: 51.98 kB / 435.9 MB, free: 0.6406 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 3 (speedController.integrator.local_reset,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 (139): * Single equations (assignments): 138 * 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.0003458/0.2373, allocations: 251.8 kB / 436.1 MB, free: 396 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002477/0.2375, allocations: 147.1 kB / 436.3 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001649/0.2392, allocations: 0.6926 MB / 437 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.147e-06/0.2392, allocations: 8 kB / 437 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.2392, allocations: 4 kB / 437 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/0.2392, allocations: 3.984 kB / 437 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004361/0.2436, allocations: 2.13 MB / 439.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.2436, allocations: 4.219 kB / 439.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006148/0.2443, allocations: 135.8 kB / 439.3 MB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001135/0.2444, allocations: 20.84 kB / 439.3 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.933e-05/0.2444, allocations: 20 kB / 439.3 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001213/0.2457, allocations: 1.382 MB / 440.7 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.066e-05/0.2457, allocations: 4 kB / 440.7 MB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002171/0.2479, allocations: 1.117 MB / 441.8 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006059/0.2485, allocations: 288 kB / 442.1 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002676/0.2488, allocations: 16 kB / 442.1 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007081/0.2495, allocations: 47.95 kB / 442.2 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.2496, allocations: 44.45 kB / 442.2 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.343e-05/0.2497, allocations: 19.98 kB / 442.2 MB, free: 10.01 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001613/0.2513, allocations: 0.858 MB / 443.1 MB, free: 9.152 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.2513, allocations: 0 / 443.1 MB, free: 9.152 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00209/0.2534, allocations: 0.4961 MB / 443.6 MB, free: 8.656 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.w,dcpm.inertiaRotor.phi,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,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * 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): 62 * 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.0002935/0.2537, allocations: 135 kB / 443.7 MB, free: 8.512 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002889/0.2566, allocations: 1.448 MB / 445.2 MB, free: 7.047 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.2566, allocations: 0 / 445.2 MB, free: 7.047 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007634/0.2574, allocations: 425.9 kB / 445.6 MB, free: 6.613 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/0.2592, allocations: 329.3 kB / 445.9 MB, free: 6.293 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005927/0.2652, allocations: 2.861 MB / 448.8 MB, free: 3.375 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/0.2663, allocations: 1.233 MB / 450 MB, free: 2.113 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008923/0.2672, allocations: 186.5 kB / 450.2 MB, free: 1.926 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002825/0.2675, allocations: 83.44 kB / 450.2 MB, free: 1.844 MB / 382.1 MB Notification: Performance of SimCode: time 1.132e-06/0.2675, allocations: 0 / 450.2 MB, free: 1.844 MB / 382.1 MB Notification: Performance of Templates: time 0.3345/0.602, allocations: 15.27 MB / 465.5 MB, free: 65.48 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1)