Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 107.9 kB / 17.73 MB, free: 5.363 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.00127/0.00127, allocations: 189.5 kB / 18.67 MB, free: 4.438 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.456/1.456, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1728/0.1728, 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.001372/0.001372, allocations: 67.91 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09677/0.09815, allocations: 55.24 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005837/0.104, allocations: 4.066 MB / 491.8 MB, free: 4.25 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0017/0.1058, allocations: 0.9476 MB / 492.8 MB, free: 3.297 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002712/0.1061, allocations: 11.94 kB / 492.8 MB, free: 3.285 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002379/0.1063, allocations: 55.45 kB / 492.9 MB, free: 3.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006753/0.107, allocations: 175 kB / 493 MB, free: 3.059 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002817/0.1073, allocations: 91.81 kB / 493.1 MB, free: 2.969 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005831/0.1079, allocations: 402.5 kB / 493.5 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.1082, allocations: 126.2 kB / 493.6 MB, free: 2.453 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003654/0.1086, allocations: 179.2 kB / 493.8 MB, free: 2.277 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004165/0.109, allocations: 183.3 kB / 494 MB, free: 2.098 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.522e-05/0.1091, allocations: 23.94 kB / 494 MB, free: 2.074 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.252e-05/0.1092, allocations: 20 kB / 494 MB, free: 2.055 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.1093, allocations: 87.78 kB / 494.1 MB, free: 1.969 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001776/0.1095, allocations: 147.2 kB / 494.3 MB, free: 1.824 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003836/0.1099, allocations: 286.9 kB / 494.5 MB, free: 1.543 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.1099, allocations: 4 kB / 494.5 MB, free: 1.539 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1099, allocations: 0 / 494.5 MB, free: 1.539 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.1099, allocations: 0 / 494.5 MB, free: 1.539 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001162/0.1111, allocations: 0.5854 MB / 495.1 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.1111, allocations: 19.89 kB / 495.2 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.325e-05/0.1112, allocations: 32.56 kB / 495.2 MB, free: 0.8555 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000552/0.1118, allocations: 342.9 kB / 495.5 MB, free: 496 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.1118, allocations: 20.56 kB / 495.5 MB, free: 472 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.26e-05/0.1119, allocations: 16 kB / 495.6 MB, free: 456 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004267/0.1123, allocations: 298.8 kB / 495.8 MB, free: 124 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.1123, allocations: 3.984 kB / 495.8 MB, free: 120 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.1123, allocations: 8 kB / 495.9 MB, free: 112 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.1123, allocations: 4 kB / 495.9 MB, free: 108 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003039/0.1127, allocations: 184.9 kB / 496 MB, free: 15.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.114, allocations: 1.212 MB / 497.3 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.1144, allocations: 113.2 kB / 497.4 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.954e-05/0.1144, allocations: 41.77 kB / 497.4 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.178e-05/0.1145, allocations: 0 / 497.4 MB, free: 14.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.1145, allocations: 46.48 kB / 497.4 MB, free: 14.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.263e-06/0.1145, allocations: 0 / 497.4 MB, free: 14.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008058/0.1153, allocations: 492.8 kB / 497.9 MB, free: 13.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.1154, allocations: 77.11 kB / 498 MB, free: 13.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.1156, allocations: 246.7 kB / 498.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.1156, allocations: 33.7 kB / 498.3 MB, free: 13.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.1158, allocations: 199.7 kB / 498.5 MB, free: 13.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.075e-05/0.1158, allocations: 39.39 kB / 498.5 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/0.1159, allocations: 45.7 kB / 498.6 MB, free: 13.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.116, allocations: 334.8 kB / 498.9 MB, free: 12.85 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.648e-05/0.116, allocations: 35.98 kB / 498.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.1162, allocations: 136.7 kB / 499.1 MB, free: 12.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002132/0.1164, allocations: 192.7 kB / 499.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1164, allocations: 0 / 499.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000285/0.1167, allocations: 201.4 kB / 499.4 MB, free: 12.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1167, allocations: 12.06 kB / 499.5 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.1167, allocations: 11.94 kB / 499.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.1167, allocations: 4 kB / 499.5 MB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.1169, allocations: 39.98 kB / 499.5 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.1169, allocations: 11.92 kB / 499.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.1171, allocations: 11.94 kB / 499.5 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.614e-05/0.1171, allocations: 8 kB / 499.5 MB, free: 12.1 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (24): * Single equations (assignments): 24 * 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.0001267/0.1172, allocations: 154 kB / 499.7 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.519e-05/0.1173, allocations: 23.7 kB / 499.7 MB, free: 11.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002146/0.1175, allocations: 139.2 kB / 499.8 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.1175, allocations: 7.938 kB / 499.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1175, allocations: 0 / 499.9 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1175, allocations: 7.922 kB / 499.9 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005012/0.118, allocations: 479.2 kB / 0.4886 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.118, allocations: 0 / 0.4886 GB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.1182, allocations: 23.92 kB / 0.4886 GB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1182, allocations: 7.938 kB / 0.4886 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.1182, allocations: 7.969 kB / 0.4886 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.182e-06/0.1182, allocations: 4 kB / 0.4886 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1182, allocations: 0 / 0.4886 GB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003136/0.1185, allocations: 277.1 kB / 0.4889 GB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.414e-05/0.1186, allocations: 100.8 kB / 0.489 GB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.476e-05/0.1186, allocations: 11.88 kB / 0.489 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.1188, allocations: 4.062 kB / 0.489 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.777e-05/0.1188, allocations: 7.984 kB / 0.489 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.004e-05/0.1188, allocations: 8 kB / 0.489 GB, free: 10.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000148/0.119, allocations: 170 kB / 0.4892 GB, free: 10.58 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.119, allocations: 0 / 0.4892 GB, free: 10.58 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003141/0.1193, allocations: 44 kB / 0.4892 GB, free: 10.54 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * 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.0001145/0.1194, allocations: 99.23 kB / 0.4893 GB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002369/0.1197, allocations: 115.8 kB / 0.4894 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1197, allocations: 0 / 0.4894 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.764e-05/0.1198, allocations: 51.91 kB / 0.4895 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000494/0.1203, allocations: 65.38 kB / 0.4896 GB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009246/0.1212, allocations: 0.5734 MB / 0.4901 GB, free: 9.594 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.1215, allocations: 0.7751 MB / 0.4909 GB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.588e-05/0.1216, allocations: 19.44 kB / 0.4909 GB, free: 8.773 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1216, allocations: 192 / 0.4909 GB, free: 8.773 MB / 382.1 MB Notification: Performance of Templates: time 0.005499/0.1271, allocations: 2.995 MB / 0.4938 GB, free: 5.77 MB / 382.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)