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.001353/0.001353, allocations: 106.9 kB / 16.92 MB, free: 6.199 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.001381/0.00138, allocations: 191.4 kB / 17.85 MB, free: 5.301 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.261/1.261, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1706/0.1706, allocations: 38.02 MB / 329.7 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 65.11 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09126/0.09256, allocations: 58.06 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.006317/0.09893, allocations: 5.511 MB / 462.5 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002004/0.101, allocations: 1.359 MB / 463.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001985/0.1012, allocations: 15.88 kB / 463.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004125/0.1016, allocations: 139 kB / 464 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006964/0.1023, allocations: 378.1 kB / 464.4 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002773/0.1026, allocations: 155.7 kB / 464.5 MB, free: 404 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006874/0.1033, allocations: 0.7788 MB / 465.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003022/0.1036, allocations: 217.7 kB / 465.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003796/0.104, allocations: 342.5 kB / 465.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000551/0.1046, allocations: 402.6 kB / 466.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.545e-05/0.1047, allocations: 40 kB / 466.3 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.268e-05/0.1048, allocations: 40 kB / 466.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001802/0.1049, allocations: 207.4 kB / 466.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002521/0.1052, allocations: 274.5 kB / 466.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005014/0.1057, allocations: 0.5605 MB / 467.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1057, allocations: 4 kB / 467.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1057, allocations: 0 / 467.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.938e-06/0.1057, allocations: 0 / 467.3 MB, free: 13.55 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.001326/0.1071, allocations: 0.8919 MB / 468.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.1071, allocations: 11.89 kB / 468.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.51e-05/0.1072, allocations: 86.64 kB / 468.3 MB, free: 12.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.885e-05/0.1073, allocations: 64.19 kB / 468.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006334/0.1079, allocations: 490.4 kB / 468.9 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.108, allocations: 29 kB / 468.9 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.486e-05/0.1081, allocations: 43.94 kB / 468.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006885/0.1087, allocations: 0.5352 MB / 469.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.1088, allocations: 3.984 kB / 469.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.1088, allocations: 23.97 kB / 469.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.149e-05/0.1089, allocations: 21 kB / 469.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005713/0.1094, allocations: 391.6 kB / 469.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002026/0.1115, allocations: 1.924 MB / 471.8 MB, free: 8.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004963/0.112, allocations: 337.3 kB / 472.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002875/0.1123, allocations: 185.7 kB / 472.3 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.1123, allocations: 4 kB / 472.3 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003222/0.1126, allocations: 276.8 kB / 472.6 MB, free: 7.969 MB / 350.1 MB Notification: Performance of pre-optimization done (n=35): time 3.126e-06/0.1126, allocations: 7.938 kB / 472.6 MB, free: 7.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=36): time 0.001577/0.1142, allocations: 1.191 MB / 473.8 MB, free: 6.695 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.1143, allocations: 162.2 kB / 474 MB, free: 6.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003369/0.1147, allocations: 397.8 kB / 474.4 MB, free: 6.098 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.1147, allocations: 29.7 kB / 474.4 MB, free: 6.062 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.1149, allocations: 295.6 kB / 474.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.945e-05/0.115, allocations: 126.4 kB / 474.8 MB, free: 5.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000111/0.1151, allocations: 90.16 kB / 474.9 MB, free: 5.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.1152, allocations: 358.8 kB / 475.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001846/0.1154, allocations: 125 kB / 475.4 MB, free: 5.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002651/0.1156, allocations: 286.1 kB / 475.6 MB, free: 4.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004778/0.1161, allocations: 485.3 kB / 476.1 MB, free: 4.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1161, allocations: 4 kB / 476.1 MB, free: 4.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006518/0.1168, allocations: 0.5175 MB / 476.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/0.1168, allocations: 33.7 kB / 476.7 MB, free: 3.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1169, allocations: 4.688 kB / 476.7 MB, free: 3.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.1169, allocations: 8 kB / 476.7 MB, free: 3.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003909/0.1173, allocations: 115.8 kB / 476.8 MB, free: 3.457 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.1173, allocations: 11.94 kB / 476.8 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002405/0.1175, allocations: 23.98 kB / 476.8 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.295e-05/0.1176, allocations: 31.97 kB / 476.9 MB, free: 3.391 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.0002116/0.1178, allocations: 244.2 kB / 477.1 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.578e-05/0.1179, allocations: 55.34 kB / 477.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006085/0.1185, allocations: 463.1 kB / 477.6 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.1185, allocations: 4 kB / 477.6 MB, free: 2.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1185, allocations: 4 kB / 477.6 MB, free: 2.605 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.1185, allocations: 3.938 kB / 477.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/0.1196, allocations: 0.9692 MB / 478.6 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.1196, allocations: 4 kB / 478.6 MB, free: 1.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002932/0.1199, allocations: 63.95 kB / 478.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1199, allocations: 4.031 kB / 478.7 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.1199, allocations: 12 kB / 478.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.12, allocations: 3.938 kB / 478.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.12, allocations: 0 / 478.7 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008129/0.1208, allocations: 0.7094 MB / 479.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.1209, allocations: 140.5 kB / 479.5 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.62e-05/0.121, allocations: 16.06 kB / 479.5 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.1212, allocations: 15.98 kB / 479.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.969e-05/0.1213, allocations: 20.03 kB / 479.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.561e-05/0.1213, allocations: 39.91 kB / 479.6 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002486/0.1216, allocations: 271.1 kB / 479.9 MB, free: 240 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1216, allocations: 0 / 479.9 MB, free: 240 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003912/0.122, allocations: 104 kB / 480 MB, free: 136 kB / 350.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.00106/0.123, allocations: 1.262 MB / 481.2 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006255/0.1237, allocations: 447.8 kB / 481.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.1237, allocations: 0 / 481.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002787/0.124, allocations: 259.6 kB / 481.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006574/0.1246, allocations: 107.3 kB / 482 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004559/0.1292, allocations: 4.16 MB / 486.2 MB, free: 9.629 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004222/0.1297, allocations: 0.8781 MB / 487.1 MB, free: 8.727 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002941/0.13, allocations: 96.3 kB / 487.2 MB, free: 8.629 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001974/0.1302, allocations: 175.4 kB / 487.3 MB, free: 8.457 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1302, allocations: 0 / 487.3 MB, free: 8.457 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.1566, allocations: 8.503 MB / 495.8 MB, free: 60 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.353/7.51, allocations: 27.06 kB / 495.9 MB, free: 40 kB / 366.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)