Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.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_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") translateModel(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00117/0.00117, allocations: 114.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001255/0.001256, allocations: 204.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2101/0.2101, allocations: 46.1 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 75.86 kB / 419 MB, free: 19.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1204, allocations: 62.46 MB / 481.5 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.005646/0.1261, allocations: 4.529 MB / 486 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002316/0.1284, allocations: 1.655 MB / 487.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002637/0.1287, allocations: 15.94 kB / 487.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006627/0.1294, allocations: 301.8 kB / 488 MB, free: 14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002857/0.1297, allocations: 166.5 kB / 488.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004115/0.1301, allocations: 263.6 kB / 488.4 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007221/0.1309, allocations: 0.842 MB / 489.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005/0.1314, allocations: 398.2 kB / 489.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003563/0.1317, allocations: 302.7 kB / 489.9 MB, free: 12.03 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003242/0.1321, allocations: 342.3 kB / 490.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.1322, allocations: 83.94 kB / 490.3 MB, free: 11.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.044e-05/0.1323, allocations: 80 kB / 490.4 MB, free: 11.53 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.1324, allocations: 171.3 kB / 490.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002718/0.1327, allocations: 378 kB / 490.9 MB, free: 10.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006978/0.1334, allocations: 0.9186 MB / 491.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.1334, allocations: 0 / 491.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.205e-06/0.1334, allocations: 0 / 491.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.158e-06/0.1334, allocations: 4 kB / 491.9 MB, free: 10.07 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: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.001447/0.1349, allocations: 1.021 MB / 492.9 MB, free: 8.992 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.1349, allocations: 8.031 kB / 492.9 MB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.135, allocations: 87.91 kB / 493 MB, free: 8.898 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007603/0.1358, allocations: 0.4936 MB / 493.5 MB, free: 8.367 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.763e-05/0.1359, allocations: 45.69 kB / 493.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.972e-05/0.1359, allocations: 60.38 kB / 493.6 MB, free: 8.266 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.1371, allocations: 0.5953 MB / 494.2 MB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.342e-05/0.1371, allocations: 15.91 kB / 494.2 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.596e-05/0.1371, allocations: 20 kB / 494.2 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.1372, allocations: 19.94 kB / 494.2 MB, free: 7.594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007906/0.138, allocations: 421 kB / 494.6 MB, free: 7.184 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002781/0.1408, allocations: 2.144 MB / 496.8 MB, free: 4.941 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.1418, allocations: 0.5629 MB / 497.3 MB, free: 4.336 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003992/0.1422, allocations: 171.3 kB / 497.5 MB, free: 4.168 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.512e-05/0.1422, allocations: 0 / 497.5 MB, free: 4.168 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.1423, allocations: 38.56 kB / 497.5 MB, free: 4.121 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.252e-06/0.1423, allocations: 0 / 497.5 MB, free: 4.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.001999/0.1443, allocations: 1.142 MB / 498.7 MB, free: 2.902 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.1443, allocations: 55.41 kB / 498.7 MB, free: 2.836 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005483/0.1449, allocations: 0.5183 MB / 499.3 MB, free: 2.312 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.856e-05/0.1449, allocations: 33.7 kB / 499.3 MB, free: 2.273 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000224/0.1451, allocations: 348.1 kB / 499.6 MB, free: 1.926 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.695e-05/0.1452, allocations: 114.3 kB / 499.7 MB, free: 1.812 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.1453, allocations: 78.14 kB / 499.8 MB, free: 1.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1455, allocations: 366.8 kB / 0.4885 GB, free: 1.363 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003027/0.1458, allocations: 142.5 kB / 0.4886 GB, free: 1.223 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003519/0.1462, allocations: 216.9 kB / 0.4888 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006151/0.1468, allocations: 359.9 kB / 0.4891 GB, free: 0.5938 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1468, allocations: 11.94 kB / 0.4892 GB, free: 0.582 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008045/0.1476, allocations: 473.5 kB / 0.4896 GB, free: 112 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.1476, allocations: 12 kB / 0.4896 GB, free: 100 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.1477, allocations: 4 kB / 0.4896 GB, free: 96 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001526/0.1478, allocations: 24.84 kB / 0.4896 GB, free: 68 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000403/0.1482, allocations: 103.8 kB / 0.4897 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009906/0.1492, allocations: 1.376 MB / 0.4911 GB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002362/0.1495, allocations: 19.98 kB / 0.4911 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.635e-05/0.1495, allocations: 24.14 kB / 0.4911 GB, free: 14.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003488/0.1499, allocations: 253 kB / 0.4914 GB, free: 14.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002477/0.1501, allocations: 206.9 kB / 0.4916 GB, free: 13.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004304/0.1506, allocations: 336 kB / 0.4919 GB, free: 13.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.995e-06/0.1506, allocations: 4 kB / 0.4919 GB, free: 13.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0006347/0.1512, allocations: 442.2 kB / 0.4923 GB, free: 13.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.1512, allocations: 8 kB / 0.4923 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.795e-06/0.1513, allocations: 0 / 0.4923 GB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.125e-05/0.1513, allocations: 28.84 kB / 0.4924 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003186/0.1517, allocations: 92.17 kB / 0.4924 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008561/0.1525, allocations: 1.391 MB / 0.4938 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002028/0.1527, allocations: 19.94 kB / 0.4938 GB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.333e-05/0.1528, allocations: 19.94 kB / 0.4938 GB, free: 11.41 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (speedController.integrator.local_reset,currentController.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * 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.0001497/0.1529, allocations: 206 kB / 0.494 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.001e-05/0.153, allocations: 51.34 kB / 0.4941 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/0.1531, allocations: 57.28 kB / 0.4941 GB, free: 11.1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1531, allocations: 4 kB / 0.4941 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.624e-06/0.1531, allocations: 12 kB / 0.4942 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.1532, allocations: 3.984 kB / 0.4942 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001501/0.1547, allocations: 1.055 MB / 0.4952 GB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1547, allocations: 0 / 0.4952 GB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003195/0.155, allocations: 67.89 kB / 0.4952 GB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.503e-05/0.1551, allocations: 20.86 kB / 0.4953 GB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.528e-05/0.1551, allocations: 15.98 kB / 0.4953 GB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008411/0.156, allocations: 1.378 MB / 0.4966 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.156, allocations: 0 / 0.4966 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009445/0.1569, allocations: 0.6318 MB / 0.4972 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001111/0.1571, allocations: 140.4 kB / 0.4974 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.033e-05/0.1571, allocations: 4 kB / 0.4974 GB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.1574, allocations: 27.97 kB / 0.4974 GB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.035e-05/0.1575, allocations: 19.97 kB / 0.4974 GB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.1575, allocations: 8 kB / 0.4974 GB, free: 7.465 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004276/0.1579, allocations: 370.9 kB / 0.4978 GB, free: 7.105 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1579, allocations: 0 / 0.4978 GB, free: 7.105 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005884/0.1585, allocations: 180 kB / 0.498 GB, free: 6.93 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (dcpm.inductor.i,dcpm.inertia.w,inertiaLoad.phi,deadTime.y,currentController.integrator.y,preFilter.y,speedController.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 (32): * Single equations (assignments): 31 * 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.0001399/0.1587, allocations: 113.7 kB / 0.4981 GB, free: 6.809 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.1599, allocations: 0.7508 MB / 0.4988 GB, free: 6.031 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1599, allocations: 1.062 kB / 0.4988 GB, free: 6.031 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003944/0.1603, allocations: 274.6 kB / 0.4991 GB, free: 5.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005821/0.1609, allocations: 106.1 kB / 0.4992 GB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001862/0.1627, allocations: 1.268 MB / 0.5004 GB, free: 4.34 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004083/0.1632, allocations: 0.8863 MB / 0.5013 GB, free: 3.422 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000208/0.1634, allocations: 64.36 kB / 0.5013 GB, free: 3.355 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001067/0.1635, allocations: 35.44 kB / 0.5014 GB, free: 3.32 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1635, allocations: 0 / 0.5014 GB, free: 3.32 MB / 382.1 MB Notification: Performance of Templates: time 0.1941/0.3576, allocations: 5.484 MB / 0.5067 GB, free: 39.58 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)