Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009984/0.0009985, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 221.3 MB / 235.5 MB, free: 2.891 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008788/0.0008788, allocations: 97.78 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.599e-05/1.603e-05, allocations: 4 kB / 343.8 MB, free: 4.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07982/0.07985, allocations: 50.41 MB / 394.3 MB, free: 1.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2894/0.3693, allocations: 116.1 MB / 0.4984 GB, free: 3.305 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.3696, allocations: 95.77 kB / 0.4985 GB, free: 3.215 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09622/0.4658, allocations: 39.63 MB / 0.5372 GB, free: 11.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.825e-06/0.4658, allocations: 7.922 kB / 0.5372 GB, free: 11.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.679e-05/0.4659, allocations: 39.98 kB / 0.5373 GB, free: 11.34 MB / 426.7 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.002333/0.4683, allocations: 1.523 MB / 0.5388 GB, free: 9.762 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.4683, allocations: 11.97 kB / 0.5388 GB, free: 9.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006579/0.469, allocations: 245.6 kB / 0.539 GB, free: 9.508 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001744/0.4707, allocations: 1.059 MB / 0.54 GB, free: 8.406 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.217e-05/0.4708, allocations: 111 kB / 0.5401 GB, free: 8.297 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002009/0.471, allocations: 159.8 kB / 0.5403 GB, free: 8.141 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002169/0.4732, allocations: 1.357 MB / 0.5416 GB, free: 6.727 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.172e-05/0.4733, allocations: 12 kB / 0.5416 GB, free: 6.715 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.4734, allocations: 60 kB / 0.5417 GB, free: 6.656 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.983e-05/0.4734, allocations: 36 kB / 0.5417 GB, free: 6.621 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001529/0.475, allocations: 0.8856 MB / 0.5426 GB, free: 5.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.182/0.657, allocations: 6.206 MB / 0.5487 GB, free: 106.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.6582, allocations: 0.6283 MB / 0.5493 GB, free: 106.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000313/0.6585, allocations: 212.7 kB / 0.5495 GB, free: 106.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.298e-05/0.6586, allocations: 8.438 kB / 0.5495 GB, free: 106.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.058e-05/0.6586, allocations: 39.34 kB / 0.5495 GB, free: 106.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=51): time 2.284e-06/0.6586, allocations: 0 / 0.5495 GB, free: 106.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=54): time 0.00222/0.6608, allocations: 1.36 MB / 0.5508 GB, free: 105.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.144e-05/0.6609, allocations: 83.58 kB / 0.5509 GB, free: 105.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.6621, allocations: 0.9399 MB / 0.5518 GB, free: 105.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.257e-05/0.6622, allocations: 34.98 kB / 0.5519 GB, free: 105.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004282/0.6626, allocations: 0.81 MB / 0.5527 GB, free: 105.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.6627, allocations: 198.4 kB / 0.5529 GB, free: 105 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.256e-05/0.6628, allocations: 24.59 kB / 0.5529 GB, free: 105 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.238e-05/0.6628, allocations: 340 kB / 0.5532 GB, free: 104.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.6632, allocations: 208.7 kB / 0.5534 GB, free: 104.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004457/0.6636, allocations: 0.5936 MB / 0.554 GB, free: 104.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004625/0.6641, allocations: 310.7 kB / 0.5543 GB, free: 104.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.6641, allocations: 3.406 kB / 0.5543 GB, free: 104.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001341/0.6655, allocations: 0.9337 MB / 0.5552 GB, free: 104.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007014/0.6662, allocations: 5.143 MB / 0.5602 GB, free: 98.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/0.6662, allocations: 16.3 kB / 0.5602 GB, free: 98.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000158/0.6664, allocations: 47.69 kB / 0.5603 GB, free: 98.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007823/0.6672, allocations: 230.3 kB / 0.5605 GB, free: 98.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007062/0.6679, allocations: 1.297 MB / 0.5618 GB, free: 97.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000669/0.6686, allocations: 52.53 kB / 0.5618 GB, free: 97.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-05/0.6686, allocations: 51.05 kB / 0.5619 GB, free: 97.48 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.503e-06/0.6686, allocations: 6.062 kB / 0.5619 GB, free: 97.48 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001136/0.6698, allocations: 0.7874 MB / 0.5626 GB, free: 97.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.6698, allocations: 14.09 kB / 0.5626 GB, free: 97.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.031e-05/0.6699, allocations: 41.22 kB / 0.5627 GB, free: 97.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006776/0.6706, allocations: 222.2 kB / 0.5629 GB, free: 97.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005556/0.6712, allocations: 1.299 MB / 0.5642 GB, free: 96.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005304/0.6717, allocations: 36.28 kB / 0.5642 GB, free: 96.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.725e-05/0.6718, allocations: 46.78 kB / 0.5642 GB, free: 96.2 MB / 426.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001319/0.6719, allocations: 170.2 kB / 0.5644 GB, free: 96.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.6721, allocations: 121.5 kB / 0.5645 GB, free: 96.03 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008286/0.6729, allocations: 0.5047 MB / 0.565 GB, free: 95.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.6729, allocations: 13.61 kB / 0.565 GB, free: 95.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.6729, allocations: 0 / 0.565 GB, free: 95.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.6729, allocations: 5.141 kB / 0.565 GB, free: 95.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002414/0.6753, allocations: 1.78 MB / 0.5668 GB, free: 95.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.6754, allocations: 1.188 kB / 0.5668 GB, free: 95.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004964/0.6759, allocations: 110.3 kB / 0.5669 GB, free: 95.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.631e-05/0.676, allocations: 26.88 kB / 0.5669 GB, free: 95.57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.317e-05/0.676, allocations: 15.33 kB / 0.5669 GB, free: 95.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005493/0.6766, allocations: 1.27 MB / 0.5682 GB, free: 94.31 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.6766, allocations: 11.23 kB / 0.5682 GB, free: 94.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.6776, allocations: 0.924 MB / 0.5691 GB, free: 93.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002825/0.6779, allocations: 242.1 kB / 0.5693 GB, free: 93.76 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001149/0.678, allocations: 18.78 kB / 0.5693 GB, free: 93.76 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004876/0.6785, allocations: 37.56 kB / 0.5694 GB, free: 93.76 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.375e-05/0.6786, allocations: 38.98 kB / 0.5694 GB, free: 93.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-05/0.6786, allocations: 15.7 kB / 0.5694 GB, free: 93.76 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008722/0.6795, allocations: 0.7017 MB / 0.5701 GB, free: 93.64 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6795, allocations: 1.938 kB / 0.5701 GB, free: 93.64 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001504/0.681, allocations: 0.5019 MB / 0.5706 GB, free: 93.64 MB / 426.7 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.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004788/0.6815, allocations: 402.4 kB / 0.571 GB, free: 93.51 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001697/0.6832, allocations: 1.217 MB / 0.5722 GB, free: 93.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.6832, allocations: 1.375 kB / 0.5722 GB, free: 93.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003632/0.6836, allocations: 321.8 kB / 0.5725 GB, free: 93.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.6846, allocations: 260.8 kB / 0.5727 GB, free: 93.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002976/0.6876, allocations: 1.865 MB / 0.5745 GB, free: 92.31 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006731/0.6883, allocations: 1.206 MB / 0.5757 GB, free: 91.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009598/0.6893, allocations: 195.3 kB / 0.5759 GB, free: 91.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000128/0.6894, allocations: 63.98 kB / 0.576 GB, free: 91.52 MB / 426.7 MB Notification: Performance of SimCode: time 3.41e-07/0.6894, allocations: 1.188 kB / 0.576 GB, free: 91.52 MB / 426.7 MB Notification: Performance of Templates: time 0.02323/0.7127, allocations: 16.93 MB / 0.5925 GB, free: 90.56 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches