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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001525/0.001525, allocations: 182 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.731/1.731, allocations: 194.3 MB / 208.4 MB, free: 6.715 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00188/0.00188, allocations: 116.8 kB / 253.5 MB, free: 9.598 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.176/0.176, allocations: 37.9 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.388e-05/4.404e-05, allocations: 4 kB / 397.6 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2665, allocations: 53.22 MB / 450.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4863/0.7529, allocations: 94.88 MB / 0.5329 GB, free: 32 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003387/0.7533, allocations: 91.02 kB / 0.533 GB, free: 32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03493/0.7882, allocations: 11.49 MB / 0.5443 GB, free: 30.53 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.574e-06/0.7883, allocations: 7.75 kB / 0.5443 GB, free: 30.53 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.131e-05/0.7883, allocations: 11.75 kB / 0.5443 GB, free: 30.52 MB / 378.7 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.001279/0.7896, allocations: 0.763 MB / 0.545 GB, free: 29.99 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.7897, allocations: 9.562 kB / 0.545 GB, free: 29.99 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001041/0.7898, allocations: 78.69 kB / 0.5451 GB, free: 29.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.7899, allocations: 67.11 kB / 0.5452 GB, free: 29.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003064/0.793, allocations: 1.223 MB / 0.5464 GB, free: 29.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.067e-05/0.793, allocations: 26.81 kB / 0.5464 GB, free: 29.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.642e-05/0.7931, allocations: 42.19 kB / 0.5464 GB, free: 29.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007642/0.7939, allocations: 0.5271 MB / 0.5469 GB, free: 29.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.7939, allocations: 3.938 kB / 0.5469 GB, free: 29.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.144e-05/0.794, allocations: 17.45 kB / 0.547 GB, free: 29.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-05/0.794, allocations: 20.25 kB / 0.547 GB, free: 29.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005404/0.7945, allocations: 376.6 kB / 0.5473 GB, free: 29.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002334/0.7969, allocations: 1.935 MB / 0.5492 GB, free: 28.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006135/0.7975, allocations: 318.5 kB / 0.5495 GB, free: 28.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003261/0.7979, allocations: 184.8 kB / 0.5497 GB, free: 28.25 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.15e-05/0.7979, allocations: 10.73 kB / 0.5497 GB, free: 28.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003833/0.7983, allocations: 266.8 kB / 0.55 GB, free: 28.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=35): time 4.208e-06/0.7983, allocations: 0 / 0.55 GB, free: 28.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=36): time 0.001564/0.7999, allocations: 1.071 MB / 0.551 GB, free: 27.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.078e-05/0.7999, allocations: 169.8 kB / 0.5512 GB, free: 27.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003222/0.8003, allocations: 339.7 kB / 0.5515 GB, free: 27.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.8003, allocations: 36.67 kB / 0.5515 GB, free: 27.25 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001461/0.8005, allocations: 292.3 kB / 0.5518 GB, free: 27.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.343e-05/0.8005, allocations: 114.9 kB / 0.5519 GB, free: 27.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.722e-05/0.8006, allocations: 15.56 kB / 0.5519 GB, free: 27.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.385e-05/0.8006, allocations: 361.2 kB / 0.5523 GB, free: 26.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001653/0.8008, allocations: 115.8 kB / 0.5524 GB, free: 26.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002326/0.8011, allocations: 274.9 kB / 0.5527 GB, free: 26.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002208/0.8013, allocations: 182.1 kB / 0.5528 GB, free: 26.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.8013, allocations: 3.906 kB / 0.5528 GB, free: 26.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000592/0.8019, allocations: 0.5052 MB / 0.5533 GB, free: 26.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.546e-05/0.8019, allocations: 41.27 kB / 0.5534 GB, free: 26.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.802, allocations: 4.5 kB / 0.5534 GB, free: 26.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.802, allocations: 7.781 kB / 0.5534 GB, free: 26.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003823/0.8024, allocations: 113.9 kB / 0.5535 GB, free: 26.28 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.8024, allocations: 7.812 kB / 0.5535 GB, free: 26.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/0.8026, allocations: 26.02 kB / 0.5535 GB, free: 26.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.7e-05/0.8027, allocations: 33.5 kB / 0.5536 GB, free: 26.28 MB / 378.7 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,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2) * Number of discrete 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.0001081/0.8028, allocations: 180.9 kB / 0.5537 GB, free: 26.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.692e-05/0.8029, allocations: 46.88 kB / 0.5538 GB, free: 26.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005822/0.8035, allocations: 442.4 kB / 0.5542 GB, free: 26.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.8035, allocations: 3.906 kB / 0.5542 GB, free: 26.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.8035, allocations: 0 / 0.5542 GB, free: 26.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.8035, allocations: 7.297 kB / 0.5542 GB, free: 26.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.8045, allocations: 0.9371 MB / 0.5551 GB, free: 25.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.8045, allocations: 0 / 0.5551 GB, free: 25.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000283/0.8048, allocations: 64.42 kB / 0.5552 GB, free: 25.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.8048, allocations: 7.969 kB / 0.5552 GB, free: 25.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/0.8049, allocations: 18.69 kB / 0.5552 GB, free: 25.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.8049, allocations: 0 / 0.5552 GB, free: 25.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.8049, allocations: 3.906 kB / 0.5552 GB, free: 25.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007271/0.8056, allocations: 0.7248 MB / 0.5559 GB, free: 25.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.8058, allocations: 141.6 kB / 0.5561 GB, free: 25.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.542e-05/0.8058, allocations: 7.844 kB / 0.5561 GB, free: 25.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.806, allocations: 18.8 kB / 0.5561 GB, free: 25.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.846e-05/0.8061, allocations: 22.33 kB / 0.5561 GB, free: 25.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-05/0.8062, allocations: 37.25 kB / 0.5561 GB, free: 25.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002174/0.8064, allocations: 261 kB / 0.5564 GB, free: 25.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8064, allocations: 4.062 kB / 0.5564 GB, free: 25.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004414/0.8068, allocations: 120.3 kB / 0.5565 GB, free: 25.18 MB / 378.7 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) * 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.001056/0.8079, allocations: 1.444 MB / 0.5579 GB, free: 24.27 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005405/0.8084, allocations: 402.8 kB / 0.5583 GB, free: 24.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.8085, allocations: 0 / 0.5583 GB, free: 24.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.8087, allocations: 262.6 kB / 0.5586 GB, free: 24.1 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000499/0.8092, allocations: 89.73 kB / 0.5586 GB, free: 24.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.8107, allocations: 0.8363 MB / 0.5595 GB, free: 23.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.811, allocations: 0.892 MB / 0.5603 GB, free: 23.08 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002809/0.8113, allocations: 90.45 kB / 0.5604 GB, free: 23.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001882/0.8115, allocations: 176.6 kB / 0.5606 GB, free: 23.05 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.8115, allocations: 0 / 0.5606 GB, free: 23.05 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02201/0.8335, allocations: 8.66 MB / 0.569 GB, free: 22.29 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002338/0.8338, allocations: 157.7 kB / 0.5692 GB, free: 22.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.461/3.295, allocations: 0 / 0.5692 GB, free: 22.06 MB / 378.7 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)