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.001231/0.001231, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001618/0.001618, allocations: 192.8 kB / 16.25 MB, free: 6.629 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.98/1.98, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.001385/0.001385, allocations: 51.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3838/0.3852, allocations: 46.62 MB / 324.8 MB, free: 1.922 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.01817/0.4034, allocations: 14.43 MB / 339.3 MB, free: 5.629 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01353/0.417, allocations: 5.213 MB / 344.5 MB, free: 412 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00503/0.4221, allocations: 63.75 kB / 344.6 MB, free: 348 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004244/0.4265, allocations: 0.812 MB / 345.4 MB, free: 15.52 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003965/0.4305, allocations: 496.4 kB / 345.8 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002265/0.4328, allocations: 0.5347 MB / 346.4 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00511/0.4379, allocations: 2.393 MB / 348.8 MB, free: 12.1 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002977/0.4409, allocations: 1.2 MB / 350 MB, free: 10.85 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002015/0.4429, allocations: 0.8754 MB / 350.9 MB, free: 9.973 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002189/0.4452, allocations: 0.9642 MB / 351.8 MB, free: 9.004 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001216/0.4464, allocations: 252 kB / 352.1 MB, free: 8.758 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001526/0.448, allocations: 292 kB / 352.3 MB, free: 8.473 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008974/0.4489, allocations: 486.3 kB / 352.8 MB, free: 7.996 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002086/0.451, allocations: 1.081 MB / 353.9 MB, free: 6.91 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003671/0.4547, allocations: 2.943 MB / 356.8 MB, free: 3.957 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.4547, allocations: 0 / 356.8 MB, free: 3.957 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4547, allocations: 0 / 356.8 MB, free: 3.957 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.418e-05/0.4547, allocations: 0 / 356.8 MB, free: 3.957 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.004605/0.4594, allocations: 2.246 MB / 359.1 MB, free: 1.652 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.4594, allocations: 11.89 kB / 359.1 MB, free: 1.641 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008236/0.4603, allocations: 270.2 kB / 359.4 MB, free: 1.375 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001922/0.4622, allocations: 1.135 MB / 360.5 MB, free: 188 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.4623, allocations: 123.7 kB / 360.6 MB, free: 64 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002639/0.4626, allocations: 180.3 kB / 360.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002892/0.4655, allocations: 1.586 MB / 362.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.211e-05/0.4656, allocations: 23.81 kB / 362.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.4657, allocations: 68 kB / 362.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.543e-05/0.4658, allocations: 40 kB / 362.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002027/0.4678, allocations: 1.078 MB / 363.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009745/0.4775, allocations: 6.67 MB / 370.3 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001834/0.4794, allocations: 0.9328 MB / 371.2 MB, free: 5.059 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005608/0.48, allocations: 302.4 kB / 371.5 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.191e-05/0.4801, allocations: 8.547 kB / 371.5 MB, free: 4.754 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.4801, allocations: 43.12 kB / 371.5 MB, free: 4.703 MB / 302.1 MB Notification: Performance of pre-optimization done (n=61): time 2.966e-06/0.4801, allocations: 4 kB / 371.5 MB, free: 4.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=64): time 0.004363/0.4845, allocations: 2.03 MB / 373.6 MB, free: 2.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.4846, allocations: 93.59 kB / 373.7 MB, free: 2.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001878/0.4865, allocations: 1.273 MB / 374.9 MB, free: 1.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.409e-05/0.4865, allocations: 41.7 kB / 375 MB, free: 1.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006512/0.4872, allocations: 0.8881 MB / 375.9 MB, free: 252 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002021/0.4874, allocations: 240.6 kB / 376.1 MB, free: 8 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003033/0.4877, allocations: 206.6 kB / 376.3 MB, free: 15.8 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.4879, allocations: 353.9 kB / 376.7 MB, free: 15.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000624/0.4885, allocations: 306 kB / 376.9 MB, free: 15.14 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009002/0.4894, allocations: 0.7041 MB / 377.7 MB, free: 14.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001532/0.491, allocations: 1.051 MB / 378.7 MB, free: 13.01 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.265e-06/0.491, allocations: 4 kB / 378.7 MB, free: 13.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002302/0.4933, allocations: 1.164 MB / 379.9 MB, free: 11.83 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.4934, allocations: 8 kB / 379.9 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.299e-05/0.4934, allocations: 19.94 kB / 379.9 MB, free: 11.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002138/0.4936, allocations: 36.86 kB / 379.9 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008802/0.4945, allocations: 268 kB / 380.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001108/0.4956, allocations: 1.39 MB / 381.6 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.4967, allocations: 59.88 kB / 381.6 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-05/0.4968, allocations: 55.98 kB / 381.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001151/0.4979, allocations: 0.526 MB / 382.2 MB, free: 9.332 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007868/0.4987, allocations: 0.6698 MB / 382.9 MB, free: 8.469 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001283/0.5, allocations: 0.9854 MB / 383.9 MB, free: 7.297 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.414e-06/0.5, allocations: 4 kB / 383.9 MB, free: 7.293 MB / 318.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.001951/0.502, allocations: 1.087 MB / 385 MB, free: 6.195 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.502, allocations: 15.98 kB / 385 MB, free: 6.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.502, allocations: 16 kB / 385 MB, free: 6.164 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001174/0.5022, allocations: 36.86 kB / 385 MB, free: 6.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007868/0.503, allocations: 251.6 kB / 385.3 MB, free: 5.879 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.504, allocations: 1.402 MB / 386.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009453/0.5049, allocations: 48.14 kB / 386.7 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.374e-05/0.505, allocations: 56 kB / 386.8 MB, free: 4.234 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.0003202/0.5053, allocations: 251.8 kB / 387 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000189/0.5055, allocations: 138.2 kB / 387.2 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.507, allocations: 0.6964 MB / 387.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.507, allocations: 8 kB / 387.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.5071, allocations: 0 / 387.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.957e-06/0.5071, allocations: 3.984 kB / 387.9 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003435/0.5105, allocations: 2.131 MB / 390 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.5105, allocations: 4 kB / 390 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006164/0.5112, allocations: 140 kB / 390.1 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001053/0.5113, allocations: 24.78 kB / 390.2 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.647e-05/0.5113, allocations: 20 kB / 390.2 MB, free: 0.707 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009817/0.5123, allocations: 1.382 MB / 391.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5123, allocations: 0 / 391.6 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.5143, allocations: 1.1 MB / 392.7 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005179/0.5148, allocations: 279.3 kB / 392.9 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001392/0.5149, allocations: 16 kB / 393 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005782/0.5155, allocations: 43.95 kB / 393 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.5156, allocations: 44.45 kB / 393.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.485e-05/0.5157, allocations: 19.98 kB / 393.1 MB, free: 13.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001251/0.5169, allocations: 0.858 MB / 393.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5169, allocations: 0 / 393.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001761/0.5187, allocations: 0.5038 MB / 394.4 MB, free: 12.26 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.0002537/0.519, allocations: 127.1 kB / 394.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002862/0.5218, allocations: 1.479 MB / 396 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.5219, allocations: 4.375 kB / 396 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007028/0.5226, allocations: 417.7 kB / 396.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.5243, allocations: 337 kB / 396.8 MB, free: 9.879 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005662/0.53, allocations: 3.545 MB / 400.3 MB, free: 6.281 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009303/0.531, allocations: 1.237 MB / 401.6 MB, free: 5.012 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009082/0.5319, allocations: 182.5 kB / 401.7 MB, free: 4.828 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.5321, allocations: 91.36 kB / 401.8 MB, free: 4.738 MB / 334.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5321, allocations: 0 / 401.8 MB, free: 4.738 MB / 334.1 MB Notification: Performance of Templates: time 0.03116/0.5633, allocations: 14.88 MB / 416.7 MB, free: 5.828 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)