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.001124/0.001124, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008504/0.008504, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.834/1.834, allocations: 205.4 MB / 222.4 MB, free: 5.797 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.0005825/0.0005827, allocations: 12 kB / 279.5 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3744/0.375, allocations: 47.58 MB / 327 MB, free: 1.223 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01669/0.3918, allocations: 13.18 MB / 340.2 MB, free: 6.055 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01159/0.4034, allocations: 4.987 MB / 345.2 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003596/0.4071, allocations: 51.81 kB / 345.3 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002617/0.4097, allocations: 0.7654 MB / 346 MB, free: 240 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002445/0.4122, allocations: 476.7 kB / 346.5 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.4134, allocations: 451.6 kB / 346.9 MB, free: 15.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002657/0.4161, allocations: 2.03 MB / 349 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001579/0.4177, allocations: 0.9809 MB / 349.9 MB, free: 12.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.4189, allocations: 0.6179 MB / 350.6 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000889/0.4198, allocations: 0.711 MB / 351.3 MB, free: 10.92 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001602/0.4199, allocations: 92 kB / 351.4 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000471/0.4204, allocations: 135.9 kB / 351.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002718/0.4207, allocations: 286.5 kB / 351.8 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000895/0.4216, allocations: 0.8408 MB / 352.6 MB, free: 9.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002578/0.4242, allocations: 2.553 MB / 355.2 MB, free: 7 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.4242, allocations: 0 / 355.2 MB, free: 7 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.4242, allocations: 0 / 355.2 MB, free: 7 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.178e-05/0.4243, allocations: 0 / 355.2 MB, free: 7 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.003495/0.4278, allocations: 1.735 MB / 356.9 MB, free: 5.207 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.4278, allocations: 12.03 kB / 356.9 MB, free: 5.195 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007074/0.4285, allocations: 254.5 kB / 357.2 MB, free: 4.945 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001961/0.4305, allocations: 1.02 MB / 358.2 MB, free: 3.883 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.4307, allocations: 111.4 kB / 358.3 MB, free: 3.773 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002247/0.4309, allocations: 156.4 kB / 358.4 MB, free: 3.621 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00274/0.4336, allocations: 1.435 MB / 359.9 MB, free: 2.129 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.984e-05/0.4337, allocations: 15.84 kB / 359.9 MB, free: 2.113 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/0.4338, allocations: 68 kB / 360 MB, free: 2.047 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.524e-05/0.4339, allocations: 36 kB / 360 MB, free: 2.012 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002034/0.4359, allocations: 0.9751 MB / 361 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009333/0.4453, allocations: 6.183 MB / 367.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.4465, allocations: 0.6647 MB / 367.8 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004501/0.4469, allocations: 246.1 kB / 368.1 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.998e-05/0.447, allocations: 8.422 kB / 368.1 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.122e-05/0.447, allocations: 43 kB / 368.1 MB, free: 9.535 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 3.066e-06/0.4471, allocations: 0 / 368.1 MB, free: 9.535 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003592/0.4507, allocations: 1.761 MB / 369.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.612e-05/0.4508, allocations: 93.53 kB / 370 MB, free: 7.586 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001735/0.4525, allocations: 1.124 MB / 371.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.867e-05/0.4526, allocations: 37.7 kB / 371.1 MB, free: 6.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00075/0.4533, allocations: 0.8131 MB / 371.9 MB, free: 5.582 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.4535, allocations: 201.2 kB / 372.1 MB, free: 5.383 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/0.4536, allocations: 85.67 kB / 372.2 MB, free: 5.293 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.4538, allocations: 337.9 kB / 372.5 MB, free: 4.957 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000501/0.4544, allocations: 249.9 kB / 372.8 MB, free: 4.715 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008534/0.4552, allocations: 0.6368 MB / 373.4 MB, free: 3.895 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.4567, allocations: 0.938 MB / 374.4 MB, free: 2.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.4567, allocations: 4 kB / 374.4 MB, free: 2.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001665/0.4583, allocations: 1.01 MB / 375.4 MB, free: 1.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003623/0.4587, allocations: 489.5 kB / 375.9 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.227e-05/0.4587, allocations: 12 kB / 375.9 MB, free: 1.074 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001889/0.4589, allocations: 40.8 kB / 375.9 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007164/0.4597, allocations: 227.6 kB / 376.1 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001164/0.4608, allocations: 1.303 MB / 377.4 MB, free: 15.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006638/0.4615, allocations: 52.05 kB / 377.5 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.104e-05/0.4616, allocations: 51.92 kB / 377.5 MB, free: 15.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.41e-06/0.4616, allocations: 4 kB / 377.5 MB, free: 15.27 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0013/0.4629, allocations: 0.8149 MB / 378.4 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.4629, allocations: 16.19 kB / 378.4 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.505e-05/0.463, allocations: 40.84 kB / 378.4 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006354/0.4637, allocations: 215.7 kB / 378.6 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009798/0.4647, allocations: 1.303 MB / 379.9 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000544/0.4652, allocations: 39.92 kB / 380 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.326e-05/0.4653, allocations: 48 kB / 380 MB, free: 12.66 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.0006633/0.466, allocations: 408.8 kB / 380.4 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001661/0.4661, allocations: 126.5 kB / 380.5 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001136/0.4673, allocations: 0.5791 MB / 381.1 MB, free: 11.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.4673, allocations: 4 kB / 381.1 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.4673, allocations: 4 kB / 381.1 MB, free: 11.53 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.4673, allocations: 3.984 kB / 381.1 MB, free: 11.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002857/0.4702, allocations: 1.886 MB / 383 MB, free: 9.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.4702, allocations: 0 / 383 MB, free: 9.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004742/0.4707, allocations: 116 kB / 383.1 MB, free: 9.445 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.058e-05/0.4708, allocations: 28.84 kB / 383.1 MB, free: 9.414 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.436e-05/0.4708, allocations: 12 kB / 383.2 MB, free: 9.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001048/0.4719, allocations: 1.276 MB / 384.4 MB, free: 7.992 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.099e-06/0.4719, allocations: 4 kB / 384.4 MB, free: 7.988 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001506/0.4734, allocations: 0.95 MB / 385.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003469/0.4738, allocations: 243.5 kB / 385.6 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001083/0.4739, allocations: 12 kB / 385.6 MB, free: 6.727 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004841/0.4744, allocations: 39.97 kB / 385.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.608e-05/0.4745, allocations: 44.33 kB / 385.7 MB, free: 6.645 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.087e-05/0.4745, allocations: 20 kB / 385.7 MB, free: 6.625 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001138/0.4757, allocations: 0.7557 MB / 386.5 MB, free: 5.863 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4757, allocations: 0 / 386.5 MB, free: 5.863 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001615/0.4773, allocations: 468 kB / 387 MB, free: 5.406 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.0002801/0.4776, allocations: 135 kB / 387.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002079/0.4797, allocations: 1.264 MB / 388.3 MB, free: 3.984 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4797, allocations: 0 / 388.3 MB, free: 3.984 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005312/0.4802, allocations: 366.9 kB / 388.7 MB, free: 3.613 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001552/0.4818, allocations: 260.7 kB / 389 MB, free: 3.355 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004733/0.4865, allocations: 3.262 MB / 392.2 MB, free: 36 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009968/0.4875, allocations: 1.169 MB / 393.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007679/0.4883, allocations: 161.2 kB / 393.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.4885, allocations: 87.42 kB / 393.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4885, allocations: 0 / 393.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of Templates: time 0.02598/0.5145, allocations: 12.39 MB / 406 MB, free: 2.184 MB / 334.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)