Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=15000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001051/0.001051, allocations: 173.1 kB / 15.77 MB, free: 6.32 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.43/1.43, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0007382/0.0007382, allocations: 86.36 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1646/0.1646, allocations: 38.07 MB / 356.6 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003515/0.0003516, allocations: 12 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09562/0.09599, allocations: 56.33 MB / 479.1 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006138/0.1022, allocations: 5.818 MB / 484.9 MB, free: 12.2 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.1048, allocations: 1.642 MB / 486.5 MB, free: 10.55 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003207/0.1052, allocations: 35.75 kB / 486.6 MB, free: 10.51 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003584/0.1055, allocations: 127 kB / 486.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008405/0.1064, allocations: 410 kB / 487.1 MB, free: 9.984 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003739/0.1068, allocations: 179.8 kB / 487.3 MB, free: 9.809 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008199/0.1076, allocations: 0.919 MB / 488.2 MB, free: 8.887 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002754/0.1079, allocations: 168 kB / 488.3 MB, free: 8.719 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003783/0.1083, allocations: 286.6 kB / 488.6 MB, free: 8.438 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000552/0.1088, allocations: 398.6 kB / 489 MB, free: 8.047 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 5.49e-05/0.1089, allocations: 24 kB / 489 MB, free: 8.023 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.575e-05/0.109, allocations: 20 kB / 489.1 MB, free: 8.004 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.1092, allocations: 179.5 kB / 489.2 MB, free: 7.828 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.1093, allocations: 121.5 kB / 489.4 MB, free: 7.703 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003777/0.1097, allocations: 418.9 kB / 489.8 MB, free: 7.293 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1097, allocations: 0 / 489.8 MB, free: 7.293 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1097, allocations: 0 / 489.8 MB, free: 7.293 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.767e-06/0.1097, allocations: 0 / 489.8 MB, free: 7.293 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001281/0.111, allocations: 0.8139 MB / 490.6 MB, free: 6.426 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.136e-05/0.1111, allocations: 8.031 kB / 490.6 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.1112, allocations: 67.2 kB / 490.6 MB, free: 6.352 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006914/0.1119, allocations: 473.6 kB / 491.1 MB, free: 5.848 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.06e-05/0.1119, allocations: 29 kB / 491.1 MB, free: 5.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.537e-05/0.112, allocations: 47.92 kB / 491.2 MB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00076/0.1128, allocations: 0.5351 MB / 491.7 MB, free: 5.199 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.1128, allocations: 0 / 491.7 MB, free: 5.199 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.104e-05/0.1128, allocations: 16 kB / 491.7 MB, free: 5.184 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.595e-05/0.1129, allocations: 32.88 kB / 491.8 MB, free: 5.152 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005757/0.1134, allocations: 383.7 kB / 492.1 MB, free: 4.777 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002279/0.1157, allocations: 1.94 MB / 494.1 MB, free: 2.727 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00053/0.1163, allocations: 329.3 kB / 494.4 MB, free: 2.387 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003023/0.1166, allocations: 181.7 kB / 494.6 MB, free: 2.203 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.513e-05/0.1166, allocations: 4 kB / 494.6 MB, free: 2.199 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003774/0.117, allocations: 288.2 kB / 494.9 MB, free: 1.887 MB / 330.7 MB Notification: Performance of pre-optimization done (n=35): time 2.274e-06/0.117, allocations: 4 kB / 494.9 MB, free: 1.883 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.001834/0.1189, allocations: 1.175 MB / 496 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.119, allocations: 166.2 kB / 496.2 MB, free: 448 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000415/0.1194, allocations: 393.9 kB / 496.6 MB, free: 48 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.896e-05/0.1195, allocations: 29.7 kB / 496.6 MB, free: 12 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002228/0.1197, allocations: 299.6 kB / 496.9 MB, free: 15.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.097e-05/0.1198, allocations: 118.3 kB / 497 MB, free: 15.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.154e-05/0.1198, allocations: 12 kB / 497 MB, free: 15.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.12, allocations: 354.8 kB / 497.4 MB, free: 15.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002027/0.1202, allocations: 121 kB / 497.5 MB, free: 15.11 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003019/0.1205, allocations: 286.1 kB / 497.8 MB, free: 14.76 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.1208, allocations: 181.6 kB / 498 MB, free: 14.57 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1208, allocations: 0 / 498 MB, free: 14.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007099/0.1215, allocations: 0.5184 MB / 498.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.698e-05/0.1216, allocations: 33.7 kB / 498.5 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.1216, allocations: 4 kB / 498.5 MB, free: 14 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.075e-05/0.1216, allocations: 8 kB / 498.5 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004282/0.122, allocations: 112.4 kB / 498.6 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.1221, allocations: 15.94 kB / 498.7 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.1223, allocations: 23.98 kB / 498.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.961e-05/0.1224, allocations: 31.98 kB / 498.7 MB, free: 13.81 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * 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.0002678/0.1227, allocations: 255.2 kB / 499 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.706e-05/0.1227, allocations: 51.39 kB / 499 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007053/0.1234, allocations: 447.5 kB / 499.4 MB, free: 13.04 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.1235, allocations: 8 kB / 499.5 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1235, allocations: 0 / 499.5 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.1235, allocations: 7.984 kB / 499.5 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.1247, allocations: 0.9651 MB / 0.4887 GB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.1247, allocations: 0 / 0.4887 GB, free: 11.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003116/0.125, allocations: 67.84 kB / 0.4888 GB, free: 11.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.125, allocations: 4 kB / 0.4888 GB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.644e-05/0.1251, allocations: 11.98 kB / 0.4888 GB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.1251, allocations: 8.031 kB / 0.4888 GB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1251, allocations: 0 / 0.4888 GB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008873/0.126, allocations: 0.7055 MB / 0.4895 GB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.1261, allocations: 140.5 kB / 0.4896 GB, free: 11.01 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.348e-05/0.1262, allocations: 12 kB / 0.4896 GB, free: 11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.1264, allocations: 20.05 kB / 0.4896 GB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.915e-05/0.1265, allocations: 19.97 kB / 0.4897 GB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.857e-05/0.1265, allocations: 35.95 kB / 0.4897 GB, free: 10.93 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002535/0.1268, allocations: 267.1 kB / 0.4899 GB, free: 10.67 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1268, allocations: 4 kB / 0.4899 GB, free: 10.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003995/0.1272, allocations: 100 kB / 0.49 GB, free: 10.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.0001249/0.1273, allocations: 111.1 kB / 0.4902 GB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0005583/0.1279, allocations: 419.3 kB / 0.4906 GB, free: 10.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1279, allocations: 0 / 0.4906 GB, free: 10.02 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002931/0.1282, allocations: 269.1 kB / 0.4908 GB, free: 9.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005774/0.1288, allocations: 97.58 kB / 0.4909 GB, free: 9.652 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.1304, allocations: 1.221 MB / 0.4921 GB, free: 8.398 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004551/0.1308, allocations: 0.8859 MB / 0.493 GB, free: 7.488 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.845e-05/0.1309, allocations: 35.44 kB / 0.493 GB, free: 7.453 MB / 346.7 MB Notification: Performance of SimCode: time 3.31e-07/0.1309, allocations: 0 / 0.493 GB, free: 7.453 MB / 346.7 MB Notification: Performance of Templates: time 0.008188/0.1391, allocations: 5.868 MB / 0.4987 GB, free: 1.586 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)