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.001216/0.001216, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001226/0.001226, allocations: 192.6 kB / 16.14 MB, free: 6.668 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.94/1.94, allocations: 205.1 MB / 222 MB, free: 4.742 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.001328/0.001328, allocations: 47.94 kB / 278.1 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3769/0.3783, allocations: 46.63 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01553/0.3938, allocations: 13.84 MB / 338.5 MB, free: 6.27 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0111/0.405, allocations: 5.042 MB / 343.6 MB, free: 1.215 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004186/0.4092, allocations: 55.81 kB / 343.6 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003504/0.4128, allocations: 0.7615 MB / 344.4 MB, free: 404 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0036/0.4164, allocations: 476.7 kB / 344.8 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002089/0.4185, allocations: 459.6 kB / 345.3 MB, free: 15.47 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003819/0.4224, allocations: 2.034 MB / 347.3 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002118/0.4245, allocations: 0.9965 MB / 348.3 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001317/0.4258, allocations: 0.6882 MB / 349 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001877/0.4277, allocations: 0.8202 MB / 349.8 MB, free: 10.87 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006049/0.4283, allocations: 136 kB / 350 MB, free: 10.74 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008689/0.4292, allocations: 172 kB / 350.1 MB, free: 10.57 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002771/0.4295, allocations: 342.5 kB / 350.5 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008942/0.4304, allocations: 0.8859 MB / 351.4 MB, free: 9.344 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002124/0.4325, allocations: 2.64 MB / 354 MB, free: 6.695 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.4326, allocations: 0 / 354 MB, free: 6.695 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.4326, allocations: 0 / 354 MB, free: 6.695 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.391e-05/0.4326, allocations: 0 / 354 MB, free: 6.695 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.003776/0.4364, allocations: 2.035 MB / 356 MB, free: 4.602 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.4364, allocations: 12.03 kB / 356 MB, free: 4.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006834/0.4371, allocations: 242.5 kB / 356.3 MB, free: 4.352 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001423/0.4386, allocations: 1.02 MB / 357.3 MB, free: 3.289 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.566e-05/0.4386, allocations: 111.4 kB / 357.4 MB, free: 3.18 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001846/0.4388, allocations: 164.3 kB / 357.6 MB, free: 3.02 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002288/0.4411, allocations: 1.435 MB / 359 MB, free: 1.527 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.086e-05/0.4412, allocations: 7.906 kB / 359 MB, free: 1.52 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.4413, allocations: 64 kB / 359.1 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.166e-05/0.4413, allocations: 36 kB / 359.1 MB, free: 1.422 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001764/0.4431, allocations: 0.9478 MB / 360.1 MB, free: 480 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007872/0.451, allocations: 6.152 MB / 366.2 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001107/0.4521, allocations: 0.6452 MB / 366.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004116/0.4526, allocations: 234.1 kB / 367.1 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.686e-05/0.4526, allocations: 12.42 kB / 367.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.656e-05/0.4527, allocations: 43 kB / 367.1 MB, free: 9.031 MB / 302.1 MB Notification: Performance of pre-optimization done (n=51): time 2.915e-06/0.4527, allocations: 0 / 367.1 MB, free: 9.031 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.003133/0.4558, allocations: 1.711 MB / 368.8 MB, free: 7.242 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.844e-05/0.4559, allocations: 81.55 kB / 368.9 MB, free: 7.145 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00145/0.4573, allocations: 1.131 MB / 370.1 MB, free: 6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.502e-05/0.4574, allocations: 37.7 kB / 370.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005131/0.4579, allocations: 0.8054 MB / 370.9 MB, free: 5.141 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.4581, allocations: 205.1 kB / 371.1 MB, free: 4.938 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002261/0.4583, allocations: 178.5 kB / 371.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4585, allocations: 345.9 kB / 371.6 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004556/0.4589, allocations: 248.7 kB / 371.9 MB, free: 4.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006943/0.4596, allocations: 0.6251 MB / 372.5 MB, free: 3.359 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.4608, allocations: 0.9146 MB / 373.4 MB, free: 2.262 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.4608, allocations: 4 kB / 373.4 MB, free: 2.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001598/0.4624, allocations: 0.9986 MB / 374.4 MB, free: 1.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.4625, allocations: 12 kB / 374.4 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.146e-05/0.4625, allocations: 12 kB / 374.4 MB, free: 1.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001726/0.4627, allocations: 36.86 kB / 374.5 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007098/0.4634, allocations: 223.6 kB / 374.7 MB, free: 0.9688 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.4644, allocations: 1.307 MB / 376 MB, free: 15.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007512/0.4652, allocations: 52.03 kB / 376 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.835e-05/0.4653, allocations: 48 kB / 376.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008873/0.4662, allocations: 466.1 kB / 376.5 MB, free: 14.97 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006242/0.4668, allocations: 0.6017 MB / 377.1 MB, free: 14.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001045/0.4679, allocations: 0.86 MB / 378 MB, free: 13.14 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.6e-06/0.4679, allocations: 4 kB / 378 MB, free: 13.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001401/0.4693, allocations: 0.9481 MB / 378.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.4693, allocations: 12 kB / 379 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.4693, allocations: 12 kB / 379 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001059/0.4694, allocations: 44.78 kB / 379 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006311/0.4701, allocations: 215.6 kB / 379.2 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009207/0.471, allocations: 1.295 MB / 380.5 MB, free: 10.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007236/0.4718, allocations: 39.98 kB / 380.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.685e-05/0.4718, allocations: 44 kB / 380.6 MB, free: 10.39 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.0002577/0.4721, allocations: 256.5 kB / 380.9 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.4722, allocations: 110.6 kB / 381 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.4733, allocations: 0.5596 MB / 381.5 MB, free: 9.453 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.4734, allocations: 15.92 kB / 381.5 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.4734, allocations: 4 kB / 381.5 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.4734, allocations: 3.984 kB / 381.5 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002797/0.4762, allocations: 1.871 MB / 383.4 MB, free: 7.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.4762, allocations: 0 / 383.4 MB, free: 7.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004696/0.4767, allocations: 103.9 kB / 383.5 MB, free: 7.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.17e-05/0.4768, allocations: 25.02 kB / 383.5 MB, free: 7.352 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.562e-05/0.4768, allocations: 23.98 kB / 383.6 MB, free: 7.328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000881/0.4777, allocations: 1.276 MB / 384.8 MB, free: 5.922 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4777, allocations: 3.938 kB / 384.8 MB, free: 5.918 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00135/0.4791, allocations: 0.9032 MB / 385.7 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003338/0.4794, allocations: 247.6 kB / 386 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001201/0.4796, allocations: 19.98 kB / 386 MB, free: 4.691 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004912/0.4801, allocations: 27.92 kB / 386 MB, free: 4.664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.829e-05/0.4802, allocations: 40.39 kB / 386.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.4802, allocations: 16.08 kB / 386.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001047/0.4812, allocations: 0.7634 MB / 386.9 MB, free: 3.84 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.4813, allocations: 4 kB / 386.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001586/0.4828, allocations: 464 kB / 387.3 MB, free: 3.383 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.0003942/0.4833, allocations: 131 kB / 387.4 MB, free: 3.246 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002186/0.4854, allocations: 1.249 MB / 388.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.378e-06/0.4855, allocations: 0 / 388.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00053/0.486, allocations: 350.6 kB / 389 MB, free: 1.625 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001415/0.4874, allocations: 280.4 kB / 389.3 MB, free: 1.348 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005489/0.4929, allocations: 3.141 MB / 392.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001425/0.4944, allocations: 1.173 MB / 393.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009566/0.4953, allocations: 157.2 kB / 393.8 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002527/0.4956, allocations: 83.38 kB / 393.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4956, allocations: 0 / 393.9 MB, free: 12.7 MB / 334.1 MB Notification: Performance of Templates: time 0.02799/0.5236, allocations: 12.5 MB / 406.4 MB, free: 192 kB / 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)