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.001199/0.0012, allocations: 109.3 kB / 17.69 MB, free: 5.496 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.001192/0.001193, allocations: 188.1 kB / 18.62 MB, free: 4.578 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.223/1.223, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1639/0.1639, allocations: 37.99 MB / 309.8 MB, free: 5.973 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.001382/0.001382, allocations: 68.33 kB / 432.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08866/0.09005, allocations: 55.25 MB / 487.7 MB, free: 8.375 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005424/0.09551, allocations: 4.799 MB / 492.5 MB, free: 3.543 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001923/0.09746, allocations: 1.523 MB / 494 MB, free: 2.012 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/0.09768, allocations: 15.94 kB / 494 MB, free: 1.996 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003212/0.09803, allocations: 107.2 kB / 494.2 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005586/0.0986, allocations: 278.2 kB / 494.4 MB, free: 1.617 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003003/0.09891, allocations: 143.8 kB / 494.6 MB, free: 1.477 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000601/0.09952, allocations: 0.576 MB / 495.1 MB, free: 0.8984 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004126/0.09995, allocations: 398.5 kB / 495.5 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002648/0.1002, allocations: 239.1 kB / 495.8 MB, free: 280 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003011/0.1005, allocations: 235 kB / 496 MB, free: 44 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.088e-05/0.1006, allocations: 40 kB / 496 MB, free: 4 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.078e-05/0.1007, allocations: 40.05 kB / 496.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.1008, allocations: 119.6 kB / 496.2 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.101, allocations: 226.9 kB / 496.4 MB, free: 15.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004333/0.1014, allocations: 0.5061 MB / 496.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1014, allocations: 0 / 496.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1014, allocations: 0 / 496.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.1015, allocations: 4 kB / 496.9 MB, free: 15.11 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.001077/0.1025, allocations: 0.6991 MB / 497.6 MB, free: 14.37 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.1026, allocations: 15.89 kB / 497.6 MB, free: 14.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.122e-05/0.1027, allocations: 48.38 kB / 497.7 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000527/0.1032, allocations: 416.1 kB / 498.1 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.147e-05/0.1033, allocations: 62.62 kB / 498.1 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.488e-05/0.1034, allocations: 43.89 kB / 498.2 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005857/0.104, allocations: 428.1 kB / 498.6 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.104, allocations: 4 kB / 498.6 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.33e-05/0.104, allocations: 12 kB / 498.6 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.104, allocations: 12 kB / 498.6 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004577/0.1045, allocations: 270 kB / 498.9 MB, free: 13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001823/0.1063, allocations: 1.837 MB / 0.489 GB, free: 11.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002958/0.1067, allocations: 183.7 kB / 0.4892 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.1068, allocations: 70.61 kB / 0.4892 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.723e-05/0.1068, allocations: 4 kB / 0.4892 GB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.1069, allocations: 38.5 kB / 0.4893 GB, free: 10.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.352e-06/0.1069, allocations: 8 kB / 0.4893 GB, free: 10.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001171/0.108, allocations: 0.6942 MB / 0.49 GB, free: 9.953 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.1081, allocations: 110.8 kB / 0.4901 GB, free: 9.82 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002837/0.1084, allocations: 308.5 kB / 0.4904 GB, free: 9.504 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.1084, allocations: 33.89 kB / 0.4904 GB, free: 9.465 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001405/0.1086, allocations: 247.5 kB / 0.4906 GB, free: 9.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.132e-05/0.1086, allocations: 74.94 kB / 0.4907 GB, free: 9.145 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-05/0.1087, allocations: 65.94 kB / 0.4908 GB, free: 9.074 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1088, allocations: 342.8 kB / 0.4911 GB, free: 8.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001509/0.109, allocations: 76.61 kB / 0.4912 GB, free: 8.656 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002153/0.1092, allocations: 205.4 kB / 0.4914 GB, free: 8.398 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003964/0.1096, allocations: 296 kB / 0.4917 GB, free: 8.051 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1096, allocations: 4 kB / 0.4917 GB, free: 8.047 MB / 382.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004908/0.1101, allocations: 317.2 kB / 0.492 GB, free: 7.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.1102, allocations: 16 kB / 0.492 GB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.1102, allocations: 7.984 kB / 0.492 GB, free: 7.707 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.1102, allocations: 8 kB / 0.492 GB, free: 7.699 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.1105, allocations: 79.89 kB / 0.4921 GB, free: 7.621 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.1105, allocations: 7.938 kB / 0.4921 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.1107, allocations: 12 kB / 0.4921 GB, free: 7.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.1107, allocations: 16 kB / 0.4921 GB, free: 7.586 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.0001639/0.1109, allocations: 189.8 kB / 0.4923 GB, free: 7.391 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.408e-05/0.1109, allocations: 31.56 kB / 0.4923 GB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003542/0.1113, allocations: 196.6 kB / 0.4925 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1113, allocations: 4 kB / 0.4925 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1113, allocations: 0 / 0.4925 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1113, allocations: 0 / 0.4925 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007895/0.1121, allocations: 0.6162 MB / 0.4931 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.1121, allocations: 4 kB / 0.4931 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002166/0.1124, allocations: 43.91 kB / 0.4931 GB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1124, allocations: 0 / 0.4931 GB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.632e-05/0.1124, allocations: 8 kB / 0.4932 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1124, allocations: 0 / 0.4932 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.1124, allocations: 0 / 0.4932 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005333/0.1129, allocations: 463.8 kB / 0.4936 GB, free: 5.945 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.738e-05/0.113, allocations: 104.8 kB / 0.4937 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.634e-05/0.1131, allocations: 4 kB / 0.4937 GB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.1132, allocations: 4 kB / 0.4937 GB, free: 5.816 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.603e-05/0.1133, allocations: 15.98 kB / 0.4937 GB, free: 5.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.1133, allocations: 11.94 kB / 0.4937 GB, free: 5.789 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001934/0.1135, allocations: 219 kB / 0.4939 GB, free: 5.578 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1135, allocations: 0 / 0.4939 GB, free: 5.578 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003779/0.1139, allocations: 75.94 kB / 0.494 GB, free: 5.504 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.0001021/0.114, allocations: 103.2 kB / 0.4941 GB, free: 5.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003728/0.1144, allocations: 200 kB / 0.4943 GB, free: 5.199 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1144, allocations: 0 / 0.4943 GB, free: 5.199 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001539/0.1146, allocations: 79.84 kB / 0.4944 GB, free: 5.121 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005987/0.1152, allocations: 98.31 kB / 0.4945 GB, free: 5.027 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/0.1166, allocations: 0.918 MB / 0.4954 GB, free: 4.066 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.1169, allocations: 0.8107 MB / 0.4962 GB, free: 3.227 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.163e-05/0.117, allocations: 31.44 kB / 0.4962 GB, free: 3.195 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.117, allocations: 0 / 0.4962 GB, free: 3.195 MB / 382.1 MB Notification: Performance of Templates: time 0.006043/0.1231, allocations: 4.518 MB / 0.5006 GB, free: 14.67 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)