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.001072/0.001072, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 227.4 MB / 247.4 MB, free: 10.61 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2099/0.2099, allocations: 46.12 MB / 344.8 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 77.36 kB / 418.3 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1293, allocations: 62.45 MB / 480.7 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005952/0.1353, allocations: 4.023 MB / 484.7 MB, free: 1.238 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002876/0.1382, allocations: 1.503 MB / 486.2 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000551/0.1387, allocations: 8 kB / 486.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000927/0.1397, allocations: 262.5 kB / 486.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005982/0.1403, allocations: 138.8 kB / 486.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004718/0.1408, allocations: 187.7 kB / 486.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006093/0.1414, allocations: 0.6311 MB / 487.4 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004372/0.1419, allocations: 276.2 kB / 487.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003732/0.1423, allocations: 231 kB / 487.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000288/0.1426, allocations: 262.7 kB / 488.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.491e-05/0.1427, allocations: 68 kB / 488.3 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.002e-05/0.1427, allocations: 60 kB / 488.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.1429, allocations: 135.5 kB / 488.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002307/0.1431, allocations: 290.5 kB / 488.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006498/0.1437, allocations: 0.6852 MB / 489.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1438, allocations: 0 / 489.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1438, allocations: 0 / 489.4 MB, free: 12.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.1438, allocations: 0 / 489.4 MB, free: 12.52 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.001304/0.1451, allocations: 0.8338 MB / 490.3 MB, free: 11.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.1451, allocations: 8.031 kB / 490.3 MB, free: 11.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.1453, allocations: 64.19 kB / 490.3 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004757/0.1457, allocations: 403.6 kB / 490.7 MB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.396e-05/0.1458, allocations: 33.38 kB / 490.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.882e-05/0.1459, allocations: 64.2 kB / 490.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007292/0.1466, allocations: 459.3 kB / 491.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.1466, allocations: 3.938 kB / 491.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.075e-05/0.1467, allocations: 16 kB / 491.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.1467, allocations: 12 kB / 491.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005853/0.1473, allocations: 307.8 kB / 491.6 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002285/0.1496, allocations: 1.665 MB / 493.3 MB, free: 8.484 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008378/0.1504, allocations: 385.7 kB / 493.6 MB, free: 8.082 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002197/0.1507, allocations: 120.8 kB / 493.8 MB, free: 7.961 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.1507, allocations: 7.984 kB / 493.8 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.1507, allocations: 30.56 kB / 493.8 MB, free: 7.914 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.1508, allocations: 0 / 493.8 MB, free: 7.914 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001788/0.1525, allocations: 0.8956 MB / 494.7 MB, free: 6.945 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.1526, allocations: 55.41 kB / 494.7 MB, free: 6.879 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004592/0.1531, allocations: 397.7 kB / 495.1 MB, free: 6.488 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.685e-05/0.1531, allocations: 25.7 kB / 495.2 MB, free: 6.457 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001837/0.1533, allocations: 279.8 kB / 495.4 MB, free: 6.176 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.351e-05/0.1534, allocations: 86.75 kB / 495.5 MB, free: 6.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.641e-05/0.1535, allocations: 61.61 kB / 495.6 MB, free: 6.023 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1536, allocations: 346.8 kB / 495.9 MB, free: 5.676 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.1538, allocations: 96.81 kB / 496 MB, free: 5.578 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002525/0.1541, allocations: 158.7 kB / 496.2 MB, free: 5.398 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004192/0.1545, allocations: 258.6 kB / 496.4 MB, free: 5.121 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1545, allocations: 0 / 496.4 MB, free: 5.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006316/0.1552, allocations: 353.8 kB / 496.8 MB, free: 4.766 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.1552, allocations: 7.938 kB / 496.8 MB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.1552, allocations: 4 kB / 496.8 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001488/0.1554, allocations: 24.84 kB / 496.8 MB, free: 4.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.1557, allocations: 72.12 kB / 496.9 MB, free: 4.656 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001026/0.1567, allocations: 1.384 MB / 498.2 MB, free: 3.133 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.1569, allocations: 15.98 kB / 498.3 MB, free: 3.117 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.1569, allocations: 15.94 kB / 498.3 MB, free: 3.102 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003004/0.1573, allocations: 204.1 kB / 498.5 MB, free: 2.898 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001961/0.1575, allocations: 152.9 kB / 498.6 MB, free: 2.723 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003521/0.1578, allocations: 239.8 kB / 498.9 MB, free: 2.461 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.597e-06/0.1578, allocations: 4 kB / 498.9 MB, free: 2.457 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005682/0.1584, allocations: 326 kB / 499.2 MB, free: 2.129 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.1584, allocations: 8 kB / 499.2 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.135e-06/0.1584, allocations: 0 / 499.2 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.652e-05/0.1585, allocations: 24.84 kB / 499.2 MB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.1588, allocations: 63.91 kB / 499.3 MB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001011/0.1598, allocations: 1.386 MB / 0.4889 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.16, allocations: 12 kB / 0.4889 GB, free: 0.4961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.16, allocations: 8 kB / 0.4889 GB, free: 500 kB / 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.0001845/0.1602, allocations: 200.4 kB / 0.4891 GB, free: 292 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.623e-05/0.1603, allocations: 39.53 kB / 0.4892 GB, free: 252 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.928e-05/0.1604, allocations: 43.44 kB / 0.4892 GB, free: 200 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.1604, allocations: 4 kB / 0.4892 GB, free: 196 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1604, allocations: 0 / 0.4892 GB, free: 196 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.1604, allocations: 4.062 kB / 0.4892 GB, free: 192 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00131/0.1618, allocations: 0.8493 MB / 0.4901 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.1618, allocations: 0 / 0.4901 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002662/0.162, allocations: 55.97 kB / 0.4901 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.499e-05/0.1622, allocations: 24.84 kB / 0.4901 GB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.078e-05/0.1622, allocations: 7.938 kB / 0.4901 GB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00105/0.1632, allocations: 1.379 MB / 0.4915 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.1633, allocations: 0 / 0.4915 GB, free: 13.67 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007395/0.164, allocations: 497.5 kB / 0.492 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.1641, allocations: 116.7 kB / 0.4921 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.18e-05/0.1642, allocations: 8 kB / 0.4921 GB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.1644, allocations: 19.98 kB / 0.4921 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.318e-05/0.1644, allocations: 19.92 kB / 0.4921 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.1645, allocations: 4 kB / 0.4921 GB, free: 12.97 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000328/0.1648, allocations: 287.1 kB / 0.4924 GB, free: 12.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1648, allocations: 0 / 0.4924 GB, free: 12.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005855/0.1654, allocations: 140 kB / 0.4925 GB, free: 12.56 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.0001291/0.1655, allocations: 107.2 kB / 0.4926 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001056/0.1666, allocations: 0.6032 MB / 0.4932 GB, free: 11.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.1666, allocations: 0 / 0.4932 GB, free: 11.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003318/0.1669, allocations: 226.5 kB / 0.4934 GB, free: 11.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005809/0.1675, allocations: 67.91 kB / 0.4935 GB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001792/0.1693, allocations: 1.073 MB / 0.4945 GB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.1698, allocations: 0.8386 MB / 0.4954 GB, free: 9.543 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.316e-05/0.1699, allocations: 31.44 kB / 0.4954 GB, free: 9.512 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1699, allocations: 0 / 0.4954 GB, free: 9.512 MB / 382.1 MB Notification: Performance of Templates: time 0.01061/0.1805, allocations: 7.156 MB / 0.5024 GB, free: 2.355 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)