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.001913/0.001913, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.002131/0.002131, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.449/1.449, allocations: 205.1 MB / 224.5 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.1836/0.1836, allocations: 37.98 MB / 309.9 MB, free: 5.961 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.001574/0.001574, allocations: 71.91 kB / 432.5 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.1, allocations: 55.25 MB / 487.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006865/0.107, allocations: 4.799 MB / 492.6 MB, free: 3.527 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00252/0.1095, allocations: 1.527 MB / 494.1 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004136/0.11, allocations: 11.94 kB / 494.1 MB, free: 1.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005044/0.1105, allocations: 111.1 kB / 494.2 MB, free: 1.871 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009452/0.1115, allocations: 266.4 kB / 494.5 MB, free: 1.609 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003955/0.1119, allocations: 143.7 kB / 494.6 MB, free: 1.469 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008769/0.1128, allocations: 0.5838 MB / 495.2 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005297/0.1133, allocations: 394.6 kB / 495.6 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004326/0.1138, allocations: 247.1 kB / 495.8 MB, free: 260 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004228/0.1142, allocations: 231 kB / 496.1 MB, free: 28 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.698e-05/0.1143, allocations: 44.03 kB / 496.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.56e-05/0.1144, allocations: 43.94 kB / 496.1 MB, free: 15.94 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000122/0.1145, allocations: 119.6 kB / 496.3 MB, free: 15.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002445/0.1148, allocations: 222.9 kB / 496.5 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005256/0.1153, allocations: 0.51 MB / 497 MB, free: 15.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.1153, allocations: 0 / 497 MB, free: 15.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1154, allocations: 0 / 497 MB, free: 15.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.1154, allocations: 0 / 497 MB, free: 15.09 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.001374/0.1168, allocations: 0.6953 MB / 497.7 MB, free: 14.35 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.1168, allocations: 15.83 kB / 497.7 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.1169, allocations: 48.38 kB / 497.7 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006498/0.1176, allocations: 412.1 kB / 498.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.617e-05/0.1177, allocations: 70.62 kB / 498.2 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.592e-05/0.1178, allocations: 35.91 kB / 498.3 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007044/0.1185, allocations: 440.1 kB / 498.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.1185, allocations: 0 / 498.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.887e-05/0.1186, allocations: 16 kB / 498.7 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.1186, allocations: 8 kB / 498.7 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000544/0.1191, allocations: 274 kB / 499 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.1214, allocations: 1.837 MB / 0.4891 GB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003339/0.1217, allocations: 171.6 kB / 0.4892 GB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001468/0.1219, allocations: 78.67 kB / 0.4893 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.961e-05/0.1219, allocations: 0 / 0.4893 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.122, allocations: 42.5 kB / 0.4894 GB, free: 10.69 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/0.122, allocations: 0 / 0.4894 GB, free: 10.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001391/0.1234, allocations: 0.7138 MB / 0.4901 GB, free: 9.922 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/0.1234, allocations: 102.8 kB / 0.4902 GB, free: 9.797 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003311/0.1238, allocations: 312.5 kB / 0.4904 GB, free: 9.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.1238, allocations: 29.7 kB / 0.4905 GB, free: 9.441 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.124, allocations: 247.5 kB / 0.4907 GB, free: 9.195 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.01e-05/0.1241, allocations: 74.94 kB / 0.4908 GB, free: 9.121 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.757e-05/0.1242, allocations: 65.94 kB / 0.4908 GB, free: 9.051 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.1243, allocations: 346.9 kB / 0.4912 GB, free: 8.703 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.1245, allocations: 68.62 kB / 0.4912 GB, free: 8.637 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002275/0.1247, allocations: 209.4 kB / 0.4914 GB, free: 8.375 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004047/0.1251, allocations: 292 kB / 0.4917 GB, free: 8.031 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.1251, allocations: 0 / 0.4917 GB, free: 8.031 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005536/0.1257, allocations: 320.8 kB / 0.492 GB, free: 7.711 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.1257, allocations: 11.94 kB / 0.492 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.1257, allocations: 8.5 kB / 0.492 GB, free: 7.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.059e-05/0.1258, allocations: 4 kB / 0.4921 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003013/0.1261, allocations: 83.84 kB / 0.4921 GB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.768e-05/0.1261, allocations: 15.97 kB / 0.4921 GB, free: 7.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001939/0.1263, allocations: 8 kB / 0.4922 GB, free: 7.582 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.743e-05/0.1263, allocations: 16 kB / 0.4922 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.0002009/0.1265, allocations: 189.6 kB / 0.4923 GB, free: 7.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.846e-05/0.1266, allocations: 35.56 kB / 0.4924 GB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004137/0.127, allocations: 196.7 kB / 0.4926 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1271, allocations: 0 / 0.4926 GB, free: 7.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.1271, allocations: 4 kB / 0.4926 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.82e-06/0.1271, allocations: 0 / 0.4926 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000936/0.128, allocations: 0.6123 MB / 0.4932 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.128, allocations: 0 / 0.4932 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.1283, allocations: 43.91 kB / 0.4932 GB, free: 6.414 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/0.1283, allocations: 8.031 kB / 0.4932 GB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/0.1283, allocations: 4 kB / 0.4932 GB, free: 6.402 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.1283, allocations: 4 kB / 0.4932 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1283, allocations: 0 / 0.4932 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005814/0.1289, allocations: 459.7 kB / 0.4937 GB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.302e-05/0.129, allocations: 100.7 kB / 0.4938 GB, free: 5.809 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.91e-05/0.1291, allocations: 12.03 kB / 0.4938 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001829/0.1293, allocations: 8 kB / 0.4938 GB, free: 5.789 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.288e-05/0.1293, allocations: 11.98 kB / 0.4938 GB, free: 5.777 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.1293, allocations: 8 kB / 0.4938 GB, free: 5.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002045/0.1296, allocations: 219 kB / 0.494 GB, free: 5.559 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.1296, allocations: 0 / 0.494 GB, free: 5.559 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004063/0.13, allocations: 79.94 kB / 0.4941 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.0001181/0.1301, allocations: 103.2 kB / 0.4942 GB, free: 5.371 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004288/0.1305, allocations: 196.6 kB / 0.4944 GB, free: 5.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.1306, allocations: 0 / 0.4944 GB, free: 5.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.1308, allocations: 91.95 kB / 0.4945 GB, free: 5.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006658/0.1314, allocations: 81.31 kB / 0.4945 GB, free: 5.012 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.1331, allocations: 0.9151 MB / 0.4954 GB, free: 4.055 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003859/0.1335, allocations: 0.8185 MB / 0.4962 GB, free: 3.207 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.902e-05/0.1336, allocations: 27.44 kB / 0.4963 GB, free: 3.18 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1336, allocations: 0 / 0.4963 GB, free: 3.18 MB / 382.1 MB Notification: Performance of Templates: time 0.007885/0.1415, allocations: 4.553 MB / 0.5007 GB, free: 14.62 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)