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.001101/0.001101, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001207/0.001207, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2039/0.2039, allocations: 46.11 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 75.88 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1212, allocations: 62.45 MB / 481.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005479/0.1267, allocations: 4.023 MB / 485.5 MB, free: 0.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002396/0.1291, allocations: 1.491 MB / 487 MB, free: 15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002473/0.1294, allocations: 15.94 kB / 487 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006719/0.1301, allocations: 262.2 kB / 487.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002573/0.1304, allocations: 138.8 kB / 487.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003997/0.1308, allocations: 191.7 kB / 487.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006031/0.1314, allocations: 0.6427 MB / 488.2 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003769/0.1318, allocations: 264.2 kB / 488.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003293/0.1321, allocations: 239 kB / 488.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002627/0.1324, allocations: 262.7 kB / 489 MB, free: 13 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.97e-05/0.1325, allocations: 64 kB / 489 MB, free: 12.94 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.596e-05/0.1325, allocations: 60 kB / 489.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.946e-05/0.1326, allocations: 135.5 kB / 489.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002243/0.1329, allocations: 286.5 kB / 489.5 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006097/0.1335, allocations: 0.7085 MB / 490.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1335, allocations: 0 / 490.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1335, allocations: 0 / 490.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.1335, allocations: 0 / 490.2 MB, free: 11.76 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.001227/0.1348, allocations: 0.8299 MB / 491 MB, free: 10.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.1348, allocations: 8.031 kB / 491 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.1349, allocations: 68.17 kB / 491.1 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006219/0.1356, allocations: 415.6 kB / 491.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.23e-05/0.1356, allocations: 33.38 kB / 491.5 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.164e-05/0.1357, allocations: 52.28 kB / 491.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007474/0.1364, allocations: 455.3 kB / 492 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/0.1365, allocations: 0 / 492 MB, free: 9.816 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.344e-05/0.1365, allocations: 20 kB / 492.1 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.1365, allocations: 12 kB / 492.1 MB, free: 9.785 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005538/0.1371, allocations: 307.8 kB / 492.4 MB, free: 9.484 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002218/0.1393, allocations: 1.657 MB / 494 MB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000813/0.1402, allocations: 391.1 kB / 494.4 MB, free: 7.328 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002132/0.1404, allocations: 116.8 kB / 494.5 MB, free: 7.211 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.1404, allocations: 8 kB / 494.5 MB, free: 7.203 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.1404, allocations: 34.56 kB / 494.6 MB, free: 7.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.423e-06/0.1404, allocations: 0 / 494.6 MB, free: 7.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001633/0.1421, allocations: 0.8917 MB / 495.5 MB, free: 6.195 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.934e-05/0.1421, allocations: 55.41 kB / 495.5 MB, free: 6.129 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004201/0.1426, allocations: 397.6 kB / 495.9 MB, free: 5.738 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/0.1426, allocations: 29.7 kB / 495.9 MB, free: 5.703 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001785/0.1428, allocations: 275.8 kB / 496.2 MB, free: 5.426 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.248e-05/0.1429, allocations: 94.67 kB / 496.3 MB, free: 5.332 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.871e-05/0.143, allocations: 61.61 kB / 496.4 MB, free: 5.266 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1431, allocations: 350.8 kB / 496.7 MB, free: 4.914 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.1433, allocations: 96.81 kB / 496.8 MB, free: 4.816 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002248/0.1435, allocations: 158.6 kB / 496.9 MB, free: 4.637 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/0.144, allocations: 258.7 kB / 497.2 MB, free: 4.359 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.144, allocations: 0 / 497.2 MB, free: 4.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005794/0.1446, allocations: 350 kB / 497.5 MB, free: 4.008 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.1446, allocations: 11.92 kB / 497.6 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.1446, allocations: 4 kB / 497.6 MB, free: 3.992 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001382/0.1447, allocations: 20.86 kB / 497.6 MB, free: 3.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002706/0.145, allocations: 67.89 kB / 497.6 MB, free: 3.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009807/0.146, allocations: 1.383 MB / 499 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.1462, allocations: 12 kB / 499 MB, free: 2.367 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.019e-05/0.1462, allocations: 16.09 kB / 499.1 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002645/0.1465, allocations: 212.1 kB / 499.3 MB, free: 2.141 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001918/0.1467, allocations: 148.7 kB / 499.4 MB, free: 1.969 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003253/0.147, allocations: 235.8 kB / 499.6 MB, free: 1.711 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.342e-06/0.1471, allocations: 4 kB / 499.6 MB, free: 1.707 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0004859/0.1475, allocations: 329.8 kB / 500 MB, free: 1.375 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.065e-05/0.1476, allocations: 10.34 kB / 500 MB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.455e-06/0.1476, allocations: 0 / 500 MB, free: 1.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7e-05/0.1476, allocations: 20.86 kB / 500 MB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000266/0.1479, allocations: 72.16 kB / 0.4883 GB, free: 1.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008964/0.1488, allocations: 1.387 MB / 0.4897 GB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.149, allocations: 11.98 kB / 0.4897 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.149, allocations: 12 kB / 0.4897 GB, free: 15.73 MB / 382.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.0001338/0.1492, allocations: 196.4 kB / 0.4899 GB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.014e-05/0.1492, allocations: 39.53 kB / 0.4899 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.452e-05/0.1493, allocations: 39.52 kB / 0.49 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.1493, allocations: 8.062 kB / 0.49 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.1493, allocations: 96 / 0.49 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.1494, allocations: 7.922 kB / 0.49 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.1505, allocations: 0.8362 MB / 0.4908 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1505, allocations: 4.062 kB / 0.4908 GB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002531/0.1507, allocations: 55.91 kB / 0.4909 GB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.347e-05/0.1508, allocations: 28.78 kB / 0.4909 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.876e-05/0.1509, allocations: 11.94 kB / 0.4909 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008391/0.1517, allocations: 1.371 MB / 0.4923 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1517, allocations: 0 / 0.4923 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006814/0.1524, allocations: 497.6 kB / 0.4927 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.513e-05/0.1525, allocations: 116.7 kB / 0.4928 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.843e-05/0.1526, allocations: 8.125 kB / 0.4928 GB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.1528, allocations: 23.98 kB / 0.4929 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.47e-05/0.1528, allocations: 19.91 kB / 0.4929 GB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.1528, allocations: 8 kB / 0.4929 GB, free: 12.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002749/0.1531, allocations: 279.2 kB / 0.4932 GB, free: 11.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1531, allocations: 0 / 0.4932 GB, free: 11.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000513/0.1536, allocations: 144 kB / 0.4933 GB, free: 11.8 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 9.573e-05/0.1537, allocations: 107.2 kB / 0.4934 GB, free: 11.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000952/0.1547, allocations: 0.5913 MB / 0.494 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1547, allocations: 192 / 0.494 GB, free: 11.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000302/0.155, allocations: 228.2 kB / 0.4942 GB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.1555, allocations: 60.62 kB / 0.4943 GB, free: 10.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.1571, allocations: 1.025 MB / 0.4953 GB, free: 9.723 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.1575, allocations: 0.8347 MB / 0.4961 GB, free: 8.859 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001546/0.1577, allocations: 47.25 kB / 0.4961 GB, free: 8.809 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.751e-05/0.1578, allocations: 31.44 kB / 0.4961 GB, free: 8.777 MB / 382.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1578, allocations: 3.938 kB / 0.4961 GB, free: 8.773 MB / 382.1 MB Notification: Performance of Templates: time 0.008021/0.1658, allocations: 4.072 MB / 0.5001 GB, free: 4.723 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 -s gbode -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)