Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 91.16 kB / 16.31 MB, free: 6.457 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.001816/0.001816, allocations: 181.3 kB / 17.21 MB, free: 6.328 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.447/1.447, allocations: 223.2 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002754, allocations: 7.281 kB / 300.8 MB, free: 5.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1185, allocations: 50.43 MB / 351.2 MB, free: 11.72 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.009467/0.128, allocations: 7.189 MB / 358.4 MB, free: 4.492 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005604/0.1337, allocations: 2.522 MB / 361 MB, free: 1.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001473/0.1352, allocations: 27.88 kB / 361 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001725/0.1369, allocations: 445.4 kB / 361.4 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001644/0.1386, allocations: 353.3 kB / 361.8 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001136/0.1397, allocations: 239.7 kB / 362 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002639/0.1424, allocations: 1.346 MB / 363.3 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001228/0.1436, allocations: 444.2 kB / 363.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009586/0.1446, allocations: 449.9 kB / 364.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0011/0.1457, allocations: 497.5 kB / 364.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002617/0.146, allocations: 60 kB / 364.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005084/0.1465, allocations: 99.97 kB / 364.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002784/0.1468, allocations: 195 kB / 365 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004854/0.1473, allocations: 257.1 kB / 365.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001562/0.1488, allocations: 1.324 MB / 366.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.1489, allocations: 0 / 366.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1489, allocations: 4 kB / 366.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.558e-05/0.1489, allocations: 4 kB / 366.6 MB, free: 12.24 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002306/0.1512, allocations: 1.32 MB / 368 MB, free: 10.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/0.1513, allocations: 8.031 kB / 368 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006467/0.1519, allocations: 190.2 kB / 368.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.1532, allocations: 0.7388 MB / 368.9 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.503e-05/0.1533, allocations: 74 kB / 369 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001452/0.1534, allocations: 103.9 kB / 369.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001768/0.1552, allocations: 0.9497 MB / 370 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.609e-05/0.1553, allocations: 11.78 kB / 370 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.624e-05/0.1554, allocations: 44 kB / 370.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.663e-05/0.1554, allocations: 27.95 kB / 370.1 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.1566, allocations: 0.6441 MB / 370.7 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005493/0.1621, allocations: 4.127 MB / 374.9 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.1632, allocations: 462.1 kB / 375.3 MB, free: 3.191 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003012/0.1635, allocations: 168.8 kB / 375.5 MB, free: 3.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.139e-05/0.1635, allocations: 7.984 kB / 375.5 MB, free: 3.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.1636, allocations: 38.56 kB / 375.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.994e-06/0.1636, allocations: 0 / 375.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002513/0.1661, allocations: 1.347 MB / 376.9 MB, free: 1.551 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.807e-05/0.1662, allocations: 106.8 kB / 377 MB, free: 1.422 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001318/0.1675, allocations: 0.8858 MB / 377.9 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.761e-05/0.1676, allocations: 33.7 kB / 377.9 MB, free: 484 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004879/0.1681, allocations: 0.5916 MB / 378.5 MB, free: 15.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001273/0.1682, allocations: 145.9 kB / 378.6 MB, free: 15.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.764e-05/0.1682, allocations: 20 kB / 378.6 MB, free: 15.7 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.1684, allocations: 341.7 kB / 379 MB, free: 15.37 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003439/0.1687, allocations: 165.9 kB / 379.1 MB, free: 15.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00058/0.1693, allocations: 0.4899 MB / 379.6 MB, free: 14.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004801/0.1698, allocations: 247.7 kB / 379.9 MB, free: 14.33 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-05/0.1699, allocations: 11.94 kB / 379.9 MB, free: 14.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001375/0.1712, allocations: 0.743 MB / 380.6 MB, free: 13.56 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003417/0.1716, allocations: 396.9 kB / 381 MB, free: 13.03 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.1716, allocations: 8 kB / 381 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001738/0.1718, allocations: 40.8 kB / 381.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005741/0.1724, allocations: 179.7 kB / 381.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.1736, allocations: 1.288 MB / 382.5 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005572/0.1741, allocations: 39.98 kB / 382.6 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.75e-05/0.1742, allocations: 35.98 kB / 382.6 MB, free: 11.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.1742, allocations: 6.5 kB / 382.6 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001068/0.1753, allocations: 0.6218 MB / 383.2 MB, free: 10.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.1753, allocations: 8 kB / 383.2 MB, free: 10.67 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.498e-05/0.1754, allocations: 40.78 kB / 383.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005042/0.1759, allocations: 167.7 kB / 383.4 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009674/0.1769, allocations: 1.292 MB / 384.7 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004925/0.1774, allocations: 28 kB / 384.8 MB, free: 9.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.489e-05/0.1775, allocations: 36 kB / 384.8 MB, free: 8.973 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0004883/0.178, allocations: 337 kB / 385.1 MB, free: 8.633 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.1781, allocations: 94.86 kB / 385.2 MB, free: 8.539 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008574/0.179, allocations: 443.5 kB / 385.6 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.179, allocations: 8 kB / 385.7 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.1791, allocations: 0 / 385.7 MB, free: 8.086 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.1791, allocations: 3.984 kB / 385.7 MB, free: 8.082 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002148/0.1812, allocations: 1.399 MB / 387.1 MB, free: 6.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.1812, allocations: 4 kB / 387.1 MB, free: 6.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003417/0.1816, allocations: 88.12 kB / 387.1 MB, free: 6.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.151e-05/0.1817, allocations: 20.84 kB / 387.2 MB, free: 6.488 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.144e-05/0.1817, allocations: 12 kB / 387.2 MB, free: 6.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008916/0.1826, allocations: 1.268 MB / 388.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.1826, allocations: 4.031 kB / 388.5 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/0.1838, allocations: 0.7247 MB / 389.2 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003103/0.1841, allocations: 204 kB / 389.4 MB, free: 4.09 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.1842, allocations: 12 kB / 389.4 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003796/0.1846, allocations: 27.98 kB / 389.4 MB, free: 4.051 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.726e-05/0.1847, allocations: 35.86 kB / 389.5 MB, free: 4.016 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.1847, allocations: 11.98 kB / 389.5 MB, free: 4.004 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008692/0.1856, allocations: 0.6053 MB / 390.1 MB, free: 3.387 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1856, allocations: 0 / 390.1 MB, free: 3.387 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00136/0.187, allocations: 344 kB / 390.4 MB, free: 3.051 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.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 (39): * Single equations (assignments): 38 * 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.000317/0.1873, allocations: 129.3 kB / 390.5 MB, free: 2.918 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001849/0.1892, allocations: 0.9737 MB / 391.5 MB, free: 1.922 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.1892, allocations: 4.375 kB / 391.5 MB, free: 1.918 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004098/0.1896, allocations: 294.4 kB / 391.8 MB, free: 1.617 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001178/0.1908, allocations: 232 kB / 392 MB, free: 1.387 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003821/0.1946, allocations: 2.204 MB / 394.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007236/0.1954, allocations: 1.021 MB / 395.2 MB, free: 14.08 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006188/0.196, allocations: 119.3 kB / 395.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.1962, allocations: 63.42 kB / 395.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of SimCode: time 1.082e-06/0.1962, allocations: 4 kB / 395.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of Templates: time 0.02274/0.2189, allocations: 9.794 MB / 405.2 MB, free: 4.199 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches