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.00905/0.009057, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001601/0.001601, allocations: 196.2 kB / 16.67 MB, free: 5.52 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.916/1.916, allocations: 205.1 MB / 222.5 MB, free: 12.25 MB / 190.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.001299/0.001299, allocations: 51.92 kB / 326.6 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1464, allocations: 46.61 MB / 373.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.2777/0.4242, allocations: 14.57 MB / 387.7 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01263/0.4369, allocations: 5.359 MB / 393.1 MB, free: 1 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005581/0.4425, allocations: 72.25 kB / 393.2 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003999/0.4465, allocations: 0.9523 MB / 394.1 MB, free: 484 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003502/0.4501, allocations: 0.6241 MB / 394.7 MB, free: 12 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001933/0.452, allocations: 0.6064 MB / 395.4 MB, free: 15.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00409/0.4561, allocations: 2.399 MB / 397.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002015/0.4581, allocations: 1.21 MB / 399 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002089/0.4602, allocations: 0.8739 MB / 399.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001291/0.4616, allocations: 0.9621 MB / 400.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003378/0.4619, allocations: 251 kB / 401 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005936/0.4625, allocations: 290 kB / 401.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004427/0.463, allocations: 487.8 kB / 401.8 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00114/0.4641, allocations: 1.081 MB / 402.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003991/0.4681, allocations: 3.011 MB / 405.9 MB, free: 9.891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.4681, allocations: 5 kB / 405.9 MB, free: 9.887 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4681, allocations: 0 / 405.9 MB, free: 9.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.187e-05/0.4682, allocations: 0 / 405.9 MB, free: 9.887 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.004795/0.473, allocations: 2.242 MB / 408.1 MB, free: 8.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.4731, allocations: 12.92 kB / 408.2 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009263/0.474, allocations: 268.6 kB / 408.4 MB, free: 8.109 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002284/0.4763, allocations: 1.167 MB / 409.6 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.4764, allocations: 123.3 kB / 409.7 MB, free: 7.121 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000272/0.4767, allocations: 173.7 kB / 409.9 MB, free: 7.059 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003241/0.48, allocations: 1.592 MB / 411.5 MB, free: 6.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.255e-05/0.48, allocations: 6.5 kB / 411.5 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001381/0.4802, allocations: 67.06 kB / 411.5 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.64e-05/0.4802, allocations: 44.56 kB / 411.6 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002489/0.4827, allocations: 1.087 MB / 412.7 MB, free: 5.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0105/0.4932, allocations: 6.603 MB / 419.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001964/0.4952, allocations: 0.9369 MB / 420.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006232/0.4959, allocations: 307 kB / 420.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.58e-05/0.4959, allocations: 11.5 kB / 420.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.496, allocations: 43.19 kB / 420.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 2.554e-06/0.496, allocations: 4 kB / 420.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.004652/0.5006, allocations: 2.03 MB / 422.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.336e-05/0.5007, allocations: 89.61 kB / 422.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001878/0.5026, allocations: 1.273 MB / 424 MB, free: 12.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.682e-05/0.5027, allocations: 37.7 kB / 424 MB, free: 12.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006651/0.5033, allocations: 0.8897 MB / 424.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.5036, allocations: 244.5 kB / 425.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003006/0.5039, allocations: 202.7 kB / 425.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.504, allocations: 349.9 kB / 425.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006194/0.5047, allocations: 306 kB / 426 MB, free: 10.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009373/0.5056, allocations: 0.7002 MB / 426.7 MB, free: 9.242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001624/0.5073, allocations: 1.047 MB / 427.7 MB, free: 8.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.013e-06/0.5073, allocations: 4 kB / 427.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002134/0.5094, allocations: 1.164 MB / 428.9 MB, free: 6.832 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.5095, allocations: 15.98 kB / 428.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.988e-05/0.5095, allocations: 19.92 kB / 428.9 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002037/0.5097, allocations: 32.86 kB / 428.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008945/0.5106, allocations: 275.8 kB / 429.2 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.5118, allocations: 1.398 MB / 430.6 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001174/0.513, allocations: 59.88 kB / 430.7 MB, free: 4.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.699e-05/0.5131, allocations: 52 kB / 430.7 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001319/0.5144, allocations: 0.526 MB / 431.2 MB, free: 4.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008191/0.5152, allocations: 0.6738 MB / 431.9 MB, free: 3.438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001366/0.5166, allocations: 0.9855 MB / 432.9 MB, free: 2.262 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.075e-06/0.5166, allocations: 4 kB / 432.9 MB, free: 2.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.001904/0.5185, allocations: 1.086 MB / 434 MB, free: 1.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.5186, allocations: 12.72 kB / 434 MB, free: 1.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.5186, allocations: 12 kB / 434 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000125/0.5187, allocations: 44.84 kB / 434.1 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007809/0.5195, allocations: 251.6 kB / 434.3 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001032/0.5206, allocations: 1.39 MB / 435.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000902/0.5215, allocations: 51.89 kB / 435.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.263e-05/0.5215, allocations: 48 kB / 435.8 MB, free: 15.21 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.0003121/0.5219, allocations: 264.7 kB / 436.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001938/0.5221, allocations: 134.3 kB / 436.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001509/0.5236, allocations: 0.6964 MB / 436.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.5236, allocations: 4 kB / 436.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.5236, allocations: 0 / 436.9 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.5236, allocations: 3.984 kB / 436.9 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003601/0.5272, allocations: 2.138 MB / 439 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.149e-06/0.5272, allocations: 0 / 439 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006367/0.5279, allocations: 131.8 kB / 439.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001206/0.528, allocations: 24.84 kB / 439.2 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.203e-05/0.5281, allocations: 16 kB / 439.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001068/0.5291, allocations: 1.379 MB / 440.6 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.5292, allocations: 4 kB / 440.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.5311, allocations: 1.106 MB / 441.7 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004602/0.5316, allocations: 271.2 kB / 442 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.5318, allocations: 19.98 kB / 442 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006079/0.5324, allocations: 43.97 kB / 442 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.5325, allocations: 44.44 kB / 442.1 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.801e-05/0.5326, allocations: 20 kB / 442.1 MB, free: 8.621 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001297/0.5339, allocations: 0.858 MB / 442.9 MB, free: 7.762 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5339, allocations: 0 / 442.9 MB, free: 7.762 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00187/0.5358, allocations: 0.5038 MB / 443.4 MB, free: 7.258 MB / 366.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.0003012/0.5361, allocations: 139.2 kB / 443.6 MB, free: 7.109 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002778/0.5388, allocations: 1.453 MB / 445 MB, free: 5.641 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.5389, allocations: 0 / 445 MB, free: 5.641 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007087/0.5396, allocations: 413.7 kB / 445.4 MB, free: 5.219 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.5411, allocations: 346.6 kB / 445.8 MB, free: 4.891 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005107/0.5462, allocations: 2.806 MB / 448.6 MB, free: 2.031 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009422/0.5472, allocations: 1.237 MB / 449.8 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008332/0.548, allocations: 186.5 kB / 450 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002423/0.5483, allocations: 83.44 kB / 450.1 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of SimCode: time 2.725e-06/0.5483, allocations: 4 kB / 450.1 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of Templates: time 0.03528/0.5836, allocations: 15.28 MB / 465.4 MB, free: 1.184 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)