Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001181/0.001181, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001189/0.001189, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 227.4 MB / 247.1 MB, free: 10.7 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2322/0.2322, allocations: 46.09 MB / 344.4 MB, free: 11.67 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 76.41 kB / 417.7 MB, free: 20.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1263, allocations: 62.45 MB / 480.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005622/0.132, allocations: 4.035 MB / 484.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002347/0.1343, allocations: 1.48 MB / 485.7 MB, free: 60 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003959/0.1348, allocations: 11.94 kB / 485.7 MB, free: 48 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007655/0.1356, allocations: 230.9 kB / 485.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004113/0.136, allocations: 107.2 kB / 486 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004663/0.1365, allocations: 175.8 kB / 486.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007318/0.1372, allocations: 0.6272 MB / 486.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004197/0.1376, allocations: 276.2 kB / 487.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003787/0.138, allocations: 231 kB / 487.3 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003142/0.1383, allocations: 270.7 kB / 487.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.506e-05/0.1384, allocations: 60 kB / 487.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.1e-05/0.1385, allocations: 60 kB / 487.7 MB, free: 14.03 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.674e-05/0.1386, allocations: 131.5 kB / 487.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002612/0.1389, allocations: 290.5 kB / 488.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005196/0.1394, allocations: 0.5573 MB / 488.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1395, allocations: 0 / 488.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1395, allocations: 0 / 488.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.216e-05/0.1395, allocations: 3.938 kB / 488.7 MB, free: 13.05 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.00141/0.1409, allocations: 0.8377 MB / 489.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.141, allocations: 8.031 kB / 489.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001155/0.1411, allocations: 64.19 kB / 489.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005224/0.1416, allocations: 391.7 kB / 490 MB, free: 11.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.825e-05/0.1417, allocations: 41.3 kB / 490 MB, free: 11.64 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.246e-05/0.1417, allocations: 52.28 kB / 490 MB, free: 11.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007908/0.1425, allocations: 459.3 kB / 490.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.982e-05/0.1426, allocations: 0 / 490.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.708e-05/0.1426, allocations: 20 kB / 490.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.1426, allocations: 12 kB / 490.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005907/0.1432, allocations: 307.8 kB / 490.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002421/0.1457, allocations: 1.673 MB / 492.5 MB, free: 9.027 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008265/0.1465, allocations: 383.5 kB / 492.9 MB, free: 8.625 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002253/0.1467, allocations: 124.2 kB / 493 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.1468, allocations: 0 / 493 MB, free: 8.504 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.1468, allocations: 38.56 kB / 493 MB, free: 8.457 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.132e-06/0.1468, allocations: 3.938 kB / 493 MB, free: 8.453 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001699/0.1485, allocations: 0.8956 MB / 493.9 MB, free: 7.484 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/0.1486, allocations: 55.41 kB / 494 MB, free: 7.418 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004387/0.149, allocations: 389.7 kB / 494.4 MB, free: 7.035 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.691e-05/0.1491, allocations: 37.69 kB / 494.4 MB, free: 6.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.1492, allocations: 275.8 kB / 494.7 MB, free: 6.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.819e-05/0.1493, allocations: 94.67 kB / 494.8 MB, free: 6.621 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.775e-05/0.1494, allocations: 61.61 kB / 494.8 MB, free: 6.555 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.1496, allocations: 346.8 kB / 495.2 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.1498, allocations: 96.81 kB / 495.3 MB, free: 6.109 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002343/0.15, allocations: 158.6 kB / 495.4 MB, free: 5.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004264/0.1504, allocations: 255.7 kB / 495.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1505, allocations: 0 / 495.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006412/0.1511, allocations: 358 kB / 496 MB, free: 5.297 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.1511, allocations: 7.938 kB / 496 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.1511, allocations: 4 kB / 496 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/0.1513, allocations: 24.84 kB / 496 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002972/0.1516, allocations: 63.91 kB / 496.1 MB, free: 5.195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009945/0.1526, allocations: 1.384 MB / 497.5 MB, free: 3.672 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002137/0.1528, allocations: 11.98 kB / 497.5 MB, free: 3.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.091e-05/0.1529, allocations: 15.94 kB / 497.5 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002823/0.1532, allocations: 208.1 kB / 497.7 MB, free: 3.438 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001844/0.1534, allocations: 141 kB / 497.9 MB, free: 3.273 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003315/0.1537, allocations: 243.6 kB / 498.1 MB, free: 3.008 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.623e-06/0.1537, allocations: 0 / 498.1 MB, free: 3.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.000541/0.1543, allocations: 330 kB / 498.4 MB, free: 2.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/0.1543, allocations: 8 kB / 498.4 MB, free: 2.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-06/0.1543, allocations: 4.25 kB / 498.4 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.312e-05/0.1544, allocations: 24.84 kB / 498.5 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000247/0.1546, allocations: 67.91 kB / 498.5 MB, free: 2.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008173/0.1555, allocations: 1.386 MB / 499.9 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.1557, allocations: 8 kB / 499.9 MB, free: 1.039 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.661e-05/0.1557, allocations: 12 kB / 499.9 MB, free: 1.027 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 1 (currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001194/0.1558, allocations: 200.5 kB / 0.4884 GB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.33e-05/0.1559, allocations: 39.53 kB / 0.4884 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.399e-05/0.156, allocations: 47.48 kB / 0.4885 GB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.156, allocations: 7.938 kB / 0.4885 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.156, allocations: 0 / 0.4885 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.156, allocations: 0 / 0.4885 GB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.1571, allocations: 0.8441 MB / 0.4893 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1572, allocations: 0 / 0.4893 GB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002638/0.1574, allocations: 55.91 kB / 0.4894 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.136e-05/0.1575, allocations: 28.91 kB / 0.4894 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.1576, allocations: 3.938 kB / 0.4894 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008649/0.1584, allocations: 1.379 MB / 0.4907 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1584, allocations: 0 / 0.4907 GB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007243/0.1592, allocations: 490.8 kB / 0.4912 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.714e-05/0.1593, allocations: 120.7 kB / 0.4913 GB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.96e-05/0.1593, allocations: 12 kB / 0.4913 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002187/0.1596, allocations: 11.98 kB / 0.4914 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.479e-05/0.1596, allocations: 27.86 kB / 0.4914 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.1597, allocations: 4 kB / 0.4914 GB, free: 13.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003167/0.16, allocations: 283.2 kB / 0.4917 GB, free: 13.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.16, allocations: 0 / 0.4917 GB, free: 13.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005647/0.1606, allocations: 140 kB / 0.4918 GB, free: 13.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcpm.inductor.i,dcpm.inertia.w,torqueLoad.phi,deadTime.y,currentController.integrator.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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001287/0.1607, allocations: 103.8 kB / 0.4919 GB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.1618, allocations: 0.6024 MB / 0.4925 GB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1618, allocations: 0.9375 kB / 0.4925 GB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003268/0.1622, allocations: 226.6 kB / 0.4927 GB, free: 12.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006371/0.1628, allocations: 78.91 kB / 0.4928 GB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001907/0.1647, allocations: 1.245 MB / 0.494 GB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003982/0.1651, allocations: 0.8347 MB / 0.4948 GB, free: 9.91 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.571e-05/0.1652, allocations: 27.44 kB / 0.4948 GB, free: 9.883 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1652, allocations: 7.938 kB / 0.4948 GB, free: 9.875 MB / 382.1 MB Notification: Performance of Templates: time 0.009455/0.1747, allocations: 7.176 MB / 0.5018 GB, free: 2.699 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)