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.001117/0.001117, allocations: 106.8 kB / 17.33 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 209.8 kB / 18.27 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246.4 MB, free: 10.76 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2234/0.2234, allocations: 46.1 MB / 343.8 MB, free: 11.75 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 79.86 kB / 417.2 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1076, allocations: 62.44 MB / 479.6 MB, free: 8.844 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.005648/0.1133, allocations: 4.046 MB / 483.6 MB, free: 4.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002459/0.1158, allocations: 1.468 MB / 485.1 MB, free: 3.293 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004626/0.1163, allocations: 15.94 kB / 485.1 MB, free: 3.277 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008174/0.1172, allocations: 234.9 kB / 485.4 MB, free: 3.047 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004592/0.1177, allocations: 115.1 kB / 485.5 MB, free: 2.934 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004922/0.1182, allocations: 159.9 kB / 485.6 MB, free: 2.777 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00077/0.1189, allocations: 0.6272 MB / 486.2 MB, free: 2.148 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004513/0.1194, allocations: 280.2 kB / 486.5 MB, free: 1.871 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003796/0.1198, allocations: 239 kB / 486.8 MB, free: 1.637 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000336/0.1201, allocations: 262.7 kB / 487 MB, free: 1.379 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.663e-05/0.1202, allocations: 64 kB / 487.1 MB, free: 1.316 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001004/0.1203, allocations: 60 kB / 487.1 MB, free: 1.258 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.602e-05/0.1204, allocations: 135.5 kB / 487.3 MB, free: 1.125 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002406/0.1207, allocations: 286.5 kB / 487.5 MB, free: 0.8438 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006142/0.1213, allocations: 0.6891 MB / 488.2 MB, free: 156 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.1213, allocations: 3.938 kB / 488.2 MB, free: 152 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1213, allocations: 0 / 488.2 MB, free: 152 kB / 398.1 MB Notification: Performance of Transformations before backend: time 1.635e-05/0.1214, allocations: 0 / 488.2 MB, free: 152 kB / 398.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.001398/0.1228, allocations: 0.83 MB / 489.1 MB, free: 15.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.1228, allocations: 8.031 kB / 489.1 MB, free: 15.26 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.924e-05/0.1229, allocations: 86.66 kB / 489.2 MB, free: 15.17 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.123, allocations: 68.17 kB / 489.2 MB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005168/0.1236, allocations: 411.5 kB / 489.6 MB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.91e-05/0.1236, allocations: 33.38 kB / 489.7 MB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.918e-05/0.1237, allocations: 48.38 kB / 489.7 MB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007958/0.1245, allocations: 459.1 kB / 490.2 MB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.92e-05/0.1245, allocations: 7.906 kB / 490.2 MB, free: 14.11 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.285e-05/0.1246, allocations: 20 kB / 490.2 MB, free: 14.09 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.1246, allocations: 20 kB / 490.2 MB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006281/0.1252, allocations: 303.8 kB / 490.5 MB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002435/0.1277, allocations: 1.665 MB / 492.2 MB, free: 12.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008362/0.1285, allocations: 382.9 kB / 492.5 MB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.1288, allocations: 116.8 kB / 492.7 MB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.1288, allocations: 0 / 492.7 MB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.1288, allocations: 42.95 kB / 492.7 MB, free: 11.45 MB / 414.1 MB Notification: Performance of pre-optimization done (n=24): time 1.222e-06/0.1288, allocations: 4 kB / 492.7 MB, free: 11.45 MB / 414.1 MB Notification: Performance of matching and sorting (n=25): time 0.001655/0.1305, allocations: 0.8843 MB / 493.6 MB, free: 10.48 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.358e-05/0.1306, allocations: 55.41 kB / 493.6 MB, free: 10.42 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004271/0.131, allocations: 393.7 kB / 494 MB, free: 10.03 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.643e-05/0.131, allocations: 33.7 kB / 494.1 MB, free: 9.988 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.1312, allocations: 271.9 kB / 494.3 MB, free: 9.719 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.236e-05/0.1313, allocations: 94.64 kB / 494.4 MB, free: 9.625 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.1314, allocations: 57.69 kB / 494.5 MB, free: 9.562 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.1315, allocations: 346.8 kB / 494.8 MB, free: 9.215 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.1318, allocations: 104.6 kB / 494.9 MB, free: 9.109 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002351/0.132, allocations: 162.7 kB / 495.1 MB, free: 8.926 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004239/0.1324, allocations: 251.3 kB / 495.3 MB, free: 8.656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.1324, allocations: 4 kB / 495.3 MB, free: 8.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006269/0.1331, allocations: 357.6 kB / 495.7 MB, free: 8.293 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.1331, allocations: 6.5 kB / 495.7 MB, free: 8.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.1331, allocations: 0 / 495.7 MB, free: 8.289 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001426/0.1333, allocations: 36.98 kB / 495.7 MB, free: 8.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.1336, allocations: 67.91 kB / 495.8 MB, free: 8.184 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001025/0.1346, allocations: 1.38 MB / 497.2 MB, free: 6.664 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/0.1348, allocations: 15.97 kB / 497.2 MB, free: 6.648 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.217e-05/0.1349, allocations: 15.92 kB / 497.2 MB, free: 6.633 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002773/0.1351, allocations: 212.2 kB / 497.4 MB, free: 6.422 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000198/0.1354, allocations: 140.9 kB / 497.5 MB, free: 6.258 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003463/0.1357, allocations: 239.7 kB / 497.8 MB, free: 5.996 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.753e-06/0.1357, allocations: 3.938 kB / 497.8 MB, free: 5.992 MB / 414.1 MB Notification: Performance of matching and sorting (n=38) (initialization_lambda0): time 0.0005379/0.1363, allocations: 334.1 kB / 498.1 MB, free: 5.656 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.1363, allocations: 4 kB / 498.1 MB, free: 5.652 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.1363, allocations: 4 kB / 498.1 MB, free: 5.648 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.191e-05/0.1364, allocations: 28.78 kB / 498.1 MB, free: 5.617 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002547/0.1367, allocations: 72.16 kB / 498.2 MB, free: 5.547 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009082/0.1376, allocations: 1.378 MB / 499.6 MB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.1378, allocations: 8.031 kB / 499.6 MB, free: 4.023 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.1378, allocations: 16 kB / 499.6 MB, free: 4.008 MB / 414.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 (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.0001268/0.1379, allocations: 196.1 kB / 499.8 MB, free: 3.809 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.749e-05/0.138, allocations: 35.53 kB / 499.8 MB, free: 3.773 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.506e-05/0.1381, allocations: 47.58 kB / 499.9 MB, free: 3.719 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1381, allocations: 4 kB / 499.9 MB, free: 3.715 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1381, allocations: 3.984 kB / 499.9 MB, free: 3.711 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.1381, allocations: 3.984 kB / 499.9 MB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/0.1394, allocations: 0.8393 MB / 0.489 GB, free: 2.805 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.1394, allocations: 0 / 0.489 GB, free: 2.805 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002758/0.1397, allocations: 51.97 kB / 0.489 GB, free: 2.754 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.478e-05/0.1398, allocations: 28.78 kB / 0.4891 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.1398, allocations: 0 / 0.4891 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008874/0.1407, allocations: 1.39 MB / 0.4904 GB, free: 1.195 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/0.1407, allocations: 4.031 kB / 0.4904 GB, free: 1.191 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007103/0.1414, allocations: 481.4 kB / 0.4909 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.948e-05/0.1415, allocations: 120.7 kB / 0.491 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.966e-05/0.1416, allocations: 7.984 kB / 0.491 GB, free: 0.5508 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.1418, allocations: 8 kB / 0.491 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.718e-05/0.1419, allocations: 23.91 kB / 0.491 GB, free: 0.5195 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.1419, allocations: 8 kB / 0.4911 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002929/0.1422, allocations: 287.1 kB / 0.4913 GB, free: 236 kB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1422, allocations: 4 kB / 0.4913 GB, free: 232 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005541/0.1427, allocations: 140 kB / 0.4915 GB, free: 92 kB / 414.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 (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.000969/0.1437, allocations: 1.027 MB / 0.4925 GB, free: 15.03 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001005/0.1447, allocations: 0.6028 MB / 0.4931 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.1448, allocations: 0 / 0.4931 GB, free: 14.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003297/0.1451, allocations: 218.6 kB / 0.4933 GB, free: 14.17 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005856/0.1457, allocations: 83.95 kB / 0.4933 GB, free: 14.1 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005373/0.1511, allocations: 4.22 MB / 0.4975 GB, free: 9.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.1515, allocations: 0.8308 MB / 0.4983 GB, free: 8.871 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001861/0.1517, allocations: 43.27 kB / 0.4983 GB, free: 8.832 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002226/0.1519, allocations: 167.4 kB / 0.4985 GB, free: 8.668 MB / 430.1 MB Notification: Performance of SimCode: time 9.81e-07/0.1519, allocations: 0 / 0.4985 GB, free: 8.668 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02643/0.1784, allocations: 8.091 MB / 0.5064 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001881/0.1786, allocations: 240.3 kB / 0.5066 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.01/2.189, allocations: 0 / 0.5066 GB, free: 0.4922 MB / 430.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/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)