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.0008642/0.0008643, allocations: 95.84 kB / 17.35 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 211.4 kB / 18.29 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.7 MB / 246.8 MB, free: 9.469 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1909/0.1909, allocations: 46.18 MB / 345.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003268/0.0003267, allocations: 8 kB / 419.6 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1034, allocations: 63.56 MB / 483.2 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_SpeedControlled): time 0.004686/0.1081, allocations: 4.136 MB / 487.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002687/0.1108, allocations: 1.597 MB / 488.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006235/0.1115, allocations: 15.94 kB / 488.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008121/0.1123, allocations: 266.6 kB / 489.2 MB, free: 14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005441/0.1129, allocations: 131 kB / 489.3 MB, free: 13.87 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005393/0.1134, allocations: 235.7 kB / 489.5 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009601/0.1144, allocations: 0.7796 MB / 490.3 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005561/0.115, allocations: 361.9 kB / 490.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004107/0.1154, allocations: 230.7 kB / 490.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003714/0.1158, allocations: 278.3 kB / 491.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.504e-05/0.1159, allocations: 32 kB / 491.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.315e-05/0.116, allocations: 32 kB / 491.2 MB, free: 11.92 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.866e-05/0.1161, allocations: 107.4 kB / 491.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002938/0.1164, allocations: 339.7 kB / 491.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006587/0.117, allocations: 0.8327 MB / 492.5 MB, free: 10.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.117, allocations: 4 kB / 492.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.993e-06/0.117, allocations: 4 kB / 492.5 MB, free: 10.63 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.319e-05/0.1171, allocations: 0 / 492.5 MB, free: 10.63 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.001523/0.1186, allocations: 0.9078 MB / 493.4 MB, free: 9.668 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.1187, allocations: 12.88 kB / 493.4 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001435/0.1188, allocations: 98.7 kB / 493.5 MB, free: 9.551 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.119, allocations: 84 kB / 493.6 MB, free: 9.469 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000667/0.1196, allocations: 497.4 kB / 494.1 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.735e-05/0.1197, allocations: 45.69 kB / 494.1 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.069e-05/0.1198, allocations: 68.22 kB / 494.2 MB, free: 8.836 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.1208, allocations: 0.6107 MB / 494.8 MB, free: 8.203 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.1209, allocations: 0 / 494.8 MB, free: 8.203 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.994e-05/0.1209, allocations: 31.98 kB / 494.8 MB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.121, allocations: 12 kB / 494.9 MB, free: 8.16 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009067/0.1219, allocations: 457 kB / 495.3 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003056/0.1249, allocations: 2.171 MB / 497.5 MB, free: 5.445 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.1261, allocations: 0.618 MB / 498.1 MB, free: 4.781 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003434/0.1264, allocations: 184.8 kB / 498.3 MB, free: 4.598 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.672e-05/0.1265, allocations: 4 kB / 498.3 MB, free: 4.594 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/0.1265, allocations: 38.56 kB / 498.3 MB, free: 4.547 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 1.462e-06/0.1265, allocations: 0 / 498.3 MB, free: 4.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002234/0.1288, allocations: 1.203 MB / 499.5 MB, free: 3.266 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.1288, allocations: 55.41 kB / 499.6 MB, free: 3.199 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005979/0.1294, allocations: 0.5107 MB / 0.4884 GB, free: 2.684 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.898e-05/0.1294, allocations: 33.7 kB / 0.4884 GB, free: 2.645 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000223/0.1297, allocations: 348 kB / 0.4887 GB, free: 2.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.181e-05/0.1298, allocations: 118.3 kB / 0.4888 GB, free: 2.18 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.982e-05/0.1298, allocations: 45.64 kB / 0.4889 GB, free: 2.129 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.13, allocations: 370.8 kB / 0.4892 GB, free: 1.758 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003258/0.1303, allocations: 144.8 kB / 0.4894 GB, free: 1.617 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003657/0.1307, allocations: 240.8 kB / 0.4896 GB, free: 1.348 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006746/0.1314, allocations: 391.9 kB / 0.49 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1314, allocations: 4 kB / 0.49 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009059/0.1323, allocations: 0.4935 MB / 0.4905 GB, free: 436 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.927e-05/0.1324, allocations: 156.8 kB / 0.4906 GB, free: 244 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.176e-06/0.1324, allocations: 7.938 kB / 0.4906 GB, free: 236 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001287/0.1325, allocations: 24.84 kB / 0.4906 GB, free: 208 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004007/0.133, allocations: 115.8 kB / 0.4908 GB, free: 92 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008989/0.1339, allocations: 1.281 MB / 0.492 GB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002716/0.1341, allocations: 28.05 kB / 0.492 GB, free: 14.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.716e-05/0.1342, allocations: 16 kB / 0.4921 GB, free: 14.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.1342, allocations: 4 kB / 0.4921 GB, free: 14.63 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006334/0.1348, allocations: 364.3 kB / 0.4924 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.1349, allocations: 4 kB / 0.4924 GB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.802e-05/0.1349, allocations: 24.84 kB / 0.4924 GB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003447/0.1353, allocations: 96.17 kB / 0.4925 GB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008052/0.1361, allocations: 1.284 MB / 0.4938 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002164/0.1363, allocations: 20.14 kB / 0.4938 GB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.1364, allocations: 15.98 kB / 0.4938 GB, free: 12.69 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.0002473/0.1366, allocations: 269 kB / 0.4941 GB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.445e-05/0.1367, allocations: 55.28 kB / 0.4941 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.1368, allocations: 61.28 kB / 0.4942 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.1368, allocations: 4 kB / 0.4942 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1368, allocations: 0 / 0.4942 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.1369, allocations: 4 kB / 0.4942 GB, free: 12.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001598/0.1385, allocations: 1.084 MB / 0.4952 GB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.1385, allocations: 4.062 kB / 0.4952 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003469/0.1388, allocations: 75.89 kB / 0.4953 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.742e-05/0.1389, allocations: 24.84 kB / 0.4953 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.1389, allocations: 8 kB / 0.4954 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008213/0.1398, allocations: 1.288 MB / 0.4966 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.1398, allocations: 0 / 0.4966 GB, free: 9.617 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.1409, allocations: 0.6619 MB / 0.4973 GB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.141, allocations: 128.4 kB / 0.4974 GB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.021e-05/0.141, allocations: 11.98 kB / 0.4974 GB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002731/0.1413, allocations: 31.92 kB / 0.4974 GB, free: 8.742 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.146e-05/0.1414, allocations: 23.97 kB / 0.4974 GB, free: 8.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.1414, allocations: 12 kB / 0.4975 GB, free: 8.707 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004173/0.1418, allocations: 366.9 kB / 0.4978 GB, free: 8.352 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1419, allocations: 0 / 0.4978 GB, free: 8.352 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005981/0.1425, allocations: 179.9 kB / 0.498 GB, free: 8.176 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.001347/0.1438, allocations: 1.223 MB / 0.4992 GB, free: 6.914 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.1451, allocations: 0.768 MB / 0.4999 GB, free: 6.121 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1451, allocations: 0 / 0.4999 GB, free: 6.121 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004359/0.1456, allocations: 282.9 kB / 0.5002 GB, free: 5.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000676/0.1462, allocations: 100.5 kB / 0.5003 GB, free: 5.734 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007218/0.1535, allocations: 5.556 MB / 0.5057 GB, free: 8 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1833/0.3368, allocations: 0.8876 MB / 0.5066 GB, free: 39.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003711/0.3372, allocations: 66.83 kB / 0.5066 GB, free: 39.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.3375, allocations: 225.9 kB / 0.5069 GB, free: 39.61 MB / 382.1 MB Notification: Performance of SimCode: time 1.222e-06/0.3375, allocations: 0 / 0.5069 GB, free: 39.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02987/0.3674, allocations: 10.31 MB / 0.5169 GB, free: 37.87 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001646/0.3676, allocations: 238.9 kB / 0.5172 GB, free: 37.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.237, allocations: 6.484 kB / 0.5172 GB, free: 37.61 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)