Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_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.001001/0.001001, allocations: 179.6 kB / 8.352 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.649/1.649, allocations: 194.3 MB / 203.1 MB, free: 13.02 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.001684/0.001684, allocations: 109.6 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1663/0.1663, allocations: 37.93 MB / 330.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.834e-05/1.836e-05, allocations: 0 / 390.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.2945, allocations: 53.23 MB / 443.7 MB, free: 17.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4125/0.707, allocations: 104.1 MB / 0.535 GB, free: 92.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002998/0.7074, allocations: 87.78 kB / 0.5351 GB, free: 92.27 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1175/0.825, allocations: 48.51 MB / 0.5824 GB, free: 45.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.825, allocations: 0 / 0.5824 GB, free: 45.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.174e-05/0.8251, allocations: 36 kB / 0.5825 GB, free: 45.95 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: 423 * Number of variables: 423 Notification: Performance of Generate backend data structure: time 0.00272/0.8278, allocations: 1.588 MB / 0.584 GB, free: 44.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.8279, allocations: 8.031 kB / 0.584 GB, free: 44.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002414/0.8303, allocations: 453.3 kB / 0.5845 GB, free: 43.84 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004913/0.8352, allocations: 2.068 MB / 0.5865 GB, free: 41.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.8353, allocations: 47.94 kB / 0.5865 GB, free: 41.68 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001947/0.8355, allocations: 91.84 kB / 0.5866 GB, free: 41.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002261/0.8377, allocations: 1.533 MB / 0.5881 GB, free: 40.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/0.8402, allocations: 2.026 MB / 0.5901 GB, free: 37.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.295e-05/0.8402, allocations: 7.938 kB / 0.5901 GB, free: 37.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.8403, allocations: 11.95 kB / 0.5901 GB, free: 37.85 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002808/0.8406, allocations: 182.8 kB / 0.5903 GB, free: 37.67 MB / 378.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00813/0.8488, allocations: 8.97 MB / 0.599 GB, free: 28.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001598/0.8504, allocations: 1.385 MB / 0.6004 GB, free: 26.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006517/0.851, allocations: 0.6265 MB / 0.601 GB, free: 26.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.573e-05/0.8511, allocations: 21.3 kB / 0.601 GB, free: 26.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000931/0.8521, allocations: 0.8878 MB / 0.6019 GB, free: 25.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=142): time 3.878e-06/0.8521, allocations: 0 / 0.6019 GB, free: 25.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=143): time 0.004662/0.8567, allocations: 3.429 MB / 0.6052 GB, free: 21.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.8569, allocations: 290.4 kB / 0.6055 GB, free: 21.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007899/0.8577, allocations: 0.6967 MB / 0.6062 GB, free: 20.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.864e-05/0.8577, allocations: 33.69 kB / 0.6062 GB, free: 20.65 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004001/0.8581, allocations: 0.736 MB / 0.6069 GB, free: 19.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000263/0.8584, allocations: 481 kB / 0.6074 GB, free: 19.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.205e-05/0.8585, allocations: 0 / 0.6074 GB, free: 19.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.8586, allocations: 442.6 kB / 0.6078 GB, free: 18.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006726/0.8593, allocations: 0.5701 MB / 0.6084 GB, free: 18.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008562/0.8602, allocations: 1.112 MB / 0.6095 GB, free: 17.06 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009669/0.8611, allocations: 0.8025 MB / 0.6103 GB, free: 16.26 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.8612, allocations: 4 kB / 0.6103 GB, free: 16.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.003406/0.8646, allocations: 2.288 MB / 0.6125 GB, free: 13.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.978e-05/0.8646, allocations: 67.39 kB / 0.6126 GB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002423/0.8671, allocations: 1.596 MB / 0.6141 GB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001339/0.8684, allocations: 0.5297 MB / 0.6146 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009722/0.8694, allocations: 323.5 kB / 0.6149 GB, free: 11.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006928/0.8763, allocations: 8.283 MB / 0.623 GB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/0.8776, allocations: 60 kB / 0.6231 GB, free: 2.602 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.8778, allocations: 99.95 kB / 0.6232 GB, free: 2.504 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (170): * Single equations (assignments): 161 * Array equations: 3 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(3,77.8%) 10,(2,100.0%) 12,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000318/0.8781, allocations: 233.5 kB / 0.6234 GB, free: 2.254 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001884/0.88, allocations: 1.409 MB / 0.6248 GB, free: 0.8359 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001247/0.8801, allocations: 122.5 kB / 0.6249 GB, free: 0.7148 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002398/0.8825, allocations: 1.52 MB / 0.6264 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.334e-05/0.8826, allocations: 28.05 kB / 0.6264 GB, free: 15.16 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.8826, allocations: 4 kB / 0.6264 GB, free: 15.15 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.8826, allocations: 3.984 kB / 0.6264 GB, free: 15.15 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004765/0.8874, allocations: 2.868 MB / 0.6292 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.8874, allocations: 4 kB / 0.6292 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001409/0.8888, allocations: 311.8 kB / 0.6295 GB, free: 11.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.156e-05/0.8889, allocations: 8 kB / 0.6295 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.12e-05/0.8889, allocations: 19.98 kB / 0.6295 GB, free: 11.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.087e-06/0.889, allocations: 7.953 kB / 0.6296 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.889, allocations: 7.938 kB / 0.6296 GB, free: 11.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003407/0.8924, allocations: 2.448 MB / 0.632 GB, free: 9.336 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005766/0.893, allocations: 315.5 kB / 0.6323 GB, free: 9.008 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001506/0.8931, allocations: 12.08 kB / 0.6323 GB, free: 8.996 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006038/0.8937, allocations: 55.78 kB / 0.6323 GB, free: 8.941 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/0.8939, allocations: 85.2 kB / 0.6324 GB, free: 8.855 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/0.8941, allocations: 75.92 kB / 0.6325 GB, free: 8.781 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007221/0.8948, allocations: 0.5115 MB / 0.633 GB, free: 8.258 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8948, allocations: 0 / 0.633 GB, free: 8.258 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001607/0.8964, allocations: 407.9 kB / 0.6334 GB, free: 7.859 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (trafo1.i1[1],trafo1.i1[2],trafo1.i1[3],trafo2.i1[1],trafo2.i1[2],trafo2.i1[3]) * 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 (124): * Single equations (assignments): 118 * Array equations: 3 * 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.004225/0.9006, allocations: 3.608 MB / 0.6369 GB, free: 4.176 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003585/0.9042, allocations: 2.263 MB / 0.6391 GB, free: 1.852 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.9043, allocations: 0 / 0.6391 GB, free: 1.852 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.9054, allocations: 0.9116 MB / 0.64 GB, free: 0.918 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.9065, allocations: 167.3 kB / 0.6401 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006099/0.9126, allocations: 3.176 MB / 0.6432 GB, free: 13.51 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001295/0.9139, allocations: 1.498 MB / 0.6447 GB, free: 11.97 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001258/0.9152, allocations: 466.1 kB / 0.6452 GB, free: 11.51 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007375/0.9159, allocations: 0.5657 MB / 0.6457 GB, free: 10.95 MB / 410.7 MB Notification: Performance of SimCode: time 1.243e-06/0.916, allocations: 4 kB / 0.6457 GB, free: 10.94 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05473/0.9707, allocations: 26.01 MB / 0.6711 GB, free: 0.8906 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002172/0.971, allocations: 135.1 kB / 0.6712 GB, free: 0.7031 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.801/3.772, allocations: 7.875 kB / 0.6712 GB, free: 0.6953 MB / 426.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Transformation_TapChanger.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1)