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.0009841/0.0009842, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 246.8 MB, free: 10.56 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: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001692/0.001692, allocations: 76.06 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1181, allocations: 62.44 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.006405/0.1245, allocations: 4.548 MB / 484.7 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002727/0.1273, allocations: 1.651 MB / 486.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005851/0.1279, allocations: 15.94 kB / 486.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00092/0.1289, allocations: 306.1 kB / 486.6 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005604/0.1294, allocations: 158.5 kB / 486.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005547/0.13, allocations: 267.6 kB / 487.1 MB, free: 14.22 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007762/0.1308, allocations: 0.8381 MB / 487.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004688/0.1313, allocations: 390.2 kB / 488.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003315/0.1316, allocations: 306.8 kB / 488.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002972/0.1319, allocations: 342.3 kB / 488.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.095e-05/0.132, allocations: 80 kB / 489 MB, free: 12.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.48e-05/0.1321, allocations: 80 kB / 489.1 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.1323, allocations: 175.3 kB / 489.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002569/0.1325, allocations: 370 kB / 489.6 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006828/0.1332, allocations: 0.8993 MB / 490.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1332, allocations: 0 / 490.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1332, allocations: 0 / 490.5 MB, free: 10.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.1332, allocations: 0 / 490.5 MB, free: 10.75 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.00146/0.1347, allocations: 1.025 MB / 491.5 MB, free: 9.668 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.1348, allocations: 8.031 kB / 491.5 MB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.95e-05/0.1349, allocations: 102.7 kB / 491.6 MB, free: 9.551 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.135, allocations: 83.91 kB / 491.7 MB, free: 9.469 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005846/0.1356, allocations: 497.4 kB / 492.2 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.1356, allocations: 45.69 kB / 492.2 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.958e-05/0.1357, allocations: 60.38 kB / 492.3 MB, free: 8.844 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009346/0.1366, allocations: 0.599 MB / 492.9 MB, free: 8.223 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.1367, allocations: 11.89 kB / 492.9 MB, free: 8.211 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.633e-05/0.1367, allocations: 24 kB / 492.9 MB, free: 8.188 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.1367, allocations: 16 kB / 493 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008116/0.1376, allocations: 420.9 kB / 493.4 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002725/0.1403, allocations: 2.164 MB / 495.5 MB, free: 5.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.1414, allocations: 0.5555 MB / 496.1 MB, free: 4.898 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003187/0.1417, allocations: 171.4 kB / 496.2 MB, free: 4.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.447e-05/0.1418, allocations: 7.984 kB / 496.3 MB, free: 4.723 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.1418, allocations: 38.56 kB / 496.3 MB, free: 4.676 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.513e-06/0.1418, allocations: 0 / 496.3 MB, free: 4.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002144/0.1439, allocations: 1.142 MB / 497.4 MB, free: 3.461 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.386e-05/0.144, allocations: 55.41 kB / 497.5 MB, free: 3.395 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005495/0.1445, allocations: 0.5145 MB / 498 MB, free: 2.875 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.795e-05/0.1446, allocations: 33.7 kB / 498 MB, free: 2.836 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002145/0.1448, allocations: 348 kB / 498.4 MB, free: 2.488 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.447e-05/0.1449, allocations: 126.2 kB / 498.5 MB, free: 2.363 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.145, allocations: 70.14 kB / 498.6 MB, free: 2.289 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.1452, allocations: 366.8 kB / 498.9 MB, free: 1.922 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003087/0.1455, allocations: 142.5 kB / 499.1 MB, free: 1.781 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003356/0.1458, allocations: 224.9 kB / 499.3 MB, free: 1.527 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006395/0.1465, allocations: 367.8 kB / 499.6 MB, free: 1.137 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1465, allocations: 0 / 499.6 MB, free: 1.137 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008905/0.1474, allocations: 481.3 kB / 0.4884 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.1474, allocations: 4 kB / 0.4884 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.1474, allocations: 4 kB / 0.4884 GB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001337/0.1476, allocations: 24.84 kB / 0.4884 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004141/0.148, allocations: 104 kB / 0.4885 GB, free: 0.5195 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009709/0.149, allocations: 1.384 MB / 0.4899 GB, free: 15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.1492, allocations: 19.98 kB / 0.4899 GB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.1493, allocations: 16 kB / 0.4899 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003932/0.1497, allocations: 257 kB / 0.4902 GB, free: 14.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000257/0.1499, allocations: 207 kB / 0.4904 GB, free: 14.47 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004835/0.1504, allocations: 332 kB / 0.4907 GB, free: 14.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.105e-06/0.1504, allocations: 3.984 kB / 0.4907 GB, free: 14.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0007102/0.1512, allocations: 450.2 kB / 0.4911 GB, free: 13.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.1512, allocations: 4 kB / 0.4911 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.1512, allocations: 4 kB / 0.4911 GB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.921e-05/0.1513, allocations: 24.84 kB / 0.4911 GB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003589/0.1516, allocations: 95.83 kB / 0.4912 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009255/0.1526, allocations: 1.379 MB / 0.4926 GB, free: 12.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/0.1528, allocations: 16.09 kB / 0.4926 GB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.1528, allocations: 16 kB / 0.4926 GB, free: 11.98 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.0001304/0.153, allocations: 209.4 kB / 0.4928 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.102e-05/0.1531, allocations: 51.34 kB / 0.4929 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.1532, allocations: 65.22 kB / 0.4929 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.1532, allocations: 7.938 kB / 0.4929 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1532, allocations: 3.938 kB / 0.4929 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1532, allocations: 3.984 kB / 0.4929 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001571/0.1548, allocations: 1.059 MB / 0.494 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.1548, allocations: 4 kB / 0.494 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003344/0.1551, allocations: 67.91 kB / 0.494 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.546e-05/0.1552, allocations: 24.84 kB / 0.4941 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.536e-05/0.1553, allocations: 4 kB / 0.4941 GB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008579/0.1561, allocations: 1.39 MB / 0.4954 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.1561, allocations: 0 / 0.4954 GB, free: 8.887 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.1572, allocations: 0.6306 MB / 0.496 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.1573, allocations: 132.4 kB / 0.4962 GB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.557e-05/0.1574, allocations: 8 kB / 0.4962 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002672/0.1576, allocations: 23.97 kB / 0.4962 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.893e-05/0.1577, allocations: 27.91 kB / 0.4962 GB, free: 8.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.877e-05/0.1577, allocations: 16 kB / 0.4962 GB, free: 8.008 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004056/0.1582, allocations: 366.9 kB / 0.4966 GB, free: 7.652 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1582, allocations: 0 / 0.4966 GB, free: 7.652 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005818/0.1588, allocations: 176 kB / 0.4967 GB, free: 7.48 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.001243/0.16, allocations: 1.171 MB / 0.4979 GB, free: 6.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001386/0.1614, allocations: 0.7595 MB / 0.4986 GB, free: 5.484 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.1614, allocations: 0 / 0.4986 GB, free: 5.484 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004339/0.1619, allocations: 278.4 kB / 0.4989 GB, free: 5.199 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007069/0.1626, allocations: 105 kB / 0.499 GB, free: 5.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1692/0.3318, allocations: 5.149 MB / 0.504 GB, free: 40.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003702/0.3322, allocations: 0.8877 MB / 0.5049 GB, free: 40.15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003068/0.3325, allocations: 65.94 kB / 0.505 GB, free: 40.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002535/0.3328, allocations: 230.6 kB / 0.5052 GB, free: 40.14 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.3328, allocations: 0 / 0.5052 GB, free: 40.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04464/0.3774, allocations: 10.86 MB / 0.5158 GB, free: 37.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.829/9.207, allocations: 7.203 kB / 0.5158 GB, free: 37.96 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/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)