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.001198/0.001198, allocations: 176.9 kB / 15.78 MB, free: 6.348 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0007852/0.0007848, allocations: 102.2 kB / 270.3 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1738/0.1738, allocations: 38.06 MB / 356.6 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003924/0.0003925, allocations: 15.98 kB / 422.7 MB, free: 26.4 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1045, allocations: 56.33 MB / 479.1 MB, free: 2.02 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.00526/0.1098, allocations: 4.8 MB / 483.9 MB, free: 13.19 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.1121, allocations: 1.622 MB / 485.5 MB, free: 11.56 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002244/0.1123, allocations: 27.81 kB / 485.5 MB, free: 11.54 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002951/0.1126, allocations: 103.2 kB / 485.6 MB, free: 11.43 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005584/0.1132, allocations: 282.4 kB / 485.9 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.1135, allocations: 135.8 kB / 486 MB, free: 11.02 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006413/0.1141, allocations: 0.6149 MB / 486.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00036/0.1145, allocations: 280.4 kB / 486.9 MB, free: 10.13 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002326/0.1148, allocations: 191.1 kB / 487.1 MB, free: 9.941 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002754/0.115, allocations: 215.2 kB / 487.3 MB, free: 9.73 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.162e-05/0.1151, allocations: 20 kB / 487.3 MB, free: 9.711 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.255e-05/0.1152, allocations: 20 kB / 487.3 MB, free: 9.691 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.1153, allocations: 99.64 kB / 487.4 MB, free: 9.594 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 9.711e-05/0.1154, allocations: 109.5 kB / 487.6 MB, free: 9.48 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003577/0.1158, allocations: 390.9 kB / 487.9 MB, free: 9.098 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1158, allocations: 0 / 487.9 MB, free: 9.098 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1158, allocations: 0 / 487.9 MB, free: 9.098 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.1158, allocations: 0 / 487.9 MB, free: 9.098 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.001053/0.1168, allocations: 0.6406 MB / 488.6 MB, free: 8.41 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.1169, allocations: 8.031 kB / 488.6 MB, free: 8.402 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.129e-05/0.117, allocations: 51.39 kB / 488.6 MB, free: 8.352 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005062/0.1175, allocations: 387 kB / 489 MB, free: 7.926 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.398e-05/0.1176, allocations: 62.69 kB / 489.1 MB, free: 7.859 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.509e-05/0.1176, allocations: 32 kB / 489.1 MB, free: 7.828 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006757/0.1183, allocations: 432.1 kB / 489.5 MB, free: 7.367 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.1184, allocations: 7.938 kB / 489.5 MB, free: 7.359 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.545e-05/0.1184, allocations: 20 kB / 489.6 MB, free: 7.34 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.081e-05/0.1184, allocations: 11.95 kB / 489.6 MB, free: 7.328 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00049/0.1189, allocations: 270 kB / 489.8 MB, free: 7.062 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.1209, allocations: 1.845 MB / 491.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.1213, allocations: 187.6 kB / 491.9 MB, free: 4.891 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.1214, allocations: 78.55 kB / 491.9 MB, free: 4.805 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.1215, allocations: 0 / 491.9 MB, free: 4.805 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.1215, allocations: 38.56 kB / 492 MB, free: 4.758 MB / 330.7 MB Notification: Performance of pre-optimization done (n=18): time 1.143e-06/0.1215, allocations: 0 / 492 MB, free: 4.758 MB / 330.7 MB Notification: Performance of matching and sorting (n=19): time 0.001258/0.1228, allocations: 0.7138 MB / 492.7 MB, free: 3.988 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.1228, allocations: 106.8 kB / 492.8 MB, free: 3.859 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003122/0.1232, allocations: 320.6 kB / 493.1 MB, free: 3.539 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.963e-05/0.1232, allocations: 25.7 kB / 493.1 MB, free: 3.508 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.1234, allocations: 243.5 kB / 493.4 MB, free: 3.266 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.063e-05/0.1234, allocations: 70.98 kB / 493.4 MB, free: 3.195 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.461e-05/0.1234, allocations: 11.94 kB / 493.4 MB, free: 3.184 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.1236, allocations: 338.8 kB / 493.8 MB, free: 2.844 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.1237, allocations: 76.61 kB / 493.9 MB, free: 2.77 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.124, allocations: 197.8 kB / 494 MB, free: 2.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002078/0.1242, allocations: 108.8 kB / 494.2 MB, free: 2.414 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1242, allocations: 0 / 494.2 MB, free: 2.414 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005353/0.1248, allocations: 329.7 kB / 494.5 MB, free: 2.086 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.1248, allocations: 11.94 kB / 494.5 MB, free: 2.074 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.1248, allocations: 7.938 kB / 494.5 MB, free: 2.066 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.1248, allocations: 8 kB / 494.5 MB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002872/0.1251, allocations: 76.45 kB / 494.6 MB, free: 1.984 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.1251, allocations: 8 kB / 494.6 MB, free: 1.977 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/0.1253, allocations: 16 kB / 494.6 MB, free: 1.961 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.1254, allocations: 12 kB / 494.6 MB, free: 1.949 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.0001787/0.1255, allocations: 189.6 kB / 494.8 MB, free: 1.754 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.065e-05/0.1256, allocations: 39.58 kB / 494.8 MB, free: 1.715 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003855/0.126, allocations: 192.7 kB / 495 MB, free: 1.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.126, allocations: 4 kB / 495 MB, free: 1.516 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1261, allocations: 3.938 kB / 495 MB, free: 1.512 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.71e-06/0.1261, allocations: 4 kB / 495 MB, free: 1.508 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008599/0.1269, allocations: 0.6188 MB / 495.7 MB, free: 0.832 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.1269, allocations: 4 kB / 495.7 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002404/0.1272, allocations: 48 kB / 495.7 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.1272, allocations: 0 / 495.7 MB, free: 0.7812 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.1272, allocations: 8 kB / 495.7 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1272, allocations: 0 / 495.7 MB, free: 0.7734 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.1272, allocations: 4 kB / 495.7 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005637/0.1278, allocations: 451.9 kB / 496.2 MB, free: 312 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.726e-05/0.1279, allocations: 108.8 kB / 496.3 MB, free: 184 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.847e-05/0.1279, allocations: 4 kB / 496.3 MB, free: 180 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001811/0.1281, allocations: 8 kB / 496.3 MB, free: 172 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/0.1282, allocations: 11.98 kB / 496.3 MB, free: 160 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.1282, allocations: 15.94 kB / 496.3 MB, free: 144 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002278/0.1284, allocations: 215 kB / 496.5 MB, free: 15.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1284, allocations: 0 / 496.5 MB, free: 15.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003681/0.1288, allocations: 68 kB / 496.6 MB, free: 15.86 MB / 346.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.0001133/0.1289, allocations: 103.2 kB / 496.7 MB, free: 15.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004093/0.1294, allocations: 211.8 kB / 496.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1294, allocations: 0 / 496.9 MB, free: 15.55 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.1295, allocations: 75.91 kB / 497 MB, free: 15.47 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006649/0.1302, allocations: 94.56 kB / 497.1 MB, free: 15.38 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.1318, allocations: 1.157 MB / 498.2 MB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003711/0.1322, allocations: 0.8149 MB / 499 MB, free: 13.34 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.933e-05/0.1323, allocations: 27.44 kB / 499.1 MB, free: 13.31 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.1323, allocations: 0 / 499.1 MB, free: 13.31 MB / 346.7 MB Notification: Performance of Templates: time 0.006142/0.1384, allocations: 4.474 MB / 0.4917 GB, free: 8.836 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)