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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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="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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008855/0.0008855, allocations: 92.5 kB / 16.3 MB, free: 5.992 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.00086/0.00086, allocations: 183.7 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.253/1.253, allocations: 223.2 MB / 241.1 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002654/0.0002651, allocations: 5.625 kB / 300.7 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1012, allocations: 50.42 MB / 351.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01168/0.113, allocations: 11.32 MB / 362.5 MB, free: 340 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00764/0.1206, allocations: 4.932 MB / 367.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001371/0.122, allocations: 51.81 kB / 367.4 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001806/0.1238, allocations: 0.8239 MB / 368.3 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001758/0.1256, allocations: 0.8451 MB / 369.1 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.1268, allocations: 0.5218 MB / 369.6 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001931/0.1288, allocations: 1.449 MB / 371.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009543/0.1297, allocations: 0.7522 MB / 371.8 MB, free: 6.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005594/0.1303, allocations: 0.5757 MB / 372.4 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006562/0.131, allocations: 0.6686 MB / 373.1 MB, free: 5.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001343/0.1311, allocations: 92 kB / 373.2 MB, free: 5.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000289/0.1314, allocations: 135.9 kB / 373.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002117/0.1316, allocations: 278.8 kB / 373.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002556/0.1319, allocations: 356.8 kB / 373.9 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001604/0.1335, allocations: 2.158 MB / 376.1 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1335, allocations: 0 / 376.1 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.1335, allocations: 3.938 kB / 376.1 MB, free: 2.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.393e-05/0.1336, allocations: 0 / 376.1 MB, free: 2.637 MB / 302.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.002841/0.1364, allocations: 1.751 MB / 377.8 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.1365, allocations: 12.03 kB / 377.8 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006579/0.1371, allocations: 237.7 kB / 378.1 MB, free: 0.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001488/0.1386, allocations: 0.9928 MB / 379.1 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.812e-05/0.1387, allocations: 119 kB / 379.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001941/0.1389, allocations: 155.9 kB / 379.3 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002268/0.1412, allocations: 1.423 MB / 380.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.971e-05/0.1412, allocations: 11.84 kB / 380.8 MB, free: 13.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.1414, allocations: 64 kB / 380.8 MB, free: 13.72 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.111e-05/0.1414, allocations: 36 kB / 380.9 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001804/0.1432, allocations: 0.9595 MB / 381.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007016/0.1502, allocations: 6.16 MB / 388 MB, free: 6.258 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001041/0.1513, allocations: 0.6521 MB / 388.6 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.758e-05/0.1513, allocations: 8.438 kB / 388.7 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.1514, allocations: 47 kB / 388.7 MB, free: 5.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=51): time 1.894e-06/0.1514, allocations: 0 / 388.7 MB, free: 5.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=54): time 0.002908/0.1543, allocations: 1.751 MB / 390.4 MB, free: 3.676 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.1544, allocations: 85.48 kB / 390.5 MB, free: 3.574 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001369/0.1557, allocations: 1.104 MB / 391.6 MB, free: 2.457 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.755e-05/0.1558, allocations: 37.7 kB / 391.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005087/0.1563, allocations: 0.8053 MB / 392.5 MB, free: 1.598 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.1565, allocations: 205.1 kB / 392.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.699e-05/0.1565, allocations: 20 kB / 392.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1566, allocations: 341.9 kB / 393 MB, free: 1.035 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004514/0.1571, allocations: 245.9 kB / 393.3 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000699/0.1578, allocations: 0.6212 MB / 393.9 MB, free: 15.99 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005752/0.1584, allocations: 350 kB / 394.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.1584, allocations: 4 kB / 394.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001606/0.16, allocations: 1.007 MB / 395.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001745/0.1618, allocations: 5.142 MB / 400.4 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/0.1618, allocations: 12 kB / 400.4 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001659/0.162, allocations: 40.84 kB / 400.4 MB, free: 9.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007584/0.1627, allocations: 223.7 kB / 400.7 MB, free: 8.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00104/0.1638, allocations: 1.295 MB / 402 MB, free: 7.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007615/0.1645, allocations: 64.08 kB / 402 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.11e-05/0.1646, allocations: 48 kB / 402.1 MB, free: 7.277 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.346e-06/0.1646, allocations: 4 kB / 402.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00123/0.1659, allocations: 0.8109 MB / 402.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.1659, allocations: 12.16 kB / 402.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.176e-05/0.166, allocations: 40.86 kB / 402.9 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006649/0.1667, allocations: 219.7 kB / 403.1 MB, free: 6.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008046/0.1675, allocations: 1.307 MB / 404.5 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005522/0.1681, allocations: 39.98 kB / 404.5 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.747e-05/0.1681, allocations: 48 kB / 404.5 MB, free: 4.664 MB / 334.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 (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.0006671/0.1688, allocations: 412.8 kB / 404.9 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.169, allocations: 118.6 kB / 405.1 MB, free: 4.133 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001069/0.17, allocations: 0.5827 MB / 405.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.263e-06/0.17, allocations: 8 kB / 405.6 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.1701, allocations: 0 / 405.6 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.142e-06/0.1701, allocations: 0 / 405.6 MB, free: 3.531 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/0.1727, allocations: 1.871 MB / 407.5 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.1727, allocations: 0 / 407.5 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004888/0.1732, allocations: 120 kB / 407.6 MB, free: 1.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.69e-05/0.1733, allocations: 20.86 kB / 407.7 MB, free: 1.441 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.335e-05/0.1734, allocations: 15.98 kB / 407.7 MB, free: 1.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007981/0.1742, allocations: 1.284 MB / 409 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.1742, allocations: 7.938 kB / 409 MB, free: 0 / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/0.1756, allocations: 1.021 MB / 410 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000311/0.1759, allocations: 235.6 kB / 410.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001252/0.176, allocations: 19.98 kB / 410.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005004/0.1766, allocations: 43.94 kB / 410.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.294e-05/0.1766, allocations: 32.39 kB / 410.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.122e-05/0.1767, allocations: 23.98 kB / 410.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009551/0.1776, allocations: 0.736 MB / 411.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1776, allocations: 4 kB / 411.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001404/0.1791, allocations: 468 kB / 411.5 MB, free: 13.34 MB / 350.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 (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.0002355/0.1793, allocations: 127.2 kB / 411.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001912/0.1812, allocations: 1.258 MB / 412.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.1812, allocations: 4 kB / 412.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005097/0.1818, allocations: 361.5 kB / 413.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.1829, allocations: 260.9 kB / 413.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003957/0.1868, allocations: 3.075 MB / 416.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006968/0.1876, allocations: 1.2 MB / 417.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006168/0.1882, allocations: 153.1 kB / 417.9 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.1884, allocations: 75.42 kB / 418 MB, free: 6.711 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1884, allocations: 0 / 418 MB, free: 6.711 MB / 350.1 MB Notification: Performance of Templates: time 0.1781/0.3665, allocations: 11.87 MB / 429.9 MB, free: 61.17 MB / 350.1 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