Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 95.94 kB / 16.3 MB, free: 5.992 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.001484/0.001485, allocations: 182.1 kB / 17.19 MB, free: 5.906 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.661/1.661, allocations: 205.4 MB / 223.4 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3167/0.3167, allocations: 38.06 MB / 309.7 MB, free: 8.855 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.0005266/0.0005268, allocations: 16 kB / 376.6 MB, free: 15.06 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1071, allocations: 56.33 MB / 432.9 MB, free: 6.633 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.005868/0.113, allocations: 5.579 MB / 438.5 MB, free: 1.027 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002631/0.1157, allocations: 1.665 MB / 440.2 MB, free: 15.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004723/0.1162, allocations: 39.69 kB / 440.2 MB, free: 15.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003874/0.1166, allocations: 119.3 kB / 440.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009116/0.1175, allocations: 346.8 kB / 440.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004259/0.1179, allocations: 179.7 kB / 440.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005819/0.1185, allocations: 415.1 kB / 441.2 MB, free: 14.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002646/0.1188, allocations: 163 kB / 441.4 MB, free: 14.11 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004168/0.1192, allocations: 255 kB / 441.6 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004802/0.1197, allocations: 279 kB / 441.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.995e-05/0.1198, allocations: 24 kB / 441.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.531e-05/0.1199, allocations: 20 kB / 442 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001618/0.1201, allocations: 171.5 kB / 442.1 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001263/0.1202, allocations: 121.4 kB / 442.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003794/0.1206, allocations: 430.9 kB / 442.7 MB, free: 12.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.224e-06/0.1206, allocations: 0 / 442.7 MB, free: 12.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1206, allocations: 0 / 442.7 MB, free: 12.83 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.1206, allocations: 0 / 442.7 MB, free: 12.83 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001336/0.122, allocations: 0.7946 MB / 443.5 MB, free: 11.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.122, allocations: 8.031 kB / 443.5 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.1221, allocations: 86.45 kB / 443.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.1223, allocations: 59.25 kB / 443.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008262/0.1231, allocations: 473.7 kB / 444.1 MB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3e-05/0.1231, allocations: 32.98 kB / 444.1 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.437e-05/0.1232, allocations: 43.94 kB / 444.1 MB, free: 11.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007809/0.124, allocations: 0.5312 MB / 444.7 MB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.124, allocations: 0 / 444.7 MB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.317e-05/0.1241, allocations: 23.98 kB / 444.7 MB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.916e-05/0.1241, allocations: 17 kB / 444.7 MB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000604/0.1247, allocations: 387.6 kB / 445.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002402/0.1271, allocations: 1.932 MB / 447 MB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005492/0.1277, allocations: 329.3 kB / 447.4 MB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.1277, allocations: 8.062 kB / 447.4 MB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003861/0.1281, allocations: 280.5 kB / 447.6 MB, free: 7.559 MB / 382.1 MB Notification: Performance of pre-optimization done (n=35): time 1.873e-06/0.1282, allocations: 0 / 447.6 MB, free: 7.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=36): time 0.002127/0.1303, allocations: 1.449 MB / 449.1 MB, free: 5.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.012e-05/0.1304, allocations: 166.1 kB / 449.2 MB, free: 5.781 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004099/0.1308, allocations: 389.9 kB / 449.6 MB, free: 5.391 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.1308, allocations: 29.7 kB / 449.7 MB, free: 5.355 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002013/0.131, allocations: 295.6 kB / 449.9 MB, free: 5.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.148e-05/0.1311, allocations: 118.3 kB / 450.1 MB, free: 4.945 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.08e-05/0.1312, allocations: 16.03 kB / 450.1 MB, free: 4.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.1313, allocations: 362.7 kB / 450.4 MB, free: 4.566 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001994/0.1315, allocations: 125 kB / 450.6 MB, free: 4.445 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003085/0.1319, allocations: 278.2 kB / 450.8 MB, free: 4.102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002569/0.1321, allocations: 189.5 kB / 451 MB, free: 3.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1321, allocations: 0 / 451 MB, free: 3.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000823/0.133, allocations: 0.618 MB / 451.6 MB, free: 3.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.1e-05/0.133, allocations: 33.7 kB / 451.7 MB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.046e-05/0.133, allocations: 7.984 kB / 451.7 MB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001251/0.1332, allocations: 28.86 kB / 451.7 MB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003909/0.1336, allocations: 108.4 kB / 451.8 MB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001083/0.1347, allocations: 1.385 MB / 453.2 MB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003066/0.135, allocations: 20 kB / 453.2 MB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.462e-05/0.1351, allocations: 35.97 kB / 453.2 MB, free: 1.504 MB / 382.1 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 (59): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002716/0.1353, allocations: 243.3 kB / 453.5 MB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.328e-05/0.1354, allocations: 55.36 kB / 453.5 MB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008053/0.1362, allocations: 0.5599 MB / 454.1 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1362, allocations: 4 kB / 454.1 MB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.1362, allocations: 0 / 454.1 MB, free: 0.5938 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.1363, allocations: 3.984 kB / 454.1 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1724/0.3086, allocations: 1.067 MB / 455.2 MB, free: 51.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.319e-06/0.3087, allocations: 0 / 455.2 MB, free: 51.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002866/0.309, allocations: 64.81 kB / 455.2 MB, free: 51.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.745e-05/0.3091, allocations: 22.05 kB / 455.3 MB, free: 51.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.3091, allocations: 16.36 kB / 455.3 MB, free: 51.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005993/0.3097, allocations: 1.373 MB / 456.6 MB, free: 50.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3097, allocations: 2.688 kB / 456.6 MB, free: 50.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007568/0.3105, allocations: 0.8256 MB / 457.5 MB, free: 49.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.3106, allocations: 147.6 kB / 457.6 MB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.026e-05/0.3107, allocations: 15.59 kB / 457.6 MB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.3109, allocations: 11.38 kB / 457.6 MB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.421e-05/0.311, allocations: 30.8 kB / 457.7 MB, free: 49.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.463e-05/0.311, allocations: 31.48 kB / 457.7 MB, free: 49.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002127/0.3112, allocations: 263.5 kB / 458 MB, free: 49.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3112, allocations: 0 / 458 MB, free: 49.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004983/0.3117, allocations: 108.4 kB / 458.1 MB, free: 49.53 MB / 382.1 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 (32): * Single equations (assignments): 29 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008793/0.3126, allocations: 1.52 MB / 459.6 MB, free: 48.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000568/0.3132, allocations: 0.5052 MB / 460.1 MB, free: 48.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.3132, allocations: 0 / 460.1 MB, free: 48.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003034/0.3135, allocations: 381.2 kB / 460.5 MB, free: 48.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.314, allocations: 94.22 kB / 460.6 MB, free: 48.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.3172, allocations: 6.362 MB / 466.9 MB, free: 43.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002717/0.3175, allocations: 0.896 MB / 467.8 MB, free: 42.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002514/0.3178, allocations: 84.48 kB / 467.9 MB, free: 42.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000224/0.318, allocations: 177.6 kB / 468.1 MB, free: 42.87 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.318, allocations: 0 / 468.1 MB, free: 42.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01755/0.3356, allocations: 8.326 MB / 476.4 MB, free: 42.17 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001443/0.3358, allocations: 212.8 kB / 476.6 MB, free: 41.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/2.107, allocations: 0 / 476.6 MB, free: 41.92 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1) Environment - environmentSimulation: