Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.001237/0.001237, 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.001179/0.001179, allocations: 193.3 kB / 16.25 MB, free: 6.625 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.957/1.957, allocations: 205.1 MB / 222.1 MB, free: 4.676 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.001901/0.001901, allocations: 43.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4265/0.4285, allocations: 46.62 MB / 324.8 MB, free: 1.957 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01961/0.4482, allocations: 13.85 MB / 338.7 MB, free: 6.219 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01491/0.4632, allocations: 5.03 MB / 343.7 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005242/0.4685, allocations: 55.81 kB / 343.8 MB, free: 1.121 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004858/0.4734, allocations: 0.7771 MB / 344.6 MB, free: 348 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004932/0.4784, allocations: 472.8 kB / 345 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001684/0.4801, allocations: 467.5 kB / 345.5 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004336/0.4845, allocations: 2.155 MB / 347.6 MB, free: 13.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002166/0.4867, allocations: 1.119 MB / 348.8 MB, free: 12.08 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001601/0.4883, allocations: 0.7937 MB / 349.5 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00105/0.4893, allocations: 0.8787 MB / 350.4 MB, free: 10.4 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002803/0.4896, allocations: 228 kB / 350.6 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005512/0.4902, allocations: 280 kB / 350.9 MB, free: 9.906 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003598/0.4906, allocations: 446.5 kB / 351.4 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009893/0.4916, allocations: 0.9797 MB / 352.3 MB, free: 8.484 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003106/0.4947, allocations: 2.714 MB / 355 MB, free: 5.762 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.578e-06/0.4947, allocations: 0 / 355 MB, free: 5.762 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4947, allocations: 0 / 355 MB, free: 5.762 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.286e-05/0.4948, allocations: 0 / 355 MB, free: 5.762 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.005014/0.4998, allocations: 2.027 MB / 357.1 MB, free: 3.676 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.78e-05/0.4999, allocations: 15.89 kB / 357.1 MB, free: 3.66 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000843/0.5008, allocations: 250.5 kB / 357.3 MB, free: 3.414 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001936/0.5027, allocations: 1.028 MB / 358.4 MB, free: 2.344 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.5028, allocations: 111.4 kB / 358.5 MB, free: 2.234 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002376/0.5031, allocations: 160.2 kB / 358.6 MB, free: 2.078 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002732/0.5058, allocations: 1.423 MB / 360.1 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.995e-05/0.5059, allocations: 11.91 kB / 360.1 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001291/0.506, allocations: 60 kB / 360.1 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.709e-05/0.5061, allocations: 43.98 kB / 360.2 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001838/0.5079, allocations: 0.9556 MB / 361.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00925/0.5172, allocations: 6.14 MB / 367.3 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/0.5186, allocations: 0.6527 MB / 367.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004614/0.519, allocations: 238.1 kB / 368.1 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.113e-05/0.5191, allocations: 8.438 kB / 368.2 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.224e-05/0.5192, allocations: 35 kB / 368.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 3.647e-06/0.5192, allocations: 0 / 368.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003944/0.5231, allocations: 1.715 MB / 369.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.458e-05/0.5232, allocations: 81.55 kB / 370 MB, free: 6.207 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001726/0.525, allocations: 1.128 MB / 371.1 MB, free: 5.066 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.681e-05/0.525, allocations: 37.7 kB / 371.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000628/0.5257, allocations: 0.8053 MB / 372 MB, free: 4.207 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001711/0.5258, allocations: 205.1 kB / 372.2 MB, free: 4.004 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002898/0.5261, allocations: 178.5 kB / 372.3 MB, free: 3.824 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.5263, allocations: 349.9 kB / 372.7 MB, free: 3.477 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004846/0.5268, allocations: 248.8 kB / 372.9 MB, free: 3.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008214/0.5277, allocations: 0.6251 MB / 373.5 MB, free: 2.422 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001305/0.529, allocations: 0.9223 MB / 374.5 MB, free: 1.316 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.529, allocations: 4 kB / 374.5 MB, free: 1.312 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001771/0.5308, allocations: 0.991 MB / 375.5 MB, free: 320 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.184e-05/0.5308, allocations: 12 kB / 375.5 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.25e-05/0.5309, allocations: 20 kB / 375.5 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002359/0.5311, allocations: 40.84 kB / 375.5 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007797/0.5319, allocations: 215.7 kB / 375.7 MB, free: 24 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001312/0.5332, allocations: 1.402 MB / 377.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008972/0.5341, allocations: 52.02 kB / 377.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.573e-05/0.5342, allocations: 48 kB / 377.2 MB, free: 14.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009852/0.5352, allocations: 466 kB / 377.7 MB, free: 13.92 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006871/0.5359, allocations: 0.6017 MB / 378.3 MB, free: 13.14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001051/0.537, allocations: 0.86 MB / 379.2 MB, free: 12.1 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.971e-06/0.537, allocations: 4 kB / 379.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001622/0.5386, allocations: 0.9596 MB / 380.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.5387, allocations: 12 kB / 380.1 MB, free: 11.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.5387, allocations: 12 kB / 380.1 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000113/0.5388, allocations: 36.8 kB / 380.2 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006408/0.5394, allocations: 215.7 kB / 380.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00112/0.5406, allocations: 1.394 MB / 381.8 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007972/0.5414, allocations: 43.92 kB / 381.8 MB, free: 9.273 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.204e-05/0.5415, allocations: 48 kB / 381.9 MB, free: 9.227 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.0003276/0.5418, allocations: 243.9 kB / 382.1 MB, free: 8.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.542, allocations: 118.5 kB / 382.2 MB, free: 8.863 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001283/0.5433, allocations: 0.5635 MB / 382.8 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.5433, allocations: 4 kB / 382.8 MB, free: 8.285 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.5433, allocations: 0 / 382.8 MB, free: 8.285 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.875e-06/0.5433, allocations: 3.984 kB / 382.8 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003217/0.5465, allocations: 1.871 MB / 384.7 MB, free: 6.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.5466, allocations: 4 kB / 384.7 MB, free: 6.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005033/0.5471, allocations: 103.8 kB / 384.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001142/0.5472, allocations: 24.84 kB / 384.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.882e-05/0.5472, allocations: 12 kB / 384.8 MB, free: 6.188 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001087/0.5483, allocations: 1.394 MB / 386.2 MB, free: 4.656 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/0.5484, allocations: 4.031 kB / 386.2 MB, free: 4.652 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001568/0.5499, allocations: 0.9032 MB / 387.1 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004602/0.5504, allocations: 247.5 kB / 387.4 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000131/0.5505, allocations: 16.19 kB / 387.4 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005135/0.5511, allocations: 35.97 kB / 387.4 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001229/0.5512, allocations: 44.3 kB / 387.4 MB, free: 3.352 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.315e-05/0.5513, allocations: 19.98 kB / 387.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001224/0.5525, allocations: 0.7634 MB / 388.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5525, allocations: 0 / 388.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001713/0.5542, allocations: 464 kB / 388.7 MB, free: 2.109 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.0002696/0.5545, allocations: 123.2 kB / 388.8 MB, free: 1.98 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002608/0.5571, allocations: 1.269 MB / 390.1 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.5571, allocations: 0 / 390.1 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005762/0.5577, allocations: 353 kB / 390.4 MB, free: 344 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001578/0.5593, allocations: 281.7 kB / 390.7 MB, free: 60 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005798/0.5651, allocations: 3.146 MB / 393.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001038/0.5662, allocations: 1.173 MB / 395 MB, free: 11.65 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007926/0.567, allocations: 157.2 kB / 395.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001947/0.5672, allocations: 79.44 kB / 395.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of SimCode: time 2.394e-06/0.5672, allocations: 0 / 395.2 MB, free: 11.41 MB / 334.1 MB Notification: Performance of Templates: time 0.02936/0.5966, allocations: 13.03 MB / 408.3 MB, free: 14.36 MB / 350.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1)