Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.002162/0.002162, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.041/2.041, allocations: 205.3 MB / 213.7 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001121/0.001121, allocations: 94.56 kB / 261.8 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2597/0.2597, allocations: 37.98 MB / 347.7 MB, free: 5.773 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.98e-05/1.978e-05, allocations: 0 / 409.9 MB, free: 35.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1086, allocations: 56.33 MB / 466.3 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.526/0.6346, allocations: 99.4 MB / 0.5524 GB, free: 9.391 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002859/0.635, allocations: 89.52 kB / 0.5525 GB, free: 9.379 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06863/0.7036, allocations: 16.75 MB / 0.5689 GB, free: 13.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.7036, allocations: 3.938 kB / 0.5689 GB, free: 13.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.598e-05/0.7037, allocations: 16 kB / 0.5689 GB, free: 13.5 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.002526/0.7063, allocations: 1.009 MB / 0.5699 GB, free: 12.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.7063, allocations: 12.03 kB / 0.5699 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002965/0.7066, allocations: 94.83 kB / 0.57 GB, free: 12.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006726/0.7134, allocations: 1.678 MB / 0.5716 GB, free: 10.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.429e-05/0.7135, allocations: 24 kB / 0.5716 GB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001397/0.7136, allocations: 36 kB / 0.5717 GB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00155/0.7152, allocations: 0.5604 MB / 0.5722 GB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.7168, allocations: 0.6952 MB / 0.5729 GB, free: 9.934 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.624e-05/0.7169, allocations: 4 kB / 0.5729 GB, free: 9.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.335e-05/0.7169, allocations: 3.953 kB / 0.5729 GB, free: 9.926 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.768e-05/0.717, allocations: 33.3 kB / 0.5729 GB, free: 9.891 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00535/0.7224, allocations: 2.539 MB / 0.5754 GB, free: 7.668 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.7239, allocations: 0.5692 MB / 0.576 GB, free: 7.281 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008733/0.7248, allocations: 351.6 kB / 0.5763 GB, free: 7.035 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.903e-05/0.7248, allocations: 4.438 kB / 0.5763 GB, free: 7.031 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008111/0.7256, allocations: 464 kB / 0.5767 GB, free: 6.617 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.865e-06/0.7257, allocations: 0 / 0.5767 GB, free: 6.617 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.003504/0.7292, allocations: 1.473 MB / 0.5782 GB, free: 5.348 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001573/0.7294, allocations: 250.6 kB / 0.5784 GB, free: 5.051 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007942/0.7302, allocations: 461.1 kB / 0.5789 GB, free: 4.691 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.147e-05/0.7303, allocations: 29.7 kB / 0.5789 GB, free: 4.656 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003692/0.7306, allocations: 427 kB / 0.5793 GB, free: 4.332 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002334/0.7309, allocations: 201 kB / 0.5795 GB, free: 4.16 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.029e-05/0.7309, allocations: 4 kB / 0.5795 GB, free: 4.156 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.7311, allocations: 339.6 kB / 0.5798 GB, free: 3.828 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000492/0.7316, allocations: 197.6 kB / 0.58 GB, free: 3.699 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006759/0.7323, allocations: 431.8 kB / 0.5804 GB, free: 3.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005983/0.7329, allocations: 264.4 kB / 0.5807 GB, free: 3.086 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.7329, allocations: 0 / 0.5807 GB, free: 3.086 MB / 378.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.002078/0.735, allocations: 0.7572 MB / 0.5814 GB, free: 2.473 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.665e-05/0.7351, allocations: 59.41 kB / 0.5815 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.902e-05/0.7352, allocations: 8 kB / 0.5815 GB, free: 2.395 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005649/0.7357, allocations: 103.4 kB / 0.5816 GB, free: 2.305 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009694/0.7367, allocations: 151.1 kB / 0.5817 GB, free: 2.164 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003945/0.7407, allocations: 3.088 MB / 0.5847 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000838/0.7416, allocations: 27.92 kB / 0.5848 GB, free: 15.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.7417, allocations: 51.58 kB / 0.5848 GB, free: 15.04 MB / 394.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.0002927/0.742, allocations: 207.8 kB / 0.585 GB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001507/0.7435, allocations: 0.632 MB / 0.5856 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/0.7437, allocations: 79.05 kB / 0.5857 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001581/0.7453, allocations: 0.6532 MB / 0.5863 GB, free: 13.76 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.7453, allocations: 4 kB / 0.5863 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.7453, allocations: 0 / 0.5863 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.7453, allocations: 7.984 kB / 0.5863 GB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003182/0.7485, allocations: 1.359 MB / 0.5877 GB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.7486, allocations: 0 / 0.5877 GB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009576/0.7495, allocations: 118.5 kB / 0.5878 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-05/0.7496, allocations: 4 kB / 0.5878 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.344e-05/0.7496, allocations: 12.09 kB / 0.5878 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.918e-06/0.7497, allocations: 8.172 kB / 0.5878 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.383e-06/0.7497, allocations: 4 kB / 0.5878 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002246/0.7519, allocations: 1.108 MB / 0.5889 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004211/0.7524, allocations: 185.2 kB / 0.5891 GB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.7525, allocations: 8 kB / 0.5891 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005842/0.7531, allocations: 19.98 kB / 0.5891 GB, free: 11.39 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.7533, allocations: 47.06 kB / 0.5891 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/0.7534, allocations: 61.97 kB / 0.5892 GB, free: 11.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005874/0.754, allocations: 338.3 kB / 0.5895 GB, free: 11.04 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.754, allocations: 0 / 0.5895 GB, free: 11.04 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001123/0.7552, allocations: 167.8 kB / 0.5897 GB, free: 10.88 MB / 394.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.0029/0.7581, allocations: 1.995 MB / 0.5916 GB, free: 9.094 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002099/0.7602, allocations: 0.9235 MB / 0.5925 GB, free: 8.293 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.7602, allocations: 0 / 0.5925 GB, free: 8.293 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008405/0.7611, allocations: 482.7 kB / 0.593 GB, free: 7.922 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001121/0.7622, allocations: 124.1 kB / 0.5931 GB, free: 7.828 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003837/0.7661, allocations: 1.398 MB / 0.5945 GB, free: 6.543 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008604/0.767, allocations: 1.024 MB / 0.5955 GB, free: 5.512 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005422/0.7675, allocations: 284.3 kB / 0.5958 GB, free: 5.434 MB / 394.7 MB Notification: Performance of SimCode: time 1.032e-06/0.7675, allocations: 0 / 0.5958 GB, free: 5.434 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3/3.767, allocations: 15.61 MB / 0.611 GB, free: 5.957 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1)