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: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008912/0.0008914, allocations: 93.88 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001142/0.001142, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246 MB, free: 11.8 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2138/0.2138, allocations: 45.92 MB / 344.1 MB, free: 12.18 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000287/0.0002872, allocations: 8 kB / 418.2 MB, free: 20.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.131, allocations: 63.47 MB / 481.6 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.004664/0.1357, allocations: 3.469 MB / 485.1 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002857/0.1386, allocations: 1.383 MB / 486.5 MB, free: 388 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005079/0.1392, allocations: 11.94 kB / 486.5 MB, free: 376 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006622/0.1398, allocations: 218.7 kB / 486.7 MB, free: 156 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002864/0.1401, allocations: 103.2 kB / 486.8 MB, free: 52 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004306/0.1406, allocations: 123.9 kB / 486.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006398/0.1412, allocations: 0.5647 MB / 487.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003811/0.1416, allocations: 195.4 kB / 487.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003261/0.142, allocations: 191.1 kB / 487.9 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00026/0.1422, allocations: 202.9 kB / 488.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.2e-05/0.1423, allocations: 24 kB / 488.1 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.738e-05/0.1423, allocations: 28 kB / 488.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.786e-05/0.1424, allocations: 79.62 kB / 488.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.1426, allocations: 125.4 kB / 488.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004748/0.143, allocations: 0.5378 MB / 488.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.143, allocations: 4 kB / 488.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.1431, allocations: 0 / 488.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1431, allocations: 0 / 488.9 MB, free: 13.98 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.001209/0.1443, allocations: 0.748 MB / 489.6 MB, free: 13.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.055e-05/0.1443, allocations: 8.031 kB / 489.6 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001091/0.1445, allocations: 86.52 kB / 489.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.1446, allocations: 59.25 kB / 489.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005295/0.1451, allocations: 398.5 kB / 490.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.1452, allocations: 33 kB / 490.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.988e-05/0.1452, allocations: 55.98 kB / 490.2 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008327/0.1461, allocations: 455 kB / 490.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.1461, allocations: 3.906 kB / 490.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.178e-05/0.1462, allocations: 16 kB / 490.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.1462, allocations: 15.94 kB / 490.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000601/0.1468, allocations: 319.8 kB / 491 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002579/0.1494, allocations: 1.689 MB / 492.7 MB, free: 9.922 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008533/0.1502, allocations: 419.5 kB / 493.1 MB, free: 9.484 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000212/0.1505, allocations: 124.8 kB / 493.3 MB, free: 9.359 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.1505, allocations: 4 kB / 493.3 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.545e-05/0.1506, allocations: 34.56 kB / 493.3 MB, free: 9.312 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 2.315e-06/0.1506, allocations: 96 / 493.3 MB, free: 9.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001727/0.1523, allocations: 0.9272 MB / 494.2 MB, free: 8.312 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.1524, allocations: 55.41 kB / 494.3 MB, free: 8.246 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004496/0.1528, allocations: 397.6 kB / 494.7 MB, free: 7.852 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.1529, allocations: 29.7 kB / 494.7 MB, free: 7.816 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.1531, allocations: 275.8 kB / 495 MB, free: 7.543 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.653e-05/0.1531, allocations: 86.7 kB / 495 MB, free: 7.457 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.575e-05/0.1532, allocations: 12 kB / 495.1 MB, free: 7.445 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.1533, allocations: 346.8 kB / 495.4 MB, free: 7.098 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001975/0.1535, allocations: 95.95 kB / 495.5 MB, free: 7.004 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002368/0.1538, allocations: 163.4 kB / 495.6 MB, free: 6.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.154, allocations: 111.9 kB / 495.8 MB, free: 6.711 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.154, allocations: 0 / 495.8 MB, free: 6.711 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006016/0.1546, allocations: 371 kB / 496.1 MB, free: 6.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.936e-05/0.1547, allocations: 135 kB / 496.2 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.1547, allocations: 4 kB / 496.3 MB, free: 6.176 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001348/0.1549, allocations: 24.84 kB / 496.3 MB, free: 6.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002994/0.1552, allocations: 71.91 kB / 496.3 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.1562, allocations: 1.284 MB / 497.6 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/0.1564, allocations: 24.17 kB / 497.7 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.069e-05/0.1565, allocations: 12 kB / 497.7 MB, free: 4.625 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.093e-06/0.1565, allocations: 6.344 kB / 497.7 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004429/0.1569, allocations: 256.6 kB / 497.9 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.1569, allocations: 0 / 497.9 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.869e-05/0.157, allocations: 33.02 kB / 498 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002444/0.1573, allocations: 67.91 kB / 498 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008858/0.1582, allocations: 1.284 MB / 499.3 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001524/0.1583, allocations: 12.03 kB / 499.3 MB, free: 2.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.576e-05/0.1583, allocations: 8 kB / 499.3 MB, free: 2.832 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002507/0.1586, allocations: 245.2 kB / 499.6 MB, free: 2.582 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.305e-05/0.1587, allocations: 47.42 kB / 499.6 MB, free: 2.535 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.432e-05/0.1588, allocations: 47.59 kB / 499.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1588, allocations: 4 kB / 499.7 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1588, allocations: 0 / 499.7 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1588, allocations: 0 / 499.7 MB, free: 2.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001223/0.16, allocations: 0.8484 MB / 0.4888 GB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.16, allocations: 0 / 0.4888 GB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002525/0.1603, allocations: 55.91 kB / 0.4888 GB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.246e-05/0.1604, allocations: 28.91 kB / 0.4889 GB, free: 1.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.937e-05/0.1604, allocations: 7.938 kB / 0.4889 GB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009197/0.1613, allocations: 1.292 MB / 0.4901 GB, free: 48 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1614, allocations: 0 / 0.4901 GB, free: 48 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007599/0.1621, allocations: 0.5007 MB / 0.4906 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.594e-05/0.1622, allocations: 120.6 kB / 0.4907 GB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.119e-05/0.1623, allocations: 12.12 kB / 0.4907 GB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001962/0.1625, allocations: 19.98 kB / 0.4908 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.892e-05/0.1625, allocations: 19.94 kB / 0.4908 GB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.469e-05/0.1626, allocations: 8 kB / 0.4908 GB, free: 15.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000298/0.1629, allocations: 279.2 kB / 0.4911 GB, free: 15.05 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1629, allocations: 0 / 0.4911 GB, free: 15.05 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005634/0.1634, allocations: 140 kB / 0.4912 GB, free: 14.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001018/0.1645, allocations: 1.038 MB / 0.4922 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009963/0.1655, allocations: 0.608 MB / 0.4928 GB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1655, allocations: 0 / 0.4928 GB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003491/0.1658, allocations: 226.6 kB / 0.493 GB, free: 12.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005454/0.1664, allocations: 69.3 kB / 0.4931 GB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00424/0.1707, allocations: 2.727 MB / 0.4957 GB, free: 10.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004653/0.1711, allocations: 0.8348 MB / 0.4966 GB, free: 9.234 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001877/0.1713, allocations: 47.25 kB / 0.4966 GB, free: 9.188 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002327/0.1716, allocations: 159.4 kB / 0.4968 GB, free: 9.031 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1716, allocations: 0 / 0.4968 GB, free: 9.031 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02151/0.1931, allocations: 7.692 MB / 0.5043 GB, free: 1.543 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002005/0.1933, allocations: 225.8 kB / 0.5045 GB, free: 1.293 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/2.173, allocations: 0 / 0.5045 GB, free: 1.293 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_CurrentControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_CurrentControlled.pipe 2>&1)