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.00146/0.00146, allocations: 116.9 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001755/0.001755, allocations: 205.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2043/0.2043, allocations: 46.11 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002313/0.002313, allocations: 76.66 kB / 417.2 MB, free: 19.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.119, allocations: 62.43 MB / 479.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.005454/0.1245, allocations: 4.568 MB / 484.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00246/0.127, allocations: 1.62 MB / 485.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006512/0.1277, allocations: 19.88 kB / 485.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008929/0.1286, allocations: 266.7 kB / 486.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004652/0.1291, allocations: 127 kB / 486.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005038/0.1296, allocations: 231.8 kB / 486.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000734/0.1303, allocations: 0.8381 MB / 487.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004926/0.1308, allocations: 402.2 kB / 487.6 MB, free: 13.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003528/0.1312, allocations: 298.8 kB / 487.9 MB, free: 13.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003023/0.1315, allocations: 342.2 kB / 488.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.649e-05/0.1316, allocations: 80 kB / 488.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.983e-05/0.1317, allocations: 80 kB / 488.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.1318, allocations: 179.3 kB / 488.6 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002717/0.1321, allocations: 366 kB / 489 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007041/0.1328, allocations: 0.911 MB / 489.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1328, allocations: 0 / 489.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1328, allocations: 0 / 489.9 MB, free: 11.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.1329, allocations: 0 / 489.9 MB, free: 11.19 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.001471/0.1343, allocations: 1.017 MB / 490.9 MB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.1344, allocations: 8.031 kB / 490.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001057/0.1345, allocations: 106.6 kB / 491 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.1346, allocations: 83.91 kB / 491.1 MB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005759/0.1352, allocations: 493.5 kB / 491.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.434e-05/0.1352, allocations: 45.69 kB / 491.6 MB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.192e-05/0.1353, allocations: 64.38 kB / 491.7 MB, free: 9.289 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009958/0.1363, allocations: 0.5951 MB / 492.3 MB, free: 8.672 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.1364, allocations: 7.906 kB / 492.3 MB, free: 8.664 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.735e-05/0.1364, allocations: 24 kB / 492.3 MB, free: 8.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.1364, allocations: 20 kB / 492.3 MB, free: 8.621 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008153/0.1373, allocations: 420.9 kB / 492.7 MB, free: 8.211 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002825/0.1401, allocations: 2.164 MB / 494.9 MB, free: 5.949 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.1412, allocations: 0.5516 MB / 495.4 MB, free: 5.352 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003147/0.1415, allocations: 168.8 kB / 495.6 MB, free: 5.184 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.38e-05/0.1415, allocations: 8 kB / 495.6 MB, free: 5.176 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/0.1416, allocations: 42.5 kB / 495.6 MB, free: 5.125 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.643e-06/0.1416, allocations: 0 / 495.6 MB, free: 5.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002071/0.1436, allocations: 1.142 MB / 496.8 MB, free: 3.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.1437, allocations: 55.41 kB / 496.8 MB, free: 3.844 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005625/0.1443, allocations: 0.5145 MB / 497.4 MB, free: 3.324 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/0.1443, allocations: 33.64 kB / 497.4 MB, free: 3.285 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002079/0.1445, allocations: 344.1 kB / 497.7 MB, free: 2.941 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.562e-05/0.1446, allocations: 126.2 kB / 497.9 MB, free: 2.816 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.1447, allocations: 70.14 kB / 497.9 MB, free: 2.742 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1449, allocations: 366.8 kB / 498.3 MB, free: 2.375 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003094/0.1452, allocations: 146.5 kB / 498.4 MB, free: 2.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003472/0.1455, allocations: 224.8 kB / 498.6 MB, free: 1.977 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006203/0.1462, allocations: 363.9 kB / 499 MB, free: 1.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1462, allocations: 0 / 499 MB, free: 1.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008602/0.147, allocations: 481.2 kB / 499.5 MB, free: 1.109 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.1471, allocations: 4 kB / 499.5 MB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1471, allocations: 4.281 kB / 499.5 MB, free: 1.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001326/0.1472, allocations: 32.78 kB / 499.5 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004133/0.1477, allocations: 95.88 kB / 499.6 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009611/0.1486, allocations: 1.38 MB / 0.4892 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.1489, allocations: 19.98 kB / 0.4893 GB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.888e-05/0.1489, allocations: 24.08 kB / 0.4893 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003589/0.1493, allocations: 253 kB / 0.4895 GB, free: 15.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002574/0.1496, allocations: 202.9 kB / 0.4897 GB, free: 14.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004611/0.15, allocations: 336 kB / 0.49 GB, free: 14.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.994e-06/0.15, allocations: 0 / 0.49 GB, free: 14.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=52) (initialization_lambda0): time 0.0006907/0.1507, allocations: 450 kB / 0.4905 GB, free: 14.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.446e-06/0.1508, allocations: 4 kB / 0.4905 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1508, allocations: 7.984 kB / 0.4905 GB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.629e-05/0.1509, allocations: 28.78 kB / 0.4905 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/0.1512, allocations: 92.2 kB / 0.4906 GB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008402/0.1521, allocations: 1.379 MB / 0.4919 GB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.1523, allocations: 15.94 kB / 0.492 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.212e-05/0.1524, allocations: 16 kB / 0.492 GB, free: 12.43 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.0001261/0.1525, allocations: 208.1 kB / 0.4922 GB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.183e-05/0.1526, allocations: 51.34 kB / 0.4922 GB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001028/0.1527, allocations: 69.28 kB / 0.4923 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1527, allocations: 4 kB / 0.4923 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.1527, allocations: 3.938 kB / 0.4923 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.1527, allocations: 3.984 kB / 0.4923 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/0.1543, allocations: 1.061 MB / 0.4933 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1543, allocations: 4 kB / 0.4933 GB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003594/0.1547, allocations: 71.89 kB / 0.4934 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.921e-05/0.1548, allocations: 24.92 kB / 0.4934 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.575e-05/0.1548, allocations: 7.984 kB / 0.4934 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008424/0.1557, allocations: 1.378 MB / 0.4948 GB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1557, allocations: 0 / 0.4948 GB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.1567, allocations: 0.6187 MB / 0.4954 GB, free: 8.695 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.1568, allocations: 140.3 kB / 0.4955 GB, free: 8.539 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.755e-05/0.1569, allocations: 8 kB / 0.4955 GB, free: 8.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002801/0.1572, allocations: 27.97 kB / 0.4955 GB, free: 8.504 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.997e-05/0.1572, allocations: 23.97 kB / 0.4956 GB, free: 8.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.313e-05/0.1573, allocations: 12 kB / 0.4956 GB, free: 8.469 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003928/0.1577, allocations: 366.9 kB / 0.4959 GB, free: 8.113 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1577, allocations: 0 / 0.4959 GB, free: 8.113 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000607/0.1583, allocations: 176 kB / 0.4961 GB, free: 7.941 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.00127/0.1596, allocations: 1.178 MB / 0.4973 GB, free: 6.727 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001333/0.1609, allocations: 0.7628 MB / 0.498 GB, free: 5.938 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1609, allocations: 0 / 0.498 GB, free: 5.938 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000424/0.1614, allocations: 279.5 kB / 0.4983 GB, free: 5.652 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006764/0.1621, allocations: 108.1 kB / 0.4984 GB, free: 5.551 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1717/0.3338, allocations: 5.396 MB / 0.5036 GB, free: 41.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005254/0.3343, allocations: 0.8876 MB / 0.5045 GB, free: 40.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003444/0.3347, allocations: 60.09 kB / 0.5046 GB, free: 40.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002791/0.335, allocations: 228.3 kB / 0.5048 GB, free: 40.86 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.335, allocations: 0.6875 kB / 0.5048 GB, free: 40.86 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02759/0.3626, allocations: 10.75 MB / 0.5153 GB, free: 38.83 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001339/0.3627, allocations: 230.5 kB / 0.5155 GB, free: 38.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.997/2.36, allocations: 0 / 0.5155 GB, free: 38.58 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)