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.001194/0.001194, allocations: 95.55 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 203.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2155/0.2155, allocations: 45.91 MB / 344 MB, free: 12.08 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002691/0.0002692, allocations: 8 kB / 418.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1252, allocations: 63.46 MB / 481.5 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Machines.DCPM_CurrentControlled): time 0.003951/0.1292, allocations: 3.332 MB / 484.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002127/0.1314, allocations: 1.399 MB / 486.2 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003084/0.1317, allocations: 8 kB / 486.3 MB, free: 500 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004799/0.1322, allocations: 210.8 kB / 486.5 MB, free: 288 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000266/0.1325, allocations: 147.6 kB / 486.6 MB, free: 140 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003473/0.1328, allocations: 127.8 kB / 486.7 MB, free: 12 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005395/0.1334, allocations: 411.8 kB / 487.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003116/0.1337, allocations: 195.3 kB / 487.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002681/0.134, allocations: 179.2 kB / 487.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002923/0.1343, allocations: 210.8 kB / 487.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.898e-05/0.1343, allocations: 28 kB / 487.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.624e-05/0.1344, allocations: 24 kB / 487.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.989e-05/0.1345, allocations: 83.67 kB / 487.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.216e-05/0.1346, allocations: 129.4 kB / 488 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004622/0.135, allocations: 0.53 MB / 488.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.1351, allocations: 0 / 488.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1351, allocations: 0 / 488.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.1351, allocations: 0 / 488.5 MB, free: 14.24 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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.001158/0.1362, allocations: 0.7519 MB / 489.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.1363, allocations: 8.031 kB / 489.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.302e-05/0.1364, allocations: 90.45 kB / 489.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.122e-05/0.1365, allocations: 59.25 kB / 489.4 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004961/0.137, allocations: 402.5 kB / 489.8 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.703e-05/0.137, allocations: 37 kB / 489.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.145e-05/0.1371, allocations: 48 kB / 489.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007615/0.1379, allocations: 447 kB / 490.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.1379, allocations: 7.844 kB / 490.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.257e-05/0.138, allocations: 23.98 kB / 490.3 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.491e-05/0.138, allocations: 12 kB / 490.4 MB, free: 12.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005661/0.1386, allocations: 311.8 kB / 490.7 MB, free: 11.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002327/0.1409, allocations: 1.693 MB / 492.4 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008635/0.1418, allocations: 425.8 kB / 492.8 MB, free: 9.73 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.1418, allocations: 4 kB / 492.8 MB, free: 9.727 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.1418, allocations: 34.56 kB / 492.8 MB, free: 9.684 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.893e-06/0.1418, allocations: 0 / 492.8 MB, free: 9.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=25): time 0.001619/0.1435, allocations: 0.9195 MB / 493.7 MB, free: 8.691 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.986e-05/0.1435, allocations: 63.36 kB / 493.8 MB, free: 8.617 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000416/0.1439, allocations: 385.7 kB / 494.2 MB, free: 8.234 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.144, allocations: 29.7 kB / 494.2 MB, free: 8.199 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001841/0.1442, allocations: 283.8 kB / 494.5 MB, free: 7.918 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.259e-05/0.1442, allocations: 82.72 kB / 494.6 MB, free: 7.836 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.578e-05/0.1443, allocations: 8 kB / 494.6 MB, free: 7.828 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1444, allocations: 350.7 kB / 494.9 MB, free: 7.477 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001931/0.1446, allocations: 99.95 kB / 495 MB, free: 7.379 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.1449, allocations: 151.4 kB / 495.1 MB, free: 7.207 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000226/0.1451, allocations: 115.9 kB / 495.3 MB, free: 7.094 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1451, allocations: 0 / 495.3 MB, free: 7.094 MB / 366.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0005915/0.1457, allocations: 366.8 kB / 495.6 MB, free: 6.727 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00028/0.146, allocations: 0.6993 MB / 496.3 MB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.146, allocations: 4 kB / 496.3 MB, free: 5.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001359/0.1461, allocations: 24.84 kB / 496.3 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.1464, allocations: 75.91 kB / 496.4 MB, free: 5.867 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009165/0.1474, allocations: 1.292 MB / 497.7 MB, free: 4.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001808/0.1475, allocations: 15.98 kB / 497.7 MB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.1476, allocations: 12 kB / 497.7 MB, free: 4.414 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.24e-06/0.1476, allocations: 4 kB / 497.7 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004504/0.148, allocations: 264.9 kB / 498 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.1481, allocations: 4 kB / 498 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.673e-05/0.1481, allocations: 24.84 kB / 498 MB, free: 4.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002368/0.1484, allocations: 68 kB / 498.1 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009591/0.1493, allocations: 1.3 MB / 499.4 MB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000226/0.1496, allocations: 8 kB / 499.4 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.854e-05/0.1496, allocations: 12.25 kB / 499.4 MB, free: 2.602 MB / 366.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 (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.000332/0.15, allocations: 249 kB / 499.7 MB, free: 2.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.38e-05/0.1501, allocations: 43.47 kB / 499.7 MB, free: 2.305 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.854e-05/0.1502, allocations: 43.52 kB / 499.7 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1502, allocations: 0 / 499.7 MB, free: 2.258 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.1502, allocations: 4 kB / 499.7 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1502, allocations: 0 / 499.7 MB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.1514, allocations: 0.8484 MB / 0.4889 GB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1514, allocations: 12 kB / 0.4889 GB, free: 1.328 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002498/0.1516, allocations: 47.97 kB / 0.4889 GB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-05/0.1517, allocations: 20.86 kB / 0.4889 GB, free: 1.258 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.1517, allocations: 4 kB / 0.4889 GB, free: 1.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008525/0.1526, allocations: 1.295 MB / 0.4902 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.1526, allocations: 4.031 kB / 0.4902 GB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007366/0.1534, allocations: 0.5239 MB / 0.4907 GB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.757e-05/0.1535, allocations: 124.8 kB / 0.4908 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/0.1535, allocations: 15.94 kB / 0.4909 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.1537, allocations: 19.98 kB / 0.4909 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.48e-05/0.1538, allocations: 15.98 kB / 0.4909 GB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.1538, allocations: 15.98 kB / 0.4909 GB, free: 15.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002966/0.1541, allocations: 271.2 kB / 0.4912 GB, free: 14.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.363e-06/0.1541, allocations: 0 / 0.4912 GB, free: 14.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005505/0.1547, allocations: 147.9 kB / 0.4913 GB, free: 14.64 MB / 382.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 (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.001056/0.1558, allocations: 1.195 MB / 0.4925 GB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009688/0.1567, allocations: 0.6042 MB / 0.4931 GB, free: 12.78 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1567, allocations: 0 / 0.4931 GB, free: 12.78 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003355/0.1571, allocations: 230.7 kB / 0.4933 GB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004646/0.1576, allocations: 67.81 kB / 0.4933 GB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004213/0.1618, allocations: 3.75 MB / 0.497 GB, free: 8.625 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.1622, allocations: 0.8542 MB / 0.4978 GB, free: 7.742 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000182/0.1624, allocations: 47.25 kB / 0.4979 GB, free: 7.699 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002035/0.1626, allocations: 171.3 kB / 0.4981 GB, free: 7.531 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1626, allocations: 0 / 0.4981 GB, free: 7.531 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02291/0.1855, allocations: 7.659 MB / 0.5055 GB, free: 72 kB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.2874/0.4729, allocations: 220.5 kB / 0.5057 GB, free: 46.74 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.895/2.368, allocations: 0 / 0.5057 GB, free: 46.74 MB / 382.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/linux/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)