Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001487/0.001488, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.423/1.423, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007839/0.000784, allocations: 86.64 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.065e-05/2.067e-05, allocations: 4 kB / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07925/0.07929, allocations: 47.58 MB / 370 MB, free: 1.695 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3422/0.4216, allocations: 115.3 MB / 485.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.4219, allocations: 85.27 kB / 485.4 MB, free: 10.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09656/0.5184, allocations: 39.48 MB / 0.5126 GB, free: 3.73 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5185, allocations: 0 / 0.5126 GB, free: 3.73 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.156e-05/0.5186, allocations: 36 kB / 0.5126 GB, free: 3.695 MB / 394.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.002479/0.5211, allocations: 1.526 MB / 0.5141 GB, free: 2.117 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.615e-05/0.5211, allocations: 12.03 kB / 0.5141 GB, free: 2.105 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006768/0.5218, allocations: 241.6 kB / 0.5144 GB, free: 1.867 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001805/0.5236, allocations: 1.067 MB / 0.5154 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.984e-05/0.5237, allocations: 111 kB / 0.5155 GB, free: 0.6484 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001962/0.5239, allocations: 159.9 kB / 0.5157 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002236/0.5262, allocations: 1.361 MB / 0.517 GB, free: 15.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.613e-05/0.5262, allocations: 15.8 kB / 0.517 GB, free: 15.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001535/0.5264, allocations: 60 kB / 0.5171 GB, free: 15 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.155e-05/0.5264, allocations: 40 kB / 0.5171 GB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/0.5281, allocations: 0.8818 MB / 0.518 GB, free: 14.07 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007612/0.5357, allocations: 6.21 MB / 0.524 GB, free: 7.555 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.5368, allocations: 0.6372 MB / 0.5247 GB, free: 6.867 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003026/0.5371, allocations: 203.5 kB / 0.5249 GB, free: 6.668 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.169e-05/0.5371, allocations: 8.422 kB / 0.5249 GB, free: 6.66 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.5372, allocations: 47 kB / 0.5249 GB, free: 6.605 MB / 410.7 MB Notification: Performance of pre-optimization done (n=51): time 2.635e-06/0.5372, allocations: 0 / 0.5249 GB, free: 6.605 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.002278/0.5395, allocations: 1.359 MB / 0.5262 GB, free: 5.188 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.5395, allocations: 85.48 kB / 0.5263 GB, free: 5.086 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00127/0.5408, allocations: 0.9433 MB / 0.5272 GB, free: 4.129 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.298e-05/0.5409, allocations: 37.7 kB / 0.5273 GB, free: 4.086 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004863/0.5414, allocations: 0.8053 MB / 0.5281 GB, free: 3.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001451/0.5415, allocations: 201.2 kB / 0.5283 GB, free: 3.07 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.325e-05/0.5416, allocations: 24 kB / 0.5283 GB, free: 3.047 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.5417, allocations: 341.9 kB / 0.5286 GB, free: 2.707 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003354/0.542, allocations: 206 kB / 0.5288 GB, free: 2.504 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005847/0.5426, allocations: 0.5901 MB / 0.5294 GB, free: 1.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000481/0.5431, allocations: 311.1 kB / 0.5297 GB, free: 1.426 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.5431, allocations: 4 kB / 0.5297 GB, free: 1.422 MB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001383/0.5445, allocations: 0.9363 MB / 0.5306 GB, free: 484 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2008/0.7454, allocations: 5.142 MB / 0.5356 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.033e-05/0.7455, allocations: 16.62 kB / 0.5356 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002684/0.7457, allocations: 42.48 kB / 0.5357 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009668/0.7467, allocations: 231.3 kB / 0.5359 GB, free: 100.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008206/0.7475, allocations: 1.286 MB / 0.5371 GB, free: 99.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000889/0.7484, allocations: 55.45 kB / 0.5372 GB, free: 99.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.285e-05/0.7485, allocations: 47.34 kB / 0.5372 GB, free: 99.58 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.815e-06/0.7485, allocations: 2.469 kB / 0.5372 GB, free: 99.58 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001374/0.7499, allocations: 0.7958 MB / 0.538 GB, free: 99.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.845e-05/0.75, allocations: 12.09 kB / 0.538 GB, free: 99.57 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.057e-05/0.7501, allocations: 40.86 kB / 0.5381 GB, free: 99.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006934/0.7508, allocations: 223.6 kB / 0.5383 GB, free: 99.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006192/0.7514, allocations: 1.292 MB / 0.5395 GB, free: 98.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005926/0.752, allocations: 39.8 kB / 0.5396 GB, free: 98.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.469e-05/0.7521, allocations: 45.84 kB / 0.5396 GB, free: 98.31 MB / 410.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.0001717/0.7522, allocations: 171.8 kB / 0.5398 GB, free: 98.21 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.7524, allocations: 115.2 kB / 0.5399 GB, free: 98.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/0.7534, allocations: 0.5133 MB / 0.5404 GB, free: 98.14 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.7535, allocations: 7.516 kB / 0.5404 GB, free: 98.14 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.7535, allocations: 0 / 0.5404 GB, free: 98.14 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.7535, allocations: 5.859 kB / 0.5404 GB, free: 98.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002845/0.7563, allocations: 1.784 MB / 0.5422 GB, free: 97.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.7564, allocations: 2.406 kB / 0.5422 GB, free: 97.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005573/0.7569, allocations: 108.4 kB / 0.5423 GB, free: 97.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.547e-05/0.757, allocations: 25.12 kB / 0.5423 GB, free: 97.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.711e-05/0.7571, allocations: 17.42 kB / 0.5423 GB, free: 97.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006652/0.7578, allocations: 1.283 MB / 0.5436 GB, free: 96.51 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.7578, allocations: 4.531 kB / 0.5436 GB, free: 96.51 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.7589, allocations: 0.917 MB / 0.5445 GB, free: 96.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003083/0.7592, allocations: 242 kB / 0.5447 GB, free: 96.09 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001148/0.7594, allocations: 16.66 kB / 0.5447 GB, free: 96.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004978/0.7599, allocations: 40.81 kB / 0.5447 GB, free: 96.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.76, allocations: 38.88 kB / 0.5448 GB, free: 96.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.685e-05/0.76, allocations: 17.94 kB / 0.5448 GB, free: 96.09 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001059/0.7611, allocations: 0.707 MB / 0.5455 GB, free: 95.97 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.41e-07/0.7611, allocations: 3 kB / 0.5455 GB, free: 95.97 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001737/0.7628, allocations: 0.5102 MB / 0.546 GB, free: 95.96 MB / 410.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.0006354/0.7635, allocations: 386.3 kB / 0.5464 GB, free: 95.85 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00186/0.7654, allocations: 1.215 MB / 0.5475 GB, free: 95.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.7654, allocations: 0 / 0.5475 GB, free: 95.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003935/0.7658, allocations: 324.8 kB / 0.5479 GB, free: 95.51 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.7669, allocations: 255.6 kB / 0.5481 GB, free: 95.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003363/0.7703, allocations: 1.869 MB / 0.5499 GB, free: 94.81 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007257/0.771, allocations: 1.204 MB / 0.5511 GB, free: 94.08 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0009658/0.772, allocations: 203.7 kB / 0.5513 GB, free: 94.04 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001322/0.7721, allocations: 60.45 kB / 0.5513 GB, free: 94.03 MB / 410.7 MB Notification: Performance of SimCode: time 8.51e-07/0.7721, allocations: 0 / 0.5513 GB, free: 94.03 MB / 410.7 MB Notification: Performance of Templates: time 0.02651/0.7986, allocations: 16.96 MB / 0.5679 GB, free: 92.93 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches