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.0009042/0.0009045, allocations: 84.75 kB / 16.31 MB, free: 5.676 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.001071/0.001071, allocations: 181.4 kB / 17.21 MB, free: 5.59 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.623/1.623, allocations: 205.4 MB / 223.4 MB, free: 13.13 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1787/0.1787, allocations: 38.04 MB / 309.7 MB, free: 6.031 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.0005119/0.0005121, allocations: 12 kB / 376.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2616, allocations: 56.32 MB / 432.9 MB, free: 18.8 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer): time 0.00479/0.2665, allocations: 5.827 MB / 438.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001978/0.2685, allocations: 1.638 MB / 440.4 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002868/0.2688, allocations: 35.75 kB / 440.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003494/0.2692, allocations: 131 kB / 440.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000698/0.2699, allocations: 406 kB / 441 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003544/0.2702, allocations: 183.8 kB / 441.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006359/0.2709, allocations: 0.919 MB / 442.1 MB, free: 9.645 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002558/0.2711, allocations: 163.1 kB / 442.2 MB, free: 9.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003191/0.2715, allocations: 290.6 kB / 442.5 MB, free: 9.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004666/0.2719, allocations: 394.7 kB / 442.9 MB, free: 8.809 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.49e-05/0.272, allocations: 24 kB / 442.9 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.866e-05/0.2721, allocations: 20 kB / 442.9 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001364/0.2722, allocations: 179.5 kB / 443.1 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.434e-05/0.2723, allocations: 125.4 kB / 443.2 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.2726, allocations: 430.8 kB / 443.7 MB, free: 8.039 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.2726, allocations: 3.938 kB / 443.7 MB, free: 8.035 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.2726, allocations: 0 / 443.7 MB, free: 8.035 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.2727, allocations: 0 / 443.7 MB, free: 8.035 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.001123/0.2738, allocations: 0.8062 MB / 444.5 MB, free: 7.176 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.2738, allocations: 8.031 kB / 444.5 MB, free: 7.168 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.256e-05/0.2739, allocations: 90.45 kB / 444.6 MB, free: 7.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.188e-05/0.274, allocations: 59.25 kB / 444.6 MB, free: 7.012 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005762/0.2746, allocations: 469.7 kB / 445.1 MB, free: 6.512 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.2746, allocations: 29 kB / 445.1 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.701e-05/0.2747, allocations: 47.91 kB / 445.2 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006129/0.2753, allocations: 0.5273 MB / 445.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.2753, allocations: 0 / 445.7 MB, free: 5.871 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.33e-05/0.2754, allocations: 16 kB / 445.7 MB, free: 5.855 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.778e-05/0.2754, allocations: 24.95 kB / 445.7 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000473/0.2759, allocations: 395.6 kB / 446.1 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.2776, allocations: 1.932 MB / 448 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004508/0.2781, allocations: 345.2 kB / 448.4 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002355/0.2783, allocations: 173.7 kB / 448.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.2784, allocations: 12 kB / 448.6 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002692/0.2787, allocations: 276.2 kB / 448.8 MB, free: 2.559 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 1.513e-06/0.2787, allocations: 0 / 448.8 MB, free: 2.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=36): time 0.001345/0.28, allocations: 1.179 MB / 450 MB, free: 1.309 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.105e-05/0.2801, allocations: 174.3 kB / 450.2 MB, free: 1.102 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002995/0.2804, allocations: 393.8 kB / 450.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.215e-05/0.2804, allocations: 33.69 kB / 450.6 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.2806, allocations: 287.6 kB / 450.9 MB, free: 396 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.016e-05/0.2806, allocations: 118.3 kB / 451 MB, free: 276 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.806e-05/0.2807, allocations: 12 kB / 451 MB, free: 264 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.2808, allocations: 358.8 kB / 451.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.281, allocations: 121 kB / 451.5 MB, free: 15.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000306/0.2813, allocations: 286.1 kB / 451.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002438/0.2816, allocations: 181.6 kB / 451.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2816, allocations: 0 / 451.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000645/0.2822, allocations: 0.5151 MB / 452.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/0.2823, allocations: 37.8 kB / 452.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/0.2823, allocations: 7.984 kB / 452.5 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.2823, allocations: 8 kB / 452.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003913/0.2827, allocations: 111.8 kB / 452.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.683e-05/0.2827, allocations: 15.92 kB / 452.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002271/0.283, allocations: 23.94 kB / 452.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.083e-05/0.283, allocations: 39.91 kB / 452.7 MB, free: 14.47 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,$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.0002418/0.2833, allocations: 251.3 kB / 452.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.114e-05/0.2833, allocations: 47.39 kB / 453 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006447/0.284, allocations: 451.5 kB / 453.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.284, allocations: 4 kB / 453.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.284, allocations: 0 / 453.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.284, allocations: 0 / 453.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.2851, allocations: 0.9729 MB / 454.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.2852, allocations: 4.031 kB / 454.4 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000287/0.2855, allocations: 71.95 kB / 454.5 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.2855, allocations: 4 kB / 454.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.2855, allocations: 8 kB / 454.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.557e-06/0.2855, allocations: 4 kB / 454.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.2855, allocations: 0 / 454.5 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008271/0.2864, allocations: 0.7094 MB / 455.2 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.2865, allocations: 140.5 kB / 455.3 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.419e-05/0.2866, allocations: 8 kB / 455.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.2868, allocations: 19.98 kB / 455.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.597e-05/0.2868, allocations: 19.97 kB / 455.4 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-05/0.2869, allocations: 35.95 kB / 455.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002309/0.2871, allocations: 263.2 kB / 455.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2871, allocations: 4 kB / 455.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004139/0.2875, allocations: 104 kB / 455.8 MB, free: 11.23 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 (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.001047/0.2886, allocations: 1.263 MB / 457 MB, free: 9.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005317/0.2891, allocations: 418.8 kB / 457.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2892, allocations: 0 / 457.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002763/0.2894, allocations: 261.1 kB / 457.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005517/0.29, allocations: 104.4 kB / 457.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003367/0.2934, allocations: 2.814 MB / 460.6 MB, free: 6.203 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003949/0.2938, allocations: 0.8781 MB / 461.5 MB, free: 5.301 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002879/0.2941, allocations: 92.3 kB / 461.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/0.2943, allocations: 175.4 kB / 461.8 MB, free: 5.035 MB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2943, allocations: 0 / 461.8 MB, free: 5.035 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01977/0.3141, allocations: 8.086 MB / 469.8 MB, free: 12.99 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002066/0.3144, allocations: 189.5 kB / 470 MB, free: 12.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.159, allocations: 0 / 470 MB, free: 12.75 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/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: