Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 105.2 kB / 17.06 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001/0.001, allocations: 195 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1737/0.1737, allocations: 37.99 MB / 309.2 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 71.89 kB / 431.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1163, allocations: 55.24 MB / 487.1 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006343/0.1227, allocations: 4.799 MB / 491.9 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002175/0.1249, allocations: 1.527 MB / 493.4 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002086/0.1251, allocations: 15.88 kB / 493.4 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003678/0.1255, allocations: 111.1 kB / 493.6 MB, free: 1.871 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005916/0.1261, allocations: 270.4 kB / 493.8 MB, free: 1.605 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003157/0.1265, allocations: 143.7 kB / 494 MB, free: 1.465 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006847/0.1272, allocations: 0.5799 MB / 494.5 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000439/0.1276, allocations: 394.6 kB / 494.9 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002836/0.1279, allocations: 251.1 kB / 495.2 MB, free: 256 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003466/0.1283, allocations: 231 kB / 495.4 MB, free: 24 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.011e-05/0.1283, allocations: 40.05 kB / 495.4 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.088e-05/0.1284, allocations: 40 kB / 495.5 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001219/0.1286, allocations: 127.6 kB / 495.6 MB, free: 15.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001947/0.1288, allocations: 219 kB / 495.8 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004889/0.1293, allocations: 0.5023 MB / 496.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1293, allocations: 0 / 496.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1293, allocations: 0 / 496.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.684e-06/0.1293, allocations: 0 / 496.3 MB, free: 15.1 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001237/0.1305, allocations: 0.707 MB / 497 MB, free: 14.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1306, allocations: 15.83 kB / 497 MB, free: 14.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.524e-05/0.1307, allocations: 48.38 kB / 497.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006083/0.1313, allocations: 412.2 kB / 497.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.502e-05/0.1314, allocations: 66.64 kB / 497.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.252e-05/0.1315, allocations: 35.91 kB / 497.6 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006674/0.1321, allocations: 436 kB / 498 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.764e-05/0.1322, allocations: 0 / 498 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.1322, allocations: 16 kB / 498 MB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.1322, allocations: 8 kB / 498 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004799/0.1327, allocations: 270 kB / 498.3 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.1347, allocations: 1.845 MB / 0.4884 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003496/0.1351, allocations: 179.6 kB / 0.4886 GB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001561/0.1353, allocations: 78.67 kB / 0.4887 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.1353, allocations: 0 / 0.4887 GB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.262e-05/0.1353, allocations: 34.56 kB / 0.4887 GB, free: 10.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.613e-06/0.1354, allocations: 0 / 0.4887 GB, free: 10.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.00134/0.1367, allocations: 0.7137 MB / 0.4894 GB, free: 9.922 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.84e-05/0.1368, allocations: 102.8 kB / 0.4895 GB, free: 9.797 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.1371, allocations: 316.5 kB / 0.4898 GB, free: 9.473 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.1371, allocations: 29.7 kB / 0.4898 GB, free: 9.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.1373, allocations: 251.5 kB / 0.4901 GB, free: 9.188 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.887e-05/0.1373, allocations: 70.95 kB / 0.4901 GB, free: 9.117 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.614e-05/0.1374, allocations: 73.86 kB / 0.4902 GB, free: 9.039 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1376, allocations: 342.9 kB / 0.4905 GB, free: 8.695 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.1377, allocations: 72.61 kB / 0.4906 GB, free: 8.625 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.138, allocations: 201.5 kB / 0.4908 GB, free: 8.371 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000388/0.1384, allocations: 292 kB / 0.4911 GB, free: 8.027 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1384, allocations: 0 / 0.4911 GB, free: 8.027 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005083/0.1389, allocations: 324.7 kB / 0.4914 GB, free: 7.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.306e-05/0.1389, allocations: 11.94 kB / 0.4914 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.976e-06/0.1389, allocations: 4.562 kB / 0.4914 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.139, allocations: 4 kB / 0.4914 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002828/0.1393, allocations: 83.89 kB / 0.4915 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.208e-05/0.1393, allocations: 11.94 kB / 0.4915 GB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001688/0.1394, allocations: 8 kB / 0.4915 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.1395, allocations: 16 kB / 0.4915 GB, free: 7.566 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001724/0.1397, allocations: 181.7 kB / 0.4917 GB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.03e-05/0.1397, allocations: 35.56 kB / 0.4917 GB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003846/0.1401, allocations: 200.6 kB / 0.4919 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1401, allocations: 0 / 0.4919 GB, free: 7.137 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.215e-06/0.1401, allocations: 4 kB / 0.4919 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.1402, allocations: 3.984 kB / 0.4919 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008382/0.141, allocations: 0.6123 MB / 0.4925 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.141, allocations: 0 / 0.4925 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002254/0.1412, allocations: 35.98 kB / 0.4925 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1413, allocations: 4.031 kB / 0.4926 GB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.1413, allocations: 8 kB / 0.4926 GB, free: 6.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.528e-06/0.1413, allocations: 7.938 kB / 0.4926 GB, free: 6.402 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1413, allocations: 0 / 0.4926 GB, free: 6.402 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005548/0.1419, allocations: 455.8 kB / 0.493 GB, free: 5.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.279e-05/0.1419, allocations: 104.8 kB / 0.4931 GB, free: 5.812 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.337e-05/0.142, allocations: 8 kB / 0.4931 GB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001786/0.1422, allocations: 4 kB / 0.4931 GB, free: 5.801 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.492e-05/0.1422, allocations: 15.92 kB / 0.4931 GB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.1423, allocations: 11.98 kB / 0.4931 GB, free: 5.773 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001992/0.1425, allocations: 223 kB / 0.4934 GB, free: 5.559 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1425, allocations: 0 / 0.4934 GB, free: 5.559 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003783/0.1429, allocations: 79.94 kB / 0.4934 GB, free: 5.48 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001132/0.143, allocations: 95.25 kB / 0.4935 GB, free: 5.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003957/0.1434, allocations: 200.5 kB / 0.4937 GB, free: 5.184 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1434, allocations: 0 / 0.4937 GB, free: 5.184 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001558/0.1436, allocations: 88.03 kB / 0.4938 GB, free: 5.098 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006356/0.1442, allocations: 94.66 kB / 0.4939 GB, free: 5.008 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.1458, allocations: 0.8892 MB / 0.4948 GB, free: 4.082 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00045/0.1462, allocations: 0.8107 MB / 0.4955 GB, free: 3.242 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001603/0.1464, allocations: 43.27 kB / 0.4956 GB, free: 3.199 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.816e-05/0.1465, allocations: 31.38 kB / 0.4956 GB, free: 3.168 MB / 382.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1465, allocations: 0 / 0.4956 GB, free: 3.168 MB / 382.1 MB Notification: Performance of Templates: time 0.008312/0.1548, allocations: 3.531 MB / 0.4991 GB, free: 15.63 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)