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.0007859/0.0007858, allocations: 92.61 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009538/0.0009538, allocations: 200.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.7 MB / 247.5 MB, free: 9.484 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1992/0.1992, allocations: 46.18 MB / 345.9 MB, free: 11.14 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003174/0.0003174, allocations: 4 kB / 420.2 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1139, allocations: 63.56 MB / 483.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.004319/0.1183, allocations: 3.645 MB / 487.4 MB, free: 468 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002476/0.1208, allocations: 1.445 MB / 488.8 MB, free: 15 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004536/0.1212, allocations: 15.94 kB / 488.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006891/0.1219, allocations: 230.8 kB / 489.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003661/0.1223, allocations: 119.1 kB / 489.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004069/0.1227, allocations: 155.9 kB / 489.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006863/0.1234, allocations: 0.6075 MB / 489.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003724/0.1238, allocations: 239.4 kB / 490.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003109/0.1241, allocations: 179.1 kB / 490.3 MB, free: 13.47 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000259/0.1244, allocations: 222.8 kB / 490.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.1245, allocations: 28 kB / 490.6 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.061e-05/0.1245, allocations: 28 kB / 490.6 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.186e-05/0.1246, allocations: 87.5 kB / 490.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002483/0.1249, allocations: 268.2 kB / 491 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004453/0.1253, allocations: 0.5336 MB / 491.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1253, allocations: 0 / 491.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1254, allocations: 0 / 491.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.734e-05/0.1254, allocations: 0 / 491.5 MB, free: 12.3 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.001196/0.1266, allocations: 0.7444 MB / 492.2 MB, free: 11.51 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.1266, allocations: 16.88 kB / 492.3 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.1268, allocations: 60.19 kB / 492.3 MB, free: 11.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005169/0.1273, allocations: 399.6 kB / 492.7 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.406e-05/0.1273, allocations: 33.38 kB / 492.7 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-05/0.1274, allocations: 52.36 kB / 492.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008406/0.1283, allocations: 467.3 kB / 493.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.1283, allocations: 7.906 kB / 493.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.21e-05/0.1283, allocations: 16 kB / 493.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.1284, allocations: 12 kB / 493.3 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007359/0.1291, allocations: 319.8 kB / 493.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002437/0.1316, allocations: 1.689 MB / 495.3 MB, free: 8.328 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008602/0.1324, allocations: 419.5 kB / 495.7 MB, free: 7.891 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002361/0.1327, allocations: 132.7 kB / 495.8 MB, free: 7.758 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.1327, allocations: 4 kB / 495.8 MB, free: 7.754 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.1327, allocations: 34.56 kB / 495.9 MB, free: 7.711 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.373e-06/0.1327, allocations: 0 / 495.9 MB, free: 7.711 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001646/0.1344, allocations: 0.92 MB / 496.8 MB, free: 6.715 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.1344, allocations: 51.41 kB / 496.8 MB, free: 6.652 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004269/0.1349, allocations: 393.7 kB / 497.2 MB, free: 6.262 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.1349, allocations: 29.7 kB / 497.2 MB, free: 6.227 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001806/0.1351, allocations: 275.8 kB / 497.5 MB, free: 5.953 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.604e-05/0.1352, allocations: 98.64 kB / 497.6 MB, free: 5.855 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.663e-05/0.1352, allocations: 33.7 kB / 497.6 MB, free: 5.816 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1354, allocations: 346.9 kB / 498 MB, free: 5.469 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.1356, allocations: 107.8 kB / 498.1 MB, free: 5.363 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002408/0.1358, allocations: 162.8 kB / 498.2 MB, free: 5.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004403/0.1363, allocations: 259.8 kB / 498.5 MB, free: 4.902 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.1363, allocations: 4 kB / 498.5 MB, free: 4.898 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006277/0.1369, allocations: 366 kB / 498.9 MB, free: 4.531 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.103e-05/0.137, allocations: 147 kB / 499 MB, free: 4.359 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.137, allocations: 4 kB / 499 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001221/0.1372, allocations: 20.84 kB / 499 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002853/0.1375, allocations: 75.91 kB / 499.1 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000911/0.1384, allocations: 1.285 MB / 0.4887 GB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.1386, allocations: 28.17 kB / 0.4887 GB, free: 2.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.1386, allocations: 11.94 kB / 0.4887 GB, free: 2.801 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.111e-06/0.1386, allocations: 4 kB / 0.4887 GB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004529/0.1391, allocations: 256.6 kB / 0.489 GB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1391, allocations: 4.219 kB / 0.489 GB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.253e-05/0.1392, allocations: 28.84 kB / 0.489 GB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000246/0.1394, allocations: 67.91 kB / 0.489 GB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000863/0.1403, allocations: 1.292 MB / 0.4903 GB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001606/0.1405, allocations: 12.03 kB / 0.4903 GB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.682e-05/0.1405, allocations: 11.94 kB / 0.4903 GB, free: 0.9961 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.0002085/0.1407, allocations: 245.1 kB / 0.4906 GB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.992e-05/0.1408, allocations: 35.62 kB / 0.4906 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.098e-05/0.1409, allocations: 51.5 kB / 0.4906 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1409, allocations: 0 / 0.4906 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1409, allocations: 0 / 0.4906 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1409, allocations: 3.938 kB / 0.4907 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.1421, allocations: 0.8628 MB / 0.4915 GB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1421, allocations: 4 kB / 0.4915 GB, free: 15.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000245/0.1423, allocations: 51.91 kB / 0.4915 GB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.16e-05/0.1424, allocations: 28.91 kB / 0.4916 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.791e-05/0.1425, allocations: 4 kB / 0.4916 GB, free: 15.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008592/0.1433, allocations: 1.288 MB / 0.4928 GB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1433, allocations: 0 / 0.4928 GB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007424/0.1441, allocations: 0.4976 MB / 0.4933 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.527e-05/0.1442, allocations: 112.8 kB / 0.4934 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.224e-05/0.1442, allocations: 11.98 kB / 0.4934 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.1445, allocations: 27.86 kB / 0.4935 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.488e-05/0.1445, allocations: 15.98 kB / 0.4935 GB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.302e-05/0.1445, allocations: 4 kB / 0.4935 GB, free: 13.51 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002977/0.1448, allocations: 283.2 kB / 0.4938 GB, free: 13.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1448, allocations: 4 kB / 0.4938 GB, free: 13.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005043/0.1454, allocations: 140 kB / 0.4939 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.0001213/0.1455, allocations: 111 kB / 0.494 GB, free: 12.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009964/0.1465, allocations: 0.6112 MB / 0.4946 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1465, allocations: 0 / 0.4946 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003314/0.1468, allocations: 231.5 kB / 0.4948 GB, free: 12.1 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005496/0.1474, allocations: 71.38 kB / 0.4949 GB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001813/0.1492, allocations: 1.352 MB / 0.4962 GB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.1497, allocations: 0.8347 MB / 0.497 GB, free: 9.773 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.207e-05/0.1498, allocations: 31.44 kB / 0.4971 GB, free: 9.742 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1498, allocations: 0 / 0.4971 GB, free: 9.742 MB / 382.1 MB Notification: Performance of Templates: time 0.01076/0.1605, allocations: 7.102 MB / 0.504 GB, free: 2.645 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)