Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.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.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",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.002579/0.002579, allocations: 181.8 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.854/1.854, allocations: 194.2 MB / 208.4 MB, free: 6.723 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.002027/0.002027, allocations: 120.7 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2017/0.2017, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.692e-05/4.698e-05, allocations: 7.938 kB / 397.6 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3218/0.3219, allocations: 53.22 MB / 450.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4841/0.8061, allocations: 94.97 MB / 0.533 GB, free: 31.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000376/0.8065, allocations: 92.88 kB / 0.5331 GB, free: 31.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05241/0.8589, allocations: 16.91 MB / 0.5496 GB, free: 29.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.859, allocations: 0 / 0.5496 GB, free: 29.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001171/0.8591, allocations: 20.72 kB / 0.5497 GB, free: 29.94 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: 166 * Number of variables: 166 Notification: Performance of Generate backend data structure: time 0.00298/0.8621, allocations: 1.013 MB / 0.5506 GB, free: 29.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/0.8622, allocations: 15.69 kB / 0.5507 GB, free: 29.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004048/0.8626, allocations: 109.1 kB / 0.5508 GB, free: 29.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003773/0.863, allocations: 93.62 kB / 0.5509 GB, free: 29.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005173/0.8682, allocations: 1.688 MB / 0.5525 GB, free: 28.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.686e-05/0.8683, allocations: 58.23 kB / 0.5526 GB, free: 28.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000175/0.8685, allocations: 65.34 kB / 0.5526 GB, free: 28.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.87, allocations: 0.786 MB / 0.5534 GB, free: 28.68 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.507e-05/0.87, allocations: 7.875 kB / 0.5534 GB, free: 28.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.823e-05/0.8701, allocations: 25.69 kB / 0.5534 GB, free: 28.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.319e-05/0.8702, allocations: 31.39 kB / 0.5534 GB, free: 28.68 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.8712, allocations: 0.5981 MB / 0.554 GB, free: 28.67 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004044/0.8753, allocations: 2.646 MB / 0.5566 GB, free: 27.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009193/0.8762, allocations: 0.5961 MB / 0.5572 GB, free: 27.35 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000558/0.8768, allocations: 372.6 kB / 0.5576 GB, free: 27.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.8768, allocations: 12.3 kB / 0.5576 GB, free: 27.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005748/0.8774, allocations: 467.7 kB / 0.558 GB, free: 27.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.835e-06/0.8774, allocations: 0 / 0.558 GB, free: 27.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.002672/0.8801, allocations: 1.752 MB / 0.5597 GB, free: 26.42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.8803, allocations: 254.6 kB / 0.56 GB, free: 26.13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006631/0.8809, allocations: 493.4 kB / 0.5604 GB, free: 26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.643e-05/0.881, allocations: 40.8 kB / 0.5605 GB, free: 25.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003019/0.8813, allocations: 394.7 kB / 0.5609 GB, free: 25.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001656/0.8815, allocations: 207.7 kB / 0.561 GB, free: 25.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.01e-05/0.8815, allocations: 17.94 kB / 0.5611 GB, free: 25.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.8817, allocations: 382.2 kB / 0.5614 GB, free: 25.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003179/0.882, allocations: 217.5 kB / 0.5616 GB, free: 25.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003907/0.8824, allocations: 450.3 kB / 0.5621 GB, free: 25.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000415/0.8828, allocations: 325.2 kB / 0.5624 GB, free: 24.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.8828, allocations: 3.969 kB / 0.5624 GB, free: 24.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001384/0.8842, allocations: 0.9368 MB / 0.5633 GB, free: 24.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.063e-05/0.8843, allocations: 67.08 kB / 0.5634 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.8843, allocations: 7.812 kB / 0.5634 GB, free: 24.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000392/0.8847, allocations: 108.7 kB / 0.5635 GB, free: 24.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004764/0.8852, allocations: 147.2 kB / 0.5636 GB, free: 24.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002427/0.8876, allocations: 3.196 MB / 0.5667 GB, free: 21.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005296/0.8882, allocations: 45.62 kB / 0.5668 GB, free: 21.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.841e-05/0.8883, allocations: 57.62 kB / 0.5668 GB, free: 21.94 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (system.initime,$whenCondition3,$whenCondition4,$PRE.tapRelay1.cnt_1,tapRelay1.cnt_1,$PRE.tapRelay1.cnt_2,tapRelay1.cnt_2,$whenCondition1,$whenCondition2,$PRE.tapRelay2.cnt_1,tapRelay2.cnt_1,$PRE.tapRelay2.cnt_2,tapRelay2.cnt_2,$PRE.tapRelay2.tap_1,tapRelay2.tap_1,$PRE.tapRelay2.tap_2,tapRelay2.tap_2,$PRE.tapRelay1.tap_1,tapRelay1.tap_1,$PRE.tapRelay1.tap_2,tapRelay1.tap_2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002027/0.8885, allocations: 225.6 kB / 0.567 GB, free: 21.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.8886, allocations: 78.22 kB / 0.5671 GB, free: 21.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001188/0.8898, allocations: 0.7844 MB / 0.5679 GB, free: 21.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.8898, allocations: 3.906 kB / 0.5679 GB, free: 21.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.8899, allocations: 3.953 kB / 0.5679 GB, free: 21.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.8899, allocations: 11.73 kB / 0.5679 GB, free: 21.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002121/0.892, allocations: 1.544 MB / 0.5694 GB, free: 21.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.892, allocations: 3.938 kB / 0.5694 GB, free: 21.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004644/0.8925, allocations: 110 kB / 0.5695 GB, free: 21.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.8925, allocations: 7.844 kB / 0.5695 GB, free: 21.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.786e-05/0.8926, allocations: 18.61 kB / 0.5695 GB, free: 21.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.8926, allocations: 7.188 kB / 0.5696 GB, free: 21.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.8926, allocations: 0 / 0.5696 GB, free: 21.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001393/0.894, allocations: 1.226 MB / 0.5708 GB, free: 20.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000278/0.8943, allocations: 191.6 kB / 0.5709 GB, free: 20.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.927e-05/0.8944, allocations: 14.75 kB / 0.5709 GB, free: 20.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003386/0.8947, allocations: 36.89 kB / 0.571 GB, free: 20.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.8948, allocations: 42.19 kB / 0.571 GB, free: 20.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.114e-05/0.8949, allocations: 61.47 kB / 0.5711 GB, free: 20.65 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004273/0.8954, allocations: 384.8 kB / 0.5715 GB, free: 20.56 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.8954, allocations: 4 kB / 0.5715 GB, free: 20.55 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000842/0.8962, allocations: 185.6 kB / 0.5716 GB, free: 20.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (trafo1.i1,trafo2.i1) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,tapRelay2.tap_1,tapRelay2.tap_2,tapRelay2.cnt_1,tapRelay2.cnt_2,tapRelay1.tap_1,tapRelay1.tap_2,tapRelay1.cnt_1,tapRelay1.cnt_2,system.initime) * Number of discrete states: 12 (tapRelay1.tap_2,tapRelay1.cnt_2,$whenCondition4,tapRelay1.tap_1,tapRelay1.cnt_1,$whenCondition3,tapRelay2.tap_2,tapRelay2.cnt_2,$whenCondition2,tapRelay2.tap_1,tapRelay2.cnt_1,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * 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.001886/0.8981, allocations: 2.119 MB / 0.5737 GB, free: 19.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001355/0.8995, allocations: 0.9766 MB / 0.5747 GB, free: 19 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.8995, allocations: 4.188 kB / 0.5747 GB, free: 19 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004952/0.9, allocations: 499.6 kB / 0.5751 GB, free: 18.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006791/0.9007, allocations: 147.5 kB / 0.5753 GB, free: 18.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002815/0.9035, allocations: 1.367 MB / 0.5766 GB, free: 18.39 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005653/0.9041, allocations: 1.026 MB / 0.5776 GB, free: 17.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005217/0.9046, allocations: 156.3 kB / 0.5778 GB, free: 17.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003725/0.905, allocations: 278 kB / 0.578 GB, free: 17.64 MB / 378.7 MB Notification: Performance of SimCode: time 8.92e-07/0.905, allocations: 4 kB / 0.578 GB, free: 17.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03643/0.9415, allocations: 14.27 MB / 0.592 GB, free: 12.85 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002128/0.9417, allocations: 187.9 kB / 0.5921 GB, free: 12.62 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.547/3.488, allocations: 7.938 kB / 0.5922 GB, free: 12.61 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)