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.001158/0.001159, allocations: 107.6 kB / 17.06 MB, free: 5.949 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.001077/0.001077, allocations: 196 kB / 18 MB, free: 5.039 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.725/1.725, allocations: 205.1 MB / 223.9 MB, free: 12.2 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.001338/0.001338, allocations: 55.91 kB / 327.9 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1518, allocations: 46.62 MB / 374.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM): time 0.3745/0.5264, allocations: 14.56 MB / 389.1 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01744/0.5439, allocations: 5.362 MB / 394.4 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00669/0.5507, allocations: 71.5 kB / 394.5 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005903/0.5568, allocations: 0.9528 MB / 395.5 MB, free: 476 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005845/0.5627, allocations: 0.623 MB / 396.1 MB, free: 4 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003349/0.5661, allocations: 0.605 MB / 396.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008357/0.5745, allocations: 2.398 MB / 399.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004043/0.5786, allocations: 1.206 MB / 400.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003396/0.582, allocations: 0.8768 MB / 401.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003642/0.5857, allocations: 0.9636 MB / 402.1 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001619/0.5873, allocations: 250.1 kB / 402.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002186/0.5896, allocations: 289.8 kB / 402.7 MB, free: 12.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00148/0.5911, allocations: 487.7 kB / 403.1 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004516/0.5956, allocations: 1.08 MB / 404.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009627/0.6053, allocations: 3.008 MB / 407.2 MB, free: 9.891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.136e-05/0.6053, allocations: 3.938 kB / 407.2 MB, free: 9.887 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.6053, allocations: 1.375 kB / 407.2 MB, free: 9.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000281/0.6056, allocations: 0 / 407.2 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.008473/0.6141, allocations: 2.245 MB / 409.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.968e-05/0.6142, allocations: 14.89 kB / 409.5 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001262/0.6155, allocations: 267.1 kB / 409.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002715/0.6182, allocations: 1.163 MB / 410.9 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/0.6184, allocations: 127.3 kB / 411 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003465/0.6188, allocations: 173 kB / 411.2 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003573/0.6223, allocations: 1.594 MB / 412.8 MB, free: 6.066 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.982e-05/0.6224, allocations: 5.344 kB / 412.8 MB, free: 6.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000144/0.6226, allocations: 67.47 kB / 412.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-05/0.6226, allocations: 44.06 kB / 412.9 MB, free: 6.008 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002722/0.6254, allocations: 1.083 MB / 414 MB, free: 5.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01126/0.6366, allocations: 6.61 MB / 420.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002179/0.6388, allocations: 0.9375 MB / 421.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006635/0.6395, allocations: 306.5 kB / 421.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.205e-05/0.6396, allocations: 11.5 kB / 421.8 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.572e-05/0.6397, allocations: 38.12 kB / 421.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=61): time 3.556e-06/0.6397, allocations: 5.625 kB / 421.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.005172/0.6449, allocations: 2.035 MB / 423.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.541e-05/0.645, allocations: 89.61 kB / 424 MB, free: 13.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00205/0.647, allocations: 1.27 MB / 425.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.93e-05/0.6471, allocations: 41.7 kB / 425.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007188/0.6478, allocations: 0.8886 MB / 426.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002458/0.6481, allocations: 244.5 kB / 426.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002895/0.6484, allocations: 198.8 kB / 426.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.6485, allocations: 349.9 kB / 427 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006114/0.6492, allocations: 306 kB / 427.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009693/0.6501, allocations: 0.7041 MB / 428 MB, free: 9.242 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/0.6517, allocations: 1.043 MB / 429 MB, free: 8.016 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.762e-06/0.6517, allocations: 4 kB / 429 MB, free: 8.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002249/0.654, allocations: 1.172 MB / 430.2 MB, free: 6.828 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.475e-05/0.654, allocations: 15.98 kB / 430.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/0.6541, allocations: 15.94 kB / 430.2 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002372/0.6543, allocations: 32.86 kB / 430.3 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009102/0.6552, allocations: 267.9 kB / 430.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00133/0.6566, allocations: 1.398 MB / 431.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001157/0.6577, allocations: 63.88 kB / 432 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.488e-05/0.6578, allocations: 52 kB / 432 MB, free: 4.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001272/0.6591, allocations: 0.522 MB / 432.6 MB, free: 4.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008931/0.66, allocations: 0.6777 MB / 433.2 MB, free: 3.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001571/0.6616, allocations: 0.9855 MB / 434.2 MB, free: 2.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.895e-06/0.6616, allocations: 4 kB / 434.2 MB, free: 2.262 MB / 350.1 MB Notification: Performance of matching and sorting (n=140) (initialization_lambda0): time 0.002205/0.6638, allocations: 1.086 MB / 435.3 MB, free: 1.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.6639, allocations: 12.75 kB / 435.3 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.6639, allocations: 12 kB / 435.3 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001579/0.6641, allocations: 40.84 kB / 435.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008442/0.6649, allocations: 255.6 kB / 435.6 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001387/0.6663, allocations: 1.394 MB / 437 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.6674, allocations: 51.89 kB / 437.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.496e-05/0.6675, allocations: 48 kB / 437.1 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.0004115/0.6679, allocations: 260.9 kB / 437.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002119/0.6682, allocations: 138.4 kB / 437.5 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00163/0.6698, allocations: 0.6925 MB / 438.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.6698, allocations: 8 kB / 438.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.6698, allocations: 0 / 438.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.6698, allocations: 3.984 kB / 438.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003922/0.6738, allocations: 2.138 MB / 440.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.6738, allocations: 0 / 440.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005937/0.6744, allocations: 127.9 kB / 440.5 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001077/0.6745, allocations: 28.78 kB / 440.5 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.629e-05/0.6746, allocations: 16 kB / 440.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001174/0.6757, allocations: 1.375 MB / 441.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.6758, allocations: 4.156 kB / 441.9 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001931/0.6777, allocations: 1.105 MB / 443 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004585/0.6782, allocations: 275.2 kB / 443.3 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.6783, allocations: 19.98 kB / 443.3 MB, free: 8.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000579/0.6789, allocations: 39.97 kB / 443.3 MB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.679, allocations: 44.5 kB / 443.4 MB, free: 8.645 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.881e-05/0.6791, allocations: 20 kB / 443.4 MB, free: 8.625 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001367/0.6805, allocations: 0.858 MB / 444.3 MB, free: 7.766 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.555e-06/0.6805, allocations: 0 / 444.3 MB, free: 7.766 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00214/0.6826, allocations: 0.5078 MB / 444.8 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.0003981/0.683, allocations: 139.1 kB / 444.9 MB, free: 7.109 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003003/0.686, allocations: 1.453 MB / 446.4 MB, free: 5.641 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.882e-06/0.6861, allocations: 0 / 446.4 MB, free: 5.641 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007209/0.6868, allocations: 417.6 kB / 446.8 MB, free: 5.215 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001546/0.6883, allocations: 341.9 kB / 447.1 MB, free: 4.891 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006101/0.6945, allocations: 2.814 MB / 449.9 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001276/0.6958, allocations: 1.237 MB / 451.1 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007259/0.6965, allocations: 178.5 kB / 451.3 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/0.6967, allocations: 87.44 kB / 451.4 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6968, allocations: 0 / 451.4 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of Templates: time 0.03486/0.7316, allocations: 15.27 MB / 466.7 MB, free: 1.188 MB / 382.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)