Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001569/0.001569, allocations: 186.3 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.045/2.045, allocations: 205.4 MB / 221.9 MB, free: 13.68 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001181/0.001181, allocations: 98.84 kB / 270.2 MB, free: 13.21 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2933/0.2933, allocations: 38.05 MB / 356.6 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004546/0.0004548, allocations: 12 kB / 422.7 MB, free: 26.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1071, allocations: 56.32 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.008008/0.1151, allocations: 4.618 MB / 483.7 MB, free: 13.39 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.003866/0.119, allocations: 1.603 MB / 485.3 MB, free: 11.79 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005356/0.1196, allocations: 27.81 kB / 485.3 MB, free: 11.76 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004809/0.1201, allocations: 111.3 kB / 485.4 MB, free: 11.65 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00117/0.1213, allocations: 263.1 kB / 485.6 MB, free: 11.39 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006596/0.122, allocations: 139.7 kB / 485.8 MB, free: 11.25 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009325/0.123, allocations: 359.2 kB / 486.1 MB, free: 10.9 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005751/0.1236, allocations: 280.5 kB / 486.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004487/0.124, allocations: 179.3 kB / 486.6 MB, free: 10.45 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003961/0.1244, allocations: 167.3 kB / 486.7 MB, free: 10.29 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 6.438e-05/0.1245, allocations: 20 kB / 486.8 MB, free: 10.27 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.944e-05/0.1246, allocations: 24 kB / 486.8 MB, free: 10.24 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001533/0.1248, allocations: 103.6 kB / 486.9 MB, free: 10.14 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002059/0.125, allocations: 105.5 kB / 487 MB, free: 10.03 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006148/0.1257, allocations: 387 kB / 487.4 MB, free: 9.652 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1257, allocations: 0 / 487.4 MB, free: 9.652 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1257, allocations: 3.938 kB / 487.4 MB, free: 9.648 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1257, allocations: 0 / 487.4 MB, free: 9.648 MB / 330.7 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.001683/0.1274, allocations: 0.6367 MB / 488 MB, free: 8.965 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.1275, allocations: 8.031 kB / 488 MB, free: 8.957 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.1276, allocations: 55.33 kB / 488.1 MB, free: 8.902 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009039/0.1285, allocations: 387 kB / 488.5 MB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/0.1287, allocations: 62.7 kB / 488.5 MB, free: 8.41 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.1288, allocations: 36 kB / 488.5 MB, free: 8.375 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.1299, allocations: 432.1 kB / 489 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.13, allocations: 0 / 489 MB, free: 7.914 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.511e-05/0.1301, allocations: 16 kB / 489 MB, free: 7.898 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.1301, allocations: 11.95 kB / 489 MB, free: 7.887 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009123/0.131, allocations: 281.9 kB / 489.3 MB, free: 7.609 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00346/0.1345, allocations: 1.842 MB / 491.1 MB, free: 5.652 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005758/0.1351, allocations: 183.7 kB / 491.3 MB, free: 5.445 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.1352, allocations: 0 / 491.3 MB, free: 5.445 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.68e-05/0.1352, allocations: 42.56 kB / 491.3 MB, free: 5.395 MB / 330.7 MB Notification: Performance of pre-optimization done (n=18): time 2.154e-06/0.1352, allocations: 0 / 491.3 MB, free: 5.395 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.002167/0.1374, allocations: 0.7138 MB / 492 MB, free: 4.625 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.71e-05/0.1375, allocations: 102.8 kB / 492.1 MB, free: 4.5 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005073/0.138, allocations: 312.4 kB / 492.5 MB, free: 4.188 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.1381, allocations: 33.95 kB / 492.5 MB, free: 4.148 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002266/0.1383, allocations: 294 kB / 492.8 MB, free: 3.859 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.1384, allocations: 75 kB / 492.8 MB, free: 3.785 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.03e-05/0.1385, allocations: 7.938 kB / 492.9 MB, free: 3.777 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1386, allocations: 322.8 kB / 493.2 MB, free: 3.453 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003054/0.139, allocations: 76.61 kB / 493.2 MB, free: 3.379 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003947/0.1394, allocations: 197.7 kB / 493.4 MB, free: 3.129 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003664/0.1397, allocations: 112.8 kB / 493.5 MB, free: 3.02 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.1398, allocations: 0 / 493.5 MB, free: 3.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0009089/0.1407, allocations: 306.2 kB / 493.8 MB, free: 2.715 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.1407, allocations: 8 kB / 493.9 MB, free: 2.707 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.1408, allocations: 4 kB / 493.9 MB, free: 2.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.609e-05/0.1408, allocations: 8 kB / 493.9 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005798/0.1414, allocations: 75.91 kB / 493.9 MB, free: 2.621 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.165e-05/0.1414, allocations: 16.27 kB / 494 MB, free: 2.605 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000334/0.1418, allocations: 16 kB / 494 MB, free: 2.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.74e-05/0.1418, allocations: 16 kB / 494 MB, free: 2.574 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002944/0.1421, allocations: 181.6 kB / 494.2 MB, free: 2.387 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.1422, allocations: 35.58 kB / 494.2 MB, free: 2.352 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006809/0.1429, allocations: 200.6 kB / 494.4 MB, free: 2.148 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.143, allocations: 4 kB / 494.4 MB, free: 2.145 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.143, allocations: 4 kB / 494.4 MB, free: 2.141 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.143, allocations: 0 / 494.4 MB, free: 2.141 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/0.1445, allocations: 0.6188 MB / 495 MB, free: 1.465 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.289e-06/0.1445, allocations: 0 / 495 MB, free: 1.465 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005152/0.1451, allocations: 47.94 kB / 495.1 MB, free: 1.418 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.101e-05/0.1451, allocations: 4 kB / 495.1 MB, free: 1.414 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/0.1451, allocations: 4 kB / 495.1 MB, free: 1.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.1452, allocations: 4 kB / 495.1 MB, free: 1.406 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1452, allocations: 0 / 495.1 MB, free: 1.406 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.1462, allocations: 493 kB / 495.6 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.1464, allocations: 108.8 kB / 495.7 MB, free: 0.7578 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.218e-05/0.1465, allocations: 4 kB / 495.7 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002991/0.1468, allocations: 8 kB / 495.7 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.671e-05/0.1469, allocations: 19.94 kB / 495.7 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.612e-05/0.1469, allocations: 8 kB / 495.7 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003518/0.1473, allocations: 219 kB / 495.9 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.385e-06/0.1473, allocations: 0 / 495.9 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006056/0.1479, allocations: 71.94 kB / 496 MB, free: 444 kB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001491/0.148, allocations: 103.3 kB / 496.1 MB, free: 332 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007211/0.1488, allocations: 199.7 kB / 496.3 MB, free: 132 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1488, allocations: 0 / 496.3 MB, free: 132 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003222/0.1491, allocations: 85.03 kB / 496.4 MB, free: 48 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008828/0.15, allocations: 85.44 kB / 496.5 MB, free: 15.96 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002741/0.1528, allocations: 1.149 MB / 497.6 MB, free: 14.77 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005514/0.1534, allocations: 0.8226 MB / 498.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001622/0.1536, allocations: 27.44 kB / 498.5 MB, free: 13.89 MB / 346.7 MB Notification: Performance of SimCode: time 1.192e-06/0.1536, allocations: 0 / 498.5 MB, free: 13.89 MB / 346.7 MB Notification: Performance of Templates: time 0.01169/0.1653, allocations: 4.404 MB / 0.4911 GB, free: 9.492 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)