Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001964/0.001965, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002171/0.002171, allocations: 187.3 kB / 16.25 MB, free: 6.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.006/2.006, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.001333/0.001333, allocations: 47.94 kB / 278.2 MB, free: 12.61 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3784/0.3798, allocations: 46.62 MB / 324.8 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.02178/0.4017, allocations: 14.42 MB / 339.3 MB, free: 5.621 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01541/0.4172, allocations: 5.225 MB / 344.5 MB, free: 392 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006666/0.4239, allocations: 67.69 kB / 344.6 MB, free: 324 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005144/0.4292, allocations: 0.8044 MB / 345.4 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004736/0.434, allocations: 496.4 kB / 345.8 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0021/0.4361, allocations: 0.5424 MB / 346.4 MB, free: 14.47 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005406/0.4415, allocations: 2.393 MB / 348.8 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004124/0.4457, allocations: 1.204 MB / 350 MB, free: 10.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002457/0.4482, allocations: 0.8677 MB / 350.9 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002859/0.4511, allocations: 0.9681 MB / 351.8 MB, free: 8.98 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007025/0.4518, allocations: 248 kB / 352.1 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001125/0.4529, allocations: 296 kB / 352.4 MB, free: 8.449 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005767/0.4535, allocations: 482.3 kB / 352.8 MB, free: 7.977 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001712/0.4553, allocations: 1.081 MB / 353.9 MB, free: 6.891 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00494/0.4602, allocations: 2.943 MB / 356.8 MB, free: 3.938 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.152e-05/0.4603, allocations: 0 / 356.8 MB, free: 3.938 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.397e-06/0.4603, allocations: 0 / 356.8 MB, free: 3.938 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.8e-05/0.4604, allocations: 4 kB / 356.9 MB, free: 3.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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.007625/0.468, allocations: 2.246 MB / 359.1 MB, free: 1.629 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001057/0.4682, allocations: 11.89 kB / 359.1 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001298/0.4695, allocations: 274.2 kB / 359.4 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002852/0.4723, allocations: 1.123 MB / 360.5 MB, free: 172 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000165/0.4725, allocations: 127.7 kB / 360.6 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003876/0.4729, allocations: 176.3 kB / 360.8 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004813/0.4778, allocations: 1.597 MB / 362.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-05/0.4778, allocations: 11.89 kB / 362.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001952/0.4781, allocations: 68 kB / 362.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-05/0.4781, allocations: 40 kB / 362.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003486/0.4816, allocations: 1.085 MB / 363.6 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01756/0.4992, allocations: 6.662 MB / 370.3 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003133/0.5024, allocations: 0.9398 MB / 371.2 MB, free: 5.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.5035, allocations: 310.4 kB / 371.5 MB, free: 4.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.835e-05/0.5036, allocations: 4.562 kB / 371.5 MB, free: 4.727 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.643e-05/0.5037, allocations: 39.12 kB / 371.5 MB, free: 4.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 6.282e-06/0.5037, allocations: 0 / 371.5 MB, free: 4.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.007366/0.5111, allocations: 2.034 MB / 373.6 MB, free: 2.566 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.5112, allocations: 89.59 kB / 373.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003217/0.5144, allocations: 1.273 MB / 374.9 MB, free: 1.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.635e-05/0.5145, allocations: 41.7 kB / 375 MB, free: 1.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001017/0.5156, allocations: 0.8927 MB / 375.9 MB, free: 228 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003511/0.5159, allocations: 240.7 kB / 376.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004553/0.5164, allocations: 206.6 kB / 376.3 MB, free: 15.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002387/0.5167, allocations: 345.9 kB / 376.6 MB, free: 15.42 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001094/0.5178, allocations: 306 kB / 376.9 MB, free: 15.12 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/0.5194, allocations: 0.7119 MB / 377.7 MB, free: 14.22 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002703/0.5221, allocations: 1.043 MB / 378.7 MB, free: 12.99 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/0.5221, allocations: 4 kB / 378.7 MB, free: 12.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004073/0.5262, allocations: 1.164 MB / 379.9 MB, free: 11.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.562e-05/0.5263, allocations: 8 kB / 379.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.442e-05/0.5264, allocations: 19.94 kB / 379.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002619/0.5266, allocations: 37.36 kB / 379.9 MB, free: 11.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/0.5283, allocations: 267.5 kB / 380.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001761/0.5301, allocations: 1.394 MB / 381.6 MB, free: 9.953 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001691/0.5318, allocations: 67.97 kB / 381.7 MB, free: 9.887 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001117/0.5319, allocations: 51.98 kB / 381.7 MB, free: 9.836 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001758/0.5337, allocations: 0.5221 MB / 382.2 MB, free: 9.309 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001356/0.5351, allocations: 0.6737 MB / 382.9 MB, free: 8.441 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002271/0.5374, allocations: 0.9815 MB / 383.9 MB, free: 7.273 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.155e-05/0.5374, allocations: 4 kB / 383.9 MB, free: 7.27 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.003361/0.5408, allocations: 1.098 MB / 385 MB, free: 6.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.111e-05/0.5408, allocations: 8 kB / 385 MB, free: 6.152 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.89e-05/0.5409, allocations: 16 kB / 385 MB, free: 6.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002001/0.5411, allocations: 36.8 kB / 385 MB, free: 6.098 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001611/0.5427, allocations: 256.1 kB / 385.3 MB, free: 5.848 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001653/0.5444, allocations: 1.394 MB / 386.7 MB, free: 4.312 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.5461, allocations: 47.98 kB / 386.7 MB, free: 4.266 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.5462, allocations: 52 kB / 386.8 MB, free: 4.215 MB / 318.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.0004542/0.5467, allocations: 251.9 kB / 387 MB, free: 3.961 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004789/0.5472, allocations: 146.3 kB / 387.2 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002568/0.5497, allocations: 0.6886 MB / 387.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.5498, allocations: 8 kB / 387.9 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.5498, allocations: 4 kB / 387.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.5498, allocations: 3.984 kB / 387.9 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006537/0.5564, allocations: 2.131 MB / 390 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.5564, allocations: 4 kB / 390 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.5576, allocations: 135.7 kB / 390.1 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001756/0.5578, allocations: 24.84 kB / 390.2 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.252e-05/0.5579, allocations: 16 kB / 390.2 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001871/0.5598, allocations: 1.386 MB / 391.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.319e-06/0.5598, allocations: 0 / 391.6 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00361/0.5635, allocations: 1.104 MB / 392.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.5646, allocations: 271.3 kB / 392.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005641/0.5652, allocations: 16 kB / 393 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001412/0.5666, allocations: 47.89 kB / 393 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001834/0.5668, allocations: 44.52 kB / 393 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.101e-05/0.5669, allocations: 19.98 kB / 393.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002567/0.5695, allocations: 0.858 MB / 393.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5695, allocations: 0 / 393.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.003404/0.573, allocations: 0.5038 MB / 394.4 MB, free: 12.24 MB / 334.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.0003485/0.5733, allocations: 131.1 kB / 394.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004979/0.5783, allocations: 1.479 MB / 396 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.5784, allocations: 0 / 396 MB, free: 10.61 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.5795, allocations: 419.1 kB / 396.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002756/0.5823, allocations: 336.5 kB / 396.8 MB, free: 9.859 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008031/0.5903, allocations: 3.545 MB / 400.3 MB, free: 6.262 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001185/0.5916, allocations: 1.233 MB / 401.6 MB, free: 4.996 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001496/0.5931, allocations: 186.5 kB / 401.7 MB, free: 4.809 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003519/0.5934, allocations: 87.42 kB / 401.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of SimCode: time 1.302e-06/0.5935, allocations: 0 / 401.8 MB, free: 4.723 MB / 334.1 MB Notification: Performance of Templates: time 0.04726/0.6407, allocations: 14.88 MB / 416.7 MB, free: 5.82 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1)