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.001165/0.001165, allocations: 92.41 kB / 16.3 MB, free: 5.996 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.001367/0.001368, allocations: 187.2 kB / 17.2 MB, free: 5.91 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.399/1.399, allocations: 223.2 MB / 241.1 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002608/0.0002608, allocations: 6.828 kB / 300.7 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1248, allocations: 50.42 MB / 351.1 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.007148/0.132, allocations: 6.621 MB / 357.8 MB, free: 5.086 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004314/0.1364, allocations: 2.566 MB / 360.3 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005989/0.137, allocations: 27.88 kB / 360.4 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.138, allocations: 449.7 kB / 360.8 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008741/0.1389, allocations: 462.6 kB / 361.2 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005659/0.1395, allocations: 255.6 kB / 361.5 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001476/0.141, allocations: 1.046 MB / 362.5 MB, free: 300 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006619/0.1416, allocations: 448.3 kB / 363 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004769/0.1421, allocations: 422.1 kB / 363.4 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000492/0.1426, allocations: 469.7 kB / 363.8 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.1427, allocations: 64 kB / 363.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002473/0.143, allocations: 95.97 kB / 364 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.1431, allocations: 191.1 kB / 364.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001852/0.1433, allocations: 253.1 kB / 364.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001061/0.1444, allocations: 1.278 MB / 365.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.1444, allocations: 0 / 365.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1444, allocations: 0 / 365.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.168e-05/0.1445, allocations: 0 / 365.7 MB, free: 13.08 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.002105/0.1466, allocations: 1.304 MB / 367 MB, free: 11.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.1466, allocations: 8.031 kB / 367 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005029/0.1471, allocations: 178.3 kB / 367.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.1483, allocations: 0.7425 MB / 367.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.09e-05/0.1484, allocations: 74 kB / 368 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001372/0.1486, allocations: 96 kB / 368.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/0.1502, allocations: 0.9419 MB / 369.1 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.742e-05/0.1503, allocations: 7.906 kB / 369.1 MB, free: 9.598 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.908e-05/0.1504, allocations: 43.98 kB / 369.1 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.665e-05/0.1504, allocations: 27.95 kB / 369.1 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.1517, allocations: 0.6402 MB / 369.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005355/0.157, allocations: 4.072 MB / 373.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.1581, allocations: 467.2 kB / 374.3 MB, free: 4.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.636e-05/0.1582, allocations: 4 kB / 374.3 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/0.1582, allocations: 34.56 kB / 374.3 MB, free: 4.078 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.875e-06/0.1582, allocations: 7.938 kB / 374.3 MB, free: 4.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002564/0.1608, allocations: 1.343 MB / 375.7 MB, free: 2.656 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/0.1609, allocations: 114.7 kB / 375.8 MB, free: 2.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001009/0.1619, allocations: 0.8273 MB / 376.6 MB, free: 1.668 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.507e-05/0.1619, allocations: 33.7 kB / 376.7 MB, free: 1.629 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004304/0.1624, allocations: 0.5875 MB / 377.2 MB, free: 1.031 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.1625, allocations: 149.9 kB / 377.4 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.592e-05/0.1625, allocations: 20 kB / 377.4 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.1627, allocations: 333.9 kB / 377.7 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003267/0.163, allocations: 165.9 kB / 377.9 MB, free: 380 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005544/0.1636, allocations: 493.7 kB / 378.4 MB, free: 15.74 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004208/0.164, allocations: 243.7 kB / 378.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.164, allocations: 7.938 kB / 378.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001198/0.1652, allocations: 0.7508 MB / 379.4 MB, free: 14.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001635/0.1669, allocations: 4.089 MB / 383.5 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.128e-05/0.1669, allocations: 16 kB / 383.5 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001879/0.1671, allocations: 36.84 kB / 383.5 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005878/0.1677, allocations: 175.7 kB / 383.7 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001053/0.1687, allocations: 1.299 MB / 385 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005345/0.1693, allocations: 40.23 kB / 385 MB, free: 8.625 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.514e-05/0.1693, allocations: 36 kB / 385.1 MB, free: 8.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.696e-06/0.1694, allocations: 4 kB / 385.1 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009524/0.1703, allocations: 0.6136 MB / 385.7 MB, free: 7.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.1703, allocations: 12 kB / 385.7 MB, free: 7.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.614e-05/0.1704, allocations: 36.84 kB / 385.7 MB, free: 7.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005174/0.171, allocations: 163.8 kB / 385.9 MB, free: 7.758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008625/0.1718, allocations: 1.292 MB / 387.2 MB, free: 6.332 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004478/0.1723, allocations: 40.19 kB / 387.2 MB, free: 6.293 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.633e-05/0.1724, allocations: 40 kB / 387.3 MB, free: 6.254 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.0005096/0.1729, allocations: 335.6 kB / 387.6 MB, free: 5.918 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.173, allocations: 90.88 kB / 387.7 MB, free: 5.828 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007935/0.1738, allocations: 443.5 kB / 388.1 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.1738, allocations: 11.94 kB / 388.1 MB, free: 5.371 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.1738, allocations: 3.938 kB / 388.1 MB, free: 5.367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1738, allocations: 3.938 kB / 388.1 MB, free: 5.363 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002027/0.1759, allocations: 1.356 MB / 389.5 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.1759, allocations: 7.984 kB / 389.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003586/0.1763, allocations: 79.91 kB / 389.6 MB, free: 3.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.049e-05/0.1764, allocations: 28.78 kB / 389.6 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.723e-05/0.1764, allocations: 8 kB / 389.6 MB, free: 3.801 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008641/0.1773, allocations: 1.28 MB / 390.9 MB, free: 2.391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.1773, allocations: 3.984 kB / 390.9 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001123/0.1784, allocations: 0.8039 MB / 391.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002682/0.1787, allocations: 196 kB / 391.9 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.338e-05/0.1788, allocations: 8 kB / 391.9 MB, free: 1.281 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003604/0.1792, allocations: 31.94 kB / 391.9 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.948e-05/0.1793, allocations: 27.95 kB / 392 MB, free: 1.223 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.519e-05/0.1793, allocations: 16 kB / 392 MB, free: 1.207 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007373/0.18, allocations: 0.5507 MB / 392.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.18, allocations: 0 / 392.5 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001242/0.1813, allocations: 344 kB / 392.9 MB, free: 316 kB / 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.0002238/0.1815, allocations: 131 kB / 393 MB, free: 176 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.1832, allocations: 0.9775 MB / 394 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.1832, allocations: 384 / 394 MB, free: 15.17 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003989/0.1836, allocations: 294.5 kB / 394.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.1847, allocations: 219.5 kB / 394.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/0.1877, allocations: 2.214 MB / 396.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005478/0.1883, allocations: 1.048 MB / 397.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004957/0.1888, allocations: 119.2 kB / 397.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.1889, allocations: 59.44 kB / 397.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1889, allocations: 4 kB / 397.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of Templates: time 0.01671/0.2057, allocations: 9.209 MB / 407.1 MB, free: 2.023 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","../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