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.0008261/0.000826, allocations: 89.58 kB / 16.65 MB, free: 6.59 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.001135/0.001135, allocations: 182.2 kB / 17.56 MB, free: 6.203 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.232/1.232, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1676/0.1676, allocations: 38.05 MB / 310.1 MB, free: 6 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.0005625/0.0005627, allocations: 16 kB / 377.3 MB, free: 2.695 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2502, allocations: 56.32 MB / 433.6 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.004517/0.2548, allocations: 6.151 MB / 439.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001769/0.2566, allocations: 1.699 MB / 441.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002447/0.2568, allocations: 39.75 kB / 441.5 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003264/0.2572, allocations: 115.3 kB / 441.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005202/0.2577, allocations: 362.5 kB / 441.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.2579, allocations: 135.8 kB / 442.1 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000657/0.2586, allocations: 1.153 MB / 443.2 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002282/0.2588, allocations: 184.8 kB / 443.4 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002783/0.2591, allocations: 274.6 kB / 443.7 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004136/0.2595, allocations: 410.6 kB / 444.1 MB, free: 8.137 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.048e-05/0.2596, allocations: 20 kB / 444.1 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.772e-05/0.2596, allocations: 31.94 kB / 444.1 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.2598, allocations: 183.4 kB / 444.3 MB, free: 7.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001678/0.2599, allocations: 276.3 kB / 444.6 MB, free: 7.629 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003178/0.2603, allocations: 0.537 MB / 445.1 MB, free: 7.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2603, allocations: 0 / 445.1 MB, free: 7.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2603, allocations: 4 kB / 445.1 MB, free: 7.086 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.772e-06/0.2603, allocations: 0 / 445.1 MB, free: 7.086 MB / 318.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.0009992/0.2613, allocations: 0.8024 MB / 445.9 MB, free: 6.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.2613, allocations: 8.031 kB / 445.9 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.186e-05/0.2614, allocations: 82.7 kB / 446 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.391e-05/0.2615, allocations: 60.19 kB / 446.1 MB, free: 6.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005175/0.262, allocations: 498.4 kB / 446.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.209e-05/0.2621, allocations: 29 kB / 446.6 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.256e-05/0.2621, allocations: 43.94 kB / 446.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005811/0.2627, allocations: 0.5273 MB / 447.2 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.2627, allocations: 4 kB / 447.2 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.371e-05/0.2628, allocations: 16 kB / 447.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.547e-05/0.2628, allocations: 20.98 kB / 447.2 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004624/0.2633, allocations: 391.6 kB / 447.6 MB, free: 4.488 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001604/0.2649, allocations: 1.94 MB / 449.5 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004248/0.2653, allocations: 336.8 kB / 449.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002433/0.2656, allocations: 182 kB / 450 MB, free: 1.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.2656, allocations: 8 kB / 450 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002729/0.2659, allocations: 288.1 kB / 450.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.683e-06/0.2659, allocations: 0 / 450.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.001298/0.2672, allocations: 1.182 MB / 451.5 MB, free: 344 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.2673, allocations: 166.2 kB / 451.7 MB, free: 140 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003354/0.2676, allocations: 397.8 kB / 452 MB, free: 15.74 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.593e-05/0.2676, allocations: 29.7 kB / 452.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001751/0.2678, allocations: 295.5 kB / 452.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.716e-05/0.2679, allocations: 118.4 kB / 452.5 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-05/0.268, allocations: 49.77 kB / 452.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.2681, allocations: 358.8 kB / 452.9 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001849/0.2683, allocations: 125 kB / 453 MB, free: 14.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002888/0.2686, allocations: 286.1 kB / 453.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005271/0.2691, allocations: 481.3 kB / 453.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.2691, allocations: 4 kB / 453.8 MB, free: 13.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000694/0.2698, allocations: 0.5213 MB / 454.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.156e-05/0.2699, allocations: 33.7 kB / 454.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.2699, allocations: 8.062 kB / 454.3 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.2699, allocations: 8 kB / 454.3 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003769/0.2703, allocations: 116.5 kB / 454.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.2703, allocations: 8 kB / 454.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002246/0.2706, allocations: 23.98 kB / 454.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.573e-05/0.2706, allocations: 39.91 kB / 454.5 MB, free: 13.07 MB / 334.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.0002082/0.2708, allocations: 243.3 kB / 454.7 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.242e-05/0.2709, allocations: 55.36 kB / 454.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006095/0.2715, allocations: 451.7 kB / 455.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.2715, allocations: 8 kB / 455.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2715, allocations: 0 / 455.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2715, allocations: 0 / 455.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001074/0.2726, allocations: 0.969 MB / 456.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.2726, allocations: 0 / 456.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002821/0.2729, allocations: 71.83 kB / 456.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.369e-06/0.2729, allocations: 4 kB / 456.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.188e-05/0.273, allocations: 12.03 kB / 456.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.273, allocations: 4 kB / 456.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.273, allocations: 0 / 456.3 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007997/0.2738, allocations: 0.7092 MB / 457 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.2739, allocations: 144.5 kB / 457.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.951e-05/0.274, allocations: 8 kB / 457.2 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001975/0.2742, allocations: 20.05 kB / 457.2 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.984e-05/0.2743, allocations: 23.97 kB / 457.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.361e-05/0.2743, allocations: 35.95 kB / 457.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002252/0.2745, allocations: 271.1 kB / 457.5 MB, free: 9.926 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2745, allocations: 0 / 457.5 MB, free: 9.926 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003792/0.2749, allocations: 104 kB / 457.6 MB, free: 9.824 MB / 334.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.001019/0.276, allocations: 1.266 MB / 458.9 MB, free: 8.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005008/0.2765, allocations: 415.7 kB / 459.3 MB, free: 8.098 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.2765, allocations: 0 / 459.3 MB, free: 8.098 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002688/0.2767, allocations: 259.2 kB / 459.5 MB, free: 7.832 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006257/0.2774, allocations: 102.3 kB / 459.6 MB, free: 7.73 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004566/0.282, allocations: 4.392 MB / 464 MB, free: 3.102 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.2824, allocations: 0.8781 MB / 464.9 MB, free: 2.199 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002767/0.2827, allocations: 96.3 kB / 465 MB, free: 2.102 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002103/0.2829, allocations: 175.4 kB / 465.2 MB, free: 1.93 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2829, allocations: 3.938 kB / 465.2 MB, free: 1.926 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.227/1.51, allocations: 8.006 MB / 473.2 MB, free: 9.961 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002267/1.51, allocations: 207.9 kB / 473.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.008/3.518, allocations: 7.938 kB / 473.4 MB, free: 9.691 MB / 350.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)