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: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00104/0.00104, allocations: 101.5 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001035/0.001035, allocations: 198.1 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2388/0.2388, allocations: 45.91 MB / 344 MB, free: 12.32 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002745/0.0002745, allocations: 8 kB / 418.1 MB, free: 20.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1275, allocations: 63.47 MB / 481.5 MB, free: 5.309 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.004538/0.1321, allocations: 3.777 MB / 485.3 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002637/0.1347, allocations: 1.552 MB / 486.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003961/0.1352, allocations: 19.88 kB / 486.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000505/0.1357, allocations: 214.8 kB / 487.1 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003816/0.1361, allocations: 187.3 kB / 487.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004133/0.1365, allocations: 167.8 kB / 487.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006849/0.1372, allocations: 0.5351 MB / 488 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003712/0.1376, allocations: 275.2 kB / 488.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003088/0.1379, allocations: 226.9 kB / 488.5 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.1382, allocations: 258.6 kB / 488.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.567e-05/0.1382, allocations: 32 kB / 488.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.719e-05/0.1383, allocations: 28 kB / 488.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.989e-05/0.1384, allocations: 111.5 kB / 488.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.1385, allocations: 145.3 kB / 489 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005501/0.1391, allocations: 0.6975 MB / 489.7 MB, free: 13.07 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1391, allocations: 3.938 kB / 489.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1391, allocations: 0 / 489.7 MB, free: 13.06 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1391, allocations: 0 / 489.7 MB, free: 13.06 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.001432/0.1406, allocations: 0.9116 MB / 490.6 MB, free: 12.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.1406, allocations: 11.97 kB / 490.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001199/0.1407, allocations: 102.5 kB / 490.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000119/0.1409, allocations: 83.06 kB / 490.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006558/0.1415, allocations: 484.4 kB / 491.3 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.707e-05/0.1416, allocations: 45.31 kB / 491.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.214e-05/0.1417, allocations: 60 kB / 491.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009767/0.1427, allocations: 0.5989 MB / 492 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.1427, allocations: 0 / 492 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.967e-05/0.1427, allocations: 24 kB / 492 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.1428, allocations: 16 kB / 492 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008869/0.1437, allocations: 441 kB / 492.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003522/0.1472, allocations: 2.187 MB / 494.6 MB, free: 7.906 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001208/0.1484, allocations: 0.6143 MB / 495.3 MB, free: 7.246 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.1485, allocations: 0 / 495.3 MB, free: 7.246 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.1485, allocations: 38.56 kB / 495.3 MB, free: 7.199 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.613e-06/0.1485, allocations: 4 kB / 495.3 MB, free: 7.195 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002469/0.151, allocations: 1.189 MB / 496.5 MB, free: 5.93 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.1511, allocations: 59.41 kB / 496.6 MB, free: 5.859 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007152/0.1518, allocations: 0.5105 MB / 497.1 MB, free: 5.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.067e-05/0.1519, allocations: 33.7 kB / 497.1 MB, free: 5.301 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000257/0.1521, allocations: 344.1 kB / 497.4 MB, free: 4.957 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.1522, allocations: 122.3 kB / 497.6 MB, free: 4.836 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.841e-05/0.1523, allocations: 8 kB / 497.6 MB, free: 4.828 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1524, allocations: 366.7 kB / 497.9 MB, free: 4.461 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003043/0.1527, allocations: 148.8 kB / 498.1 MB, free: 4.316 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003677/0.1531, allocations: 232.8 kB / 498.3 MB, free: 4.059 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003434/0.1535, allocations: 172.8 kB / 498.5 MB, free: 3.891 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1535, allocations: 0 / 498.5 MB, free: 3.891 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009381/0.1544, allocations: 0.4933 MB / 499 MB, free: 3.387 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003592/0.1548, allocations: 0.8731 MB / 499.8 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.1548, allocations: 0 / 499.8 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001694/0.155, allocations: 24.8 kB / 499.8 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000433/0.1554, allocations: 115.8 kB / 500 MB, free: 2.305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009957/0.1564, allocations: 1.292 MB / 0.4895 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003135/0.1568, allocations: 36.22 kB / 0.4895 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.1568, allocations: 16 kB / 0.4896 GB, free: 0.8281 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.218e-06/0.1568, allocations: 4 kB / 0.4896 GB, free: 0.8242 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00064/0.1575, allocations: 364.3 kB / 0.4899 GB, free: 476 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-06/0.1575, allocations: 0 / 0.4899 GB, free: 476 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.542e-05/0.1576, allocations: 28.84 kB / 0.4899 GB, free: 444 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003396/0.1579, allocations: 87.89 kB / 0.49 GB, free: 356 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008279/0.1588, allocations: 1.292 MB / 0.4913 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002495/0.159, allocations: 24.17 kB / 0.4913 GB, free: 14.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.1591, allocations: 16 kB / 0.4913 GB, free: 14.89 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 (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.0003315/0.1594, allocations: 261 kB / 0.4916 GB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.029e-05/0.1595, allocations: 51.34 kB / 0.4916 GB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.556e-05/0.1596, allocations: 61.28 kB / 0.4917 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.1596, allocations: 4 kB / 0.4917 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.1596, allocations: 3.953 kB / 0.4917 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1596, allocations: 0 / 0.4917 GB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/0.1613, allocations: 1.096 MB / 0.4928 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.1613, allocations: 0 / 0.4928 GB, free: 13.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003484/0.1617, allocations: 79.95 kB / 0.4928 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.115e-05/0.1618, allocations: 20.86 kB / 0.4928 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.1618, allocations: 8 kB / 0.4929 GB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009145/0.1627, allocations: 1.295 MB / 0.4941 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1628, allocations: 0 / 0.4941 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.164, allocations: 0.6969 MB / 0.4948 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.1641, allocations: 128.4 kB / 0.4949 GB, free: 10.92 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.418e-05/0.1642, allocations: 11.94 kB / 0.4949 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002814/0.1645, allocations: 31.97 kB / 0.495 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.9e-05/0.1646, allocations: 31.92 kB / 0.495 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/0.1646, allocations: 8 kB / 0.495 GB, free: 10.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004753/0.1651, allocations: 362.9 kB / 0.4953 GB, free: 10.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1651, allocations: 0 / 0.4953 GB, free: 10.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007462/0.1658, allocations: 176 kB / 0.4955 GB, free: 10.32 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 (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.001499/0.1673, allocations: 1.37 MB / 0.4969 GB, free: 8.906 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001387/0.1687, allocations: 0.7635 MB / 0.4976 GB, free: 8.117 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.1688, allocations: 0 / 0.4976 GB, free: 8.117 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004509/0.1692, allocations: 286.8 kB / 0.4979 GB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005957/0.1698, allocations: 88.83 kB / 0.498 GB, free: 7.742 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006003/0.1758, allocations: 4.962 MB / 0.5028 GB, free: 2.676 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000483/0.1764, allocations: 0.9058 MB / 0.5037 GB, free: 1.738 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002774/0.1767, allocations: 68.25 kB / 0.5038 GB, free: 1.672 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002987/0.177, allocations: 227.4 kB / 0.504 GB, free: 1.449 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.177, allocations: 0 / 0.504 GB, free: 1.449 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2569/0.4339, allocations: 10.26 MB / 0.514 GB, free: 39.11 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001777/0.4341, allocations: 208.9 kB / 0.5142 GB, free: 38.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/2.401, allocations: 0 / 0.5142 GB, free: 38.88 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_DCPM_SpeedControlled.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.DCPM_SpeedControlled.pipe 2>&1)