Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.00146/0.00146, allocations: 115 kB / 17.07 MB, free: 6 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.001512/0.001512, allocations: 192 kB / 18 MB, free: 5.082 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.951/1.951, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.001835/0.001835, allocations: 51.92 kB / 327.9 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1618, allocations: 46.62 MB / 374.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.4184/0.5803, allocations: 13.98 MB / 388.5 MB, free: 5.219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02027/0.6007, allocations: 5.158 MB / 393.6 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008416/0.6092, allocations: 58.84 kB / 393.7 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005555/0.6149, allocations: 0.9087 MB / 394.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005208/0.6202, allocations: 0.5886 MB / 395.2 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002644/0.6229, allocations: 0.5127 MB / 395.7 MB, free: 352 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006547/0.6294, allocations: 2.174 MB / 397.9 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003183/0.6327, allocations: 1.116 MB / 399 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002622/0.6353, allocations: 0.7976 MB / 399.8 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003515/0.6388, allocations: 0.8713 MB / 400.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009787/0.6398, allocations: 230.5 kB / 400.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00139/0.6413, allocations: 273.4 kB / 401.2 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005069/0.6418, allocations: 444.1 kB / 401.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001371/0.6432, allocations: 0.9884 MB / 402.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004678/0.6478, allocations: 2.765 MB / 405.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.071e-05/0.6479, allocations: 0 / 405.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.6479, allocations: 0 / 405.3 MB, free: 11.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.435e-05/0.648, allocations: 0 / 405.3 MB, free: 11.35 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.004934/0.6529, allocations: 2.03 MB / 407.4 MB, free: 9.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/0.653, allocations: 12.42 kB / 407.4 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009102/0.6539, allocations: 243 kB / 407.6 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002098/0.656, allocations: 1.061 MB / 408.7 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.6562, allocations: 118.2 kB / 408.8 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002583/0.6564, allocations: 150.2 kB / 409 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00317/0.6596, allocations: 1.433 MB / 410.4 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.016e-05/0.6597, allocations: 2.156 kB / 410.4 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001345/0.6598, allocations: 61.41 kB / 410.4 MB, free: 7.824 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.253e-05/0.6599, allocations: 41.19 kB / 410.5 MB, free: 7.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002279/0.6622, allocations: 0.9574 MB / 411.4 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009934/0.6721, allocations: 6.081 MB / 417.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001247/0.6734, allocations: 0.6458 MB / 418.2 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004334/0.6739, allocations: 239.9 kB / 418.4 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.853e-05/0.6739, allocations: 7.375 kB / 418.4 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.674, allocations: 46.25 kB / 418.5 MB, free: 1.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=51): time 3.717e-06/0.674, allocations: 4 kB / 418.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.003585/0.6776, allocations: 1.705 MB / 420.2 MB, free: 496 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.311e-05/0.6776, allocations: 88.03 kB / 420.3 MB, free: 396 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00193/0.6796, allocations: 1.126 MB / 421.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.682e-05/0.6796, allocations: 36.45 kB / 421.4 MB, free: 15.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006711/0.6803, allocations: 0.8074 MB / 422.2 MB, free: 15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002197/0.6806, allocations: 206.4 kB / 422.4 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003151/0.6809, allocations: 182.5 kB / 422.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000245/0.6811, allocations: 341.8 kB / 422.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005293/0.6817, allocations: 247.9 kB / 423.2 MB, free: 14.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008234/0.6825, allocations: 0.6237 MB / 423.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.6839, allocations: 0.9146 MB / 424.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.953e-06/0.6839, allocations: 4 kB / 424.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00176/0.6857, allocations: 0.9949 MB / 425.7 MB, free: 11.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.629e-05/0.6857, allocations: 12 kB / 425.7 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.267e-05/0.6858, allocations: 15.98 kB / 425.7 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002183/0.686, allocations: 36.86 kB / 425.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007508/0.6867, allocations: 223.6 kB / 426 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/0.6882, allocations: 1.398 MB / 427.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009398/0.6892, allocations: 56.06 kB / 427.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.27e-05/0.6892, allocations: 44 kB / 427.5 MB, free: 9.453 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001044/0.6903, allocations: 466.1 kB / 427.9 MB, free: 8.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007561/0.6911, allocations: 0.6017 MB / 428.5 MB, free: 8.211 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001175/0.6923, allocations: 0.8639 MB / 429.4 MB, free: 7.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.017e-06/0.6923, allocations: 4 kB / 429.4 MB, free: 7.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.001761/0.694, allocations: 0.9594 MB / 430.4 MB, free: 6.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.6941, allocations: 8 kB / 430.4 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.707e-05/0.6941, allocations: 16 kB / 430.4 MB, free: 6.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001253/0.6942, allocations: 40.84 kB / 430.4 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000688/0.6949, allocations: 215.6 kB / 430.6 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00128/0.6962, allocations: 1.391 MB / 432 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000822/0.6971, allocations: 47.98 kB / 432.1 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-05/0.6972, allocations: 44 kB / 432.1 MB, free: 4.297 MB / 350.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.000318/0.6975, allocations: 251.8 kB / 432.4 MB, free: 4.043 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002331/0.6977, allocations: 114.6 kB / 432.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.699, allocations: 0.5634 MB / 433.1 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-06/0.6991, allocations: 8 kB / 433.1 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.6991, allocations: 0 / 433.1 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.6991, allocations: 3.984 kB / 433.1 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004123/0.7032, allocations: 1.859 MB / 434.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.7032, allocations: 0 / 434.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005004/0.7037, allocations: 108.1 kB / 435 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.582e-05/0.7038, allocations: 24.84 kB / 435.1 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.63e-05/0.7039, allocations: 16 kB / 435.1 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001486/0.7054, allocations: 1.379 MB / 436.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.7054, allocations: 0 / 436.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001525/0.7069, allocations: 0.9198 MB / 437.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000501/0.7075, allocations: 243.6 kB / 437.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002023/0.7077, allocations: 12 kB / 437.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006703/0.7083, allocations: 31.97 kB / 437.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.7085, allocations: 48.33 kB / 437.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.586e-05/0.7085, allocations: 16 kB / 437.7 MB, free: 14.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001341/0.7099, allocations: 0.7557 MB / 438.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7099, allocations: 0 / 438.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002261/0.7121, allocations: 468 kB / 438.9 MB, free: 13.18 MB / 366.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.0003361/0.7125, allocations: 135.1 kB / 439.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002733/0.7152, allocations: 1.25 MB / 440.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.7152, allocations: 0 / 440.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006649/0.7159, allocations: 358.1 kB / 440.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.7174, allocations: 293.2 kB / 440.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006984/0.7244, allocations: 2.481 MB / 443.4 MB, free: 8.602 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001387/0.7259, allocations: 1.173 MB / 444.6 MB, free: 7.398 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009227/0.7268, allocations: 157.2 kB / 444.7 MB, free: 7.242 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.7271, allocations: 71.44 kB / 444.8 MB, free: 7.172 MB / 366.1 MB Notification: Performance of SimCode: time 3.326e-06/0.7272, allocations: 0 / 444.8 MB, free: 7.172 MB / 366.1 MB Notification: Performance of Templates: time 0.03313/0.7603, allocations: 13.35 MB / 458.2 MB, free: 9.797 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1)