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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001288/0.001288, allocations: 103.7 kB / 16.62 MB, free: 6.812 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.001413/0.001414, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1703/0.1703, allocations: 38.02 MB / 329.4 MB, free: 9.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001049/0.001049, allocations: 65.03 kB / 398.4 MB, free: 34.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09208/0.09314, allocations: 58.05 MB / 456.4 MB, free: 8.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006977/0.1001, allocations: 6.564 MB / 463 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002423/0.1026, allocations: 1.671 MB / 464.7 MB, free: 80 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002519/0.1029, allocations: 43.75 kB / 464.7 MB, free: 36 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003017/0.1032, allocations: 123.2 kB / 464.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005849/0.1038, allocations: 338.6 kB / 465.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002252/0.104, allocations: 135.8 kB / 465.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006256/0.1047, allocations: 0.7865 MB / 466.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002375/0.1049, allocations: 217.7 kB / 466.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003392/0.1052, allocations: 342.5 kB / 466.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004585/0.1057, allocations: 430.5 kB / 467.1 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.296e-05/0.1058, allocations: 40 kB / 467.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.014e-05/0.1059, allocations: 40 kB / 467.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.106, allocations: 207.5 kB / 467.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002083/0.1062, allocations: 278.5 kB / 467.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004241/0.1067, allocations: 0.5683 MB / 468.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.324e-06/0.1067, allocations: 0 / 468.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.1067, allocations: 0 / 468.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1067, allocations: 0 / 468.2 MB, free: 12.57 MB / 350.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.001139/0.1078, allocations: 0.8919 MB / 469.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.477e-05/0.1079, allocations: 11.89 kB / 469.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.49e-05/0.1079, allocations: 82.72 kB / 469.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.717e-05/0.108, allocations: 64.12 kB / 469.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005822/0.1086, allocations: 490.4 kB / 469.7 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.257e-05/0.1087, allocations: 29 kB / 469.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.624e-05/0.1087, allocations: 44 kB / 469.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006639/0.1094, allocations: 0.5312 MB / 470.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.1094, allocations: 4 kB / 470.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.319e-05/0.1094, allocations: 19.94 kB / 470.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.035e-05/0.1095, allocations: 24.98 kB / 470.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005442/0.11, allocations: 391.6 kB / 470.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001907/0.1119, allocations: 1.924 MB / 472.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004732/0.1124, allocations: 341.3 kB / 473 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002695/0.1127, allocations: 177.7 kB / 473.2 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.1127, allocations: 11.92 kB / 473.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003122/0.1131, allocations: 280.3 kB / 473.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 1.443e-06/0.1131, allocations: 3.938 kB / 473.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001473/0.1146, allocations: 1.191 MB / 474.6 MB, free: 5.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.779e-05/0.1146, allocations: 170.3 kB / 474.8 MB, free: 5.508 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003154/0.115, allocations: 393.8 kB / 475.2 MB, free: 5.109 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.115, allocations: 37.7 kB / 475.2 MB, free: 5.066 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.1151, allocations: 287.6 kB / 475.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.708e-05/0.1152, allocations: 114.4 kB / 475.6 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000104/0.1153, allocations: 98.14 kB / 475.7 MB, free: 4.566 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001074/0.1155, allocations: 350.8 kB / 476.1 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001743/0.1156, allocations: 121 kB / 476.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000263/0.1159, allocations: 298.1 kB / 476.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004559/0.1164, allocations: 481.3 kB / 476.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1164, allocations: 0 / 476.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006354/0.117, allocations: 0.5218 MB / 477.5 MB, free: 2.641 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.117, allocations: 33.7 kB / 477.5 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.1171, allocations: 8 kB / 477.5 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.1171, allocations: 11.94 kB / 477.5 MB, free: 2.582 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003714/0.1175, allocations: 107.8 kB / 477.6 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.1175, allocations: 11.94 kB / 477.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002277/0.1177, allocations: 24.27 kB / 477.7 MB, free: 2.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.492e-05/0.1178, allocations: 35.98 kB / 477.7 MB, free: 2.406 MB / 350.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,tapChanger.tap_2,$PRE.tapChanger.tap_2,tapChanger.tap_1,$PRE.tapChanger.tap_1,tapChanger.cnt_2,$PRE.tapChanger.cnt_2,tapChanger.cnt_1,$PRE.tapChanger.cnt_1,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002081/0.118, allocations: 244.2 kB / 477.9 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.396e-05/0.118, allocations: 51.38 kB / 478 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005986/0.1186, allocations: 459.2 kB / 478.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.1187, allocations: 4 kB / 478.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1187, allocations: 0 / 478.4 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1187, allocations: 3.984 kB / 478.4 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.1197, allocations: 0.977 MB / 479.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1197, allocations: 0 / 479.4 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.12, allocations: 63.91 kB / 479.5 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.12, allocations: 4 kB / 479.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.578e-05/0.1201, allocations: 11.98 kB / 479.5 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.1201, allocations: 4 kB / 479.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1201, allocations: 64 / 479.5 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007908/0.1209, allocations: 0.7211 MB / 480.2 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/0.121, allocations: 136.5 kB / 480.4 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.492e-05/0.1211, allocations: 8 kB / 480.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.1213, allocations: 15.98 kB / 480.4 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.444e-05/0.1213, allocations: 23.97 kB / 480.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-05/0.1214, allocations: 32.03 kB / 480.4 MB, free: 15.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002316/0.1216, allocations: 275.1 kB / 480.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1216, allocations: 4 kB / 480.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003777/0.122, allocations: 100 kB / 480.8 MB, free: 15.15 MB / 366.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 (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.001008/0.123, allocations: 1.275 MB / 482.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005628/0.1236, allocations: 436.3 kB / 482.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.1236, allocations: 0 / 482.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002636/0.1239, allocations: 267 kB / 482.8 MB, free: 13.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005386/0.1244, allocations: 97.67 kB / 482.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004232/0.1287, allocations: 4.342 MB / 487.2 MB, free: 8.457 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.1291, allocations: 0.8858 MB / 488.1 MB, free: 7.547 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002643/0.1293, allocations: 84.31 kB / 488.2 MB, free: 7.461 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001949/0.1295, allocations: 175.4 kB / 488.3 MB, free: 7.289 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1296, allocations: 0 / 488.3 MB, free: 7.289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.218/1.348, allocations: 8.346 MB / 496.7 MB, free: 15.11 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000323/1.348, allocations: 208.6 kB / 496.9 MB, free: 14.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.237/3.585, allocations: 0 / 496.9 MB, free: 14.84 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/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)