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.001431/0.001431, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001871/0.001871, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.942/1.942, allocations: 205.1 MB / 222 MB, free: 4.953 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.00131/0.00131, allocations: 47.92 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3152, allocations: 46.63 MB / 324.7 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.02166/0.3369, allocations: 14.41 MB / 339.1 MB, free: 5.703 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01582/0.3528, allocations: 5.237 MB / 344.3 MB, free: 456 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007113/0.36, allocations: 59.75 kB / 344.4 MB, free: 396 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0054/0.3655, allocations: 0.7924 MB / 345.2 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005351/0.3709, allocations: 496.5 kB / 345.7 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002907/0.3738, allocations: 0.5347 MB / 346.2 MB, free: 14.57 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006302/0.3801, allocations: 2.249 MB / 348.5 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002886/0.3831, allocations: 1.077 MB / 349.5 MB, free: 11.19 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002347/0.3854, allocations: 0.7543 MB / 350.3 MB, free: 10.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001661/0.3871, allocations: 0.9017 MB / 351.2 MB, free: 9.523 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003201/0.3875, allocations: 144 kB / 351.3 MB, free: 9.383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006571/0.3881, allocations: 180 kB / 351.5 MB, free: 9.207 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003541/0.3885, allocations: 386.3 kB / 351.9 MB, free: 8.828 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001394/0.3899, allocations: 0.9713 MB / 352.8 MB, free: 7.852 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004024/0.3939, allocations: 2.861 MB / 355.7 MB, free: 4.98 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.394, allocations: 0 / 355.7 MB, free: 4.98 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.394, allocations: 0 / 355.7 MB, free: 4.98 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.268e-05/0.3941, allocations: 0 / 355.7 MB, free: 4.98 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.005978/0.4001, allocations: 2.243 MB / 358 MB, free: 2.68 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001091/0.4002, allocations: 8.031 kB / 358 MB, free: 2.672 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009274/0.4011, allocations: 274.2 kB / 358.2 MB, free: 2.402 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002135/0.4033, allocations: 1.127 MB / 359.4 MB, free: 1.219 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001251/0.4034, allocations: 119.7 kB / 359.5 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003029/0.4037, allocations: 184.3 kB / 359.7 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003479/0.4072, allocations: 1.59 MB / 361.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.419e-05/0.4073, allocations: 11.89 kB / 361.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000146/0.4075, allocations: 68 kB / 361.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-05/0.4075, allocations: 40 kB / 361.4 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002291/0.4098, allocations: 1.082 MB / 362.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01154/0.4214, allocations: 6.681 MB / 369.1 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/0.4233, allocations: 0.9321 MB / 370.1 MB, free: 6.086 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006104/0.4239, allocations: 298.4 kB / 370.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.768e-05/0.424, allocations: 9.266 kB / 370.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.647e-05/0.424, allocations: 51 kB / 370.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.705e-06/0.424, allocations: 0 / 370.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.004555/0.4286, allocations: 2.026 MB / 372.4 MB, free: 3.621 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.946e-05/0.4287, allocations: 101.6 kB / 372.5 MB, free: 3.504 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001936/0.4307, allocations: 1.27 MB / 373.8 MB, free: 2.219 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.883e-05/0.4307, allocations: 41.7 kB / 373.8 MB, free: 2.172 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007525/0.4315, allocations: 0.8919 MB / 374.7 MB, free: 1.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002189/0.4318, allocations: 244.6 kB / 375 MB, free: 1.027 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002991/0.4321, allocations: 202.7 kB / 375.2 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.4323, allocations: 341.9 kB / 375.5 MB, free: 492 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000646/0.4329, allocations: 310 kB / 375.8 MB, free: 180 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001056/0.434, allocations: 0.7002 MB / 376.5 MB, free: 15.29 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001722/0.4357, allocations: 1.043 MB / 377.5 MB, free: 14.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.4357, allocations: 4 kB / 377.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002821/0.4386, allocations: 1.169 MB / 378.7 MB, free: 12.87 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.656e-05/0.4386, allocations: 12 kB / 378.7 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-05/0.4387, allocations: 15.94 kB / 378.7 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002198/0.4389, allocations: 36.86 kB / 378.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009443/0.4399, allocations: 263.5 kB / 379 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/0.4412, allocations: 1.3 MB / 380.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/0.4424, allocations: 64.03 kB / 380.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.841e-05/0.4425, allocations: 48 kB / 380.5 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001231/0.4437, allocations: 0.5221 MB / 381 MB, free: 10.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008868/0.4446, allocations: 0.6775 MB / 381.7 MB, free: 9.609 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001375/0.446, allocations: 0.9854 MB / 382.6 MB, free: 8.438 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.343e-06/0.446, allocations: 4 kB / 382.6 MB, free: 8.434 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.002088/0.4481, allocations: 1.094 MB / 383.7 MB, free: 7.328 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.4482, allocations: 12 kB / 383.7 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.4482, allocations: 12 kB / 383.8 MB, free: 7.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.4484, allocations: 40.84 kB / 383.8 MB, free: 7.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008612/0.4492, allocations: 252.1 kB / 384 MB, free: 7.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00117/0.4504, allocations: 1.292 MB / 385.3 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001066/0.4515, allocations: 63.97 kB / 385.4 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.522e-05/0.4516, allocations: 52 kB / 385.4 MB, free: 5.477 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.0004112/0.452, allocations: 247.8 kB / 385.7 MB, free: 5.227 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002193/0.4523, allocations: 134.3 kB / 385.8 MB, free: 5.094 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/0.4539, allocations: 0.7003 MB / 386.5 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.4539, allocations: 4 kB / 386.5 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4539, allocations: 4 kB / 386.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.4539, allocations: 3.984 kB / 386.5 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003903/0.4578, allocations: 2.135 MB / 388.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.4579, allocations: 4 kB / 388.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006243/0.4585, allocations: 140 kB / 388.8 MB, free: 1.996 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001093/0.4586, allocations: 24.84 kB / 388.8 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.42e-05/0.4587, allocations: 16 kB / 388.8 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001212/0.4599, allocations: 1.28 MB / 390.1 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.4599, allocations: 0 / 390.1 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00231/0.4622, allocations: 1.108 MB / 391.2 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006287/0.4629, allocations: 271.3 kB / 391.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001483/0.463, allocations: 16 kB / 391.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006385/0.4637, allocations: 47.95 kB / 391.6 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/0.4638, allocations: 48.38 kB / 391.6 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.139e-05/0.4639, allocations: 24 kB / 391.6 MB, free: 14.96 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001385/0.4653, allocations: 0.8502 MB / 392.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4653, allocations: 0 / 392.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001839/0.4671, allocations: 0.5078 MB / 393 MB, free: 13.61 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.0003153/0.4674, allocations: 135.2 kB / 393.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003028/0.4705, allocations: 1.445 MB / 394.6 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.4705, allocations: 0 / 394.6 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008101/0.4713, allocations: 426.2 kB / 395 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/0.4732, allocations: 304.9 kB / 395.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006299/0.4796, allocations: 3.548 MB / 398.8 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001123/0.4807, allocations: 1.233 MB / 400.1 MB, free: 6.406 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001017/0.4817, allocations: 182.4 kB / 400.2 MB, free: 6.223 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000241/0.482, allocations: 87.44 kB / 400.3 MB, free: 6.137 MB / 334.1 MB Notification: Performance of SimCode: time 1.392e-06/0.482, allocations: 0 / 400.3 MB, free: 6.137 MB / 334.1 MB Notification: Performance of Templates: time 0.03315/0.5152, allocations: 14.25 MB / 414.6 MB, free: 7.871 MB / 350.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)