Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.000937/0.000937, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.0009684/0.0009684, allocations: 177 kB / 17.56 MB, free: 6.18 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.874/1.874, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004567/0.0004567, allocations: 12 kB / 280.7 MB, free: 3.426 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1205, allocations: 47.58 MB / 328.3 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01644/0.1369, allocations: 13.72 MB / 342 MB, free: 5.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01221/0.1492, allocations: 5.19 MB / 347.2 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003859/0.1531, allocations: 63.75 kB / 347.3 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003145/0.1563, allocations: 0.7885 MB / 348.1 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002491/0.1588, allocations: 0.4926 MB / 348.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.1601, allocations: 0.5269 MB / 349.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002703/0.1628, allocations: 2.249 MB / 351.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001607/0.1644, allocations: 1.061 MB / 352.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001016/0.1654, allocations: 0.6606 MB / 353.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008373/0.1663, allocations: 0.7807 MB / 353.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001587/0.1664, allocations: 96 kB / 353.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003449/0.1668, allocations: 140 kB / 354.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002491/0.1671, allocations: 310.4 kB / 354.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007802/0.1678, allocations: 0.9183 MB / 355.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00238/0.1702, allocations: 2.767 MB / 358.1 MB, free: 5.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.796e-06/0.1703, allocations: 4 kB / 358.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1703, allocations: 3.938 kB / 358.1 MB, free: 5.832 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.902e-05/0.1703, allocations: 0 / 358.1 MB, free: 5.832 MB / 302.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.0035/0.1738, allocations: 1.923 MB / 360 MB, free: 3.852 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.1739, allocations: 12.03 kB / 360 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007321/0.1746, allocations: 270.3 kB / 360.3 MB, free: 3.574 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001805/0.1764, allocations: 1.135 MB / 361.4 MB, free: 2.383 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.1766, allocations: 123.7 kB / 361.5 MB, free: 2.262 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002448/0.1768, allocations: 172.3 kB / 361.7 MB, free: 2.094 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002864/0.1797, allocations: 1.617 MB / 363.3 MB, free: 424 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.534e-05/0.1797, allocations: 7.938 kB / 363.3 MB, free: 416 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000127/0.1799, allocations: 68 kB / 363.4 MB, free: 348 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.751e-05/0.1799, allocations: 40 kB / 363.4 MB, free: 308 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002129/0.182, allocations: 1.125 MB / 364.6 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008669/0.1907, allocations: 6.716 MB / 371.3 MB, free: 8.152 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001828/0.1926, allocations: 0.9985 MB / 372.3 MB, free: 7.086 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005929/0.1932, allocations: 326.4 kB / 372.6 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.68e-05/0.1932, allocations: 8.562 kB / 372.6 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.206e-05/0.1933, allocations: 43.11 kB / 372.6 MB, free: 6.707 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 3.687e-06/0.1933, allocations: 3.938 kB / 372.6 MB, free: 6.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.004376/0.1977, allocations: 2.135 MB / 374.8 MB, free: 4.492 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.838e-05/0.1978, allocations: 85.61 kB / 374.9 MB, free: 4.391 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.1996, allocations: 1.273 MB / 376.1 MB, free: 3.102 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.03e-05/0.1997, allocations: 41.7 kB / 376.2 MB, free: 3.055 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008213/0.2005, allocations: 0.8926 MB / 377.1 MB, free: 2.152 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001983/0.2007, allocations: 236.6 kB / 377.3 MB, free: 1.918 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001661/0.2009, allocations: 97.66 kB / 377.4 MB, free: 1.816 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.201, allocations: 345.9 kB / 377.7 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006429/0.2017, allocations: 326.4 kB / 378.1 MB, free: 1.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009558/0.2027, allocations: 0.7198 MB / 378.8 MB, free: 252 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2663/0.469, allocations: 1.088 MB / 379.9 MB, free: 50.52 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-05/0.4691, allocations: 7.625 kB / 379.9 MB, free: 50.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003222/0.4723, allocations: 1.197 MB / 381.1 MB, free: 50.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003817/0.4727, allocations: 0.4891 MB / 381.6 MB, free: 49.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-05/0.4727, allocations: 13.38 kB / 381.6 MB, free: 49.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002073/0.473, allocations: 39.19 kB / 381.6 MB, free: 49.79 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009541/0.4739, allocations: 279.5 kB / 381.9 MB, free: 49.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008917/0.4748, allocations: 1.294 MB / 383.2 MB, free: 48.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001115/0.476, allocations: 71.31 kB / 383.2 MB, free: 48.51 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.48e-05/0.4761, allocations: 51.66 kB / 383.3 MB, free: 48.51 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.398e-06/0.4761, allocations: 4.094 kB / 383.3 MB, free: 48.51 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0019/0.478, allocations: 0.9619 MB / 384.3 MB, free: 48.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.604e-05/0.478, allocations: 21.19 kB / 384.3 MB, free: 48.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001201/0.4781, allocations: 39.78 kB / 384.3 MB, free: 48.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008235/0.479, allocations: 253.5 kB / 384.6 MB, free: 48.35 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007603/0.4798, allocations: 1.296 MB / 385.9 MB, free: 47.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.4809, allocations: 49.56 kB / 385.9 MB, free: 47.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.732e-05/0.4809, allocations: 57.23 kB / 386 MB, free: 47.07 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.0008804/0.4818, allocations: 436.9 kB / 386.4 MB, free: 46.73 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002686/0.4821, allocations: 134.6 kB / 386.5 MB, free: 46.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001706/0.4838, allocations: 0.7366 MB / 387.3 MB, free: 46.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.4838, allocations: 6.125 kB / 387.3 MB, free: 46.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4839, allocations: 1.156 kB / 387.3 MB, free: 46.43 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/0.4839, allocations: 5.156 kB / 387.3 MB, free: 46.43 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004413/0.4883, allocations: 2.179 MB / 389.5 MB, free: 45.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.4883, allocations: 3 kB / 389.5 MB, free: 45.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000674/0.489, allocations: 145.2 kB / 389.6 MB, free: 45.35 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00013/0.4891, allocations: 23.03 kB / 389.6 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.281e-05/0.4892, allocations: 19.64 kB / 389.6 MB, free: 45.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009142/0.4901, allocations: 1.279 MB / 390.9 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.4901, allocations: 6.406 kB / 390.9 MB, free: 44.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002886/0.493, allocations: 1.164 MB / 392.1 MB, free: 43.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008299/0.4939, allocations: 273.4 kB / 392.4 MB, free: 43.37 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001472/0.494, allocations: 23.12 kB / 392.4 MB, free: 43.36 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006923/0.4947, allocations: 59.97 kB / 392.4 MB, free: 43.34 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001998/0.4949, allocations: 45.36 kB / 392.5 MB, free: 43.33 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.644e-05/0.495, allocations: 19.61 kB / 392.5 MB, free: 43.33 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002251/0.4973, allocations: 0.8518 MB / 393.4 MB, free: 42.97 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4973, allocations: 0 / 393.4 MB, free: 42.97 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002384/0.4997, allocations: 0.506 MB / 393.9 MB, free: 42.93 MB / 318.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.0003004/0.5, allocations: 131.2 kB / 394 MB, free: 42.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003447/0.5034, allocations: 1.489 MB / 395.5 MB, free: 42.2 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/0.5035, allocations: 7.906 kB / 395.5 MB, free: 42.19 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000813/0.5043, allocations: 444.1 kB / 395.9 MB, free: 41.98 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/0.5066, allocations: 321.7 kB / 396.2 MB, free: 41.87 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006272/0.5128, allocations: 3.677 MB / 399.9 MB, free: 39.6 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008886/0.5138, allocations: 1.237 MB / 401.1 MB, free: 38.87 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.001139/0.5149, allocations: 178.5 kB / 401.3 MB, free: 38.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002116/0.5151, allocations: 86.2 kB / 401.4 MB, free: 38.81 MB / 318.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5151, allocations: 0 / 401.4 MB, free: 38.81 MB / 318.1 MB Notification: Performance of Templates: time 0.02766/0.5428, allocations: 14.13 MB / 415.5 MB, free: 26.26 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1)