Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.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.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Transformation.TapChanger,fileNamePrefix="PowerSystems_cpp_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.3+maint.om/package.mo): time 0.002107/0.002107, allocations: 185.8 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.011/2.011, allocations: 205.2 MB / 218.9 MB, free: 9.152 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001091/0.001091, allocations: 87.47 kB / 267.1 MB, free: 9.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3235/0.3235, allocations: 37.96 MB / 353.1 MB, free: 3.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.223e-05/3.24e-05, allocations: 0 / 416.9 MB, free: 41.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 56.32 MB / 473.2 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5212/0.6303, allocations: 109.9 MB / 0.5694 GB, free: 9.777 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003361/0.6307, allocations: 91.94 kB / 0.5695 GB, free: 9.688 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2394/0.8702, allocations: 48.97 MB / 0.6173 GB, free: 8.109 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.8702, allocations: 4 kB / 0.6173 GB, free: 8.105 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000112/0.8704, allocations: 39.98 kB / 0.6174 GB, free: 8.066 MB / 458.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.004878/0.8753, allocations: 1.588 MB / 0.6189 GB, free: 6.41 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.8753, allocations: 8.031 kB / 0.6189 GB, free: 6.402 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005117/0.8759, allocations: 244.5 kB / 0.6192 GB, free: 6.152 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00444/0.8803, allocations: 453.3 kB / 0.6196 GB, free: 5.707 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008466/0.8888, allocations: 2.068 MB / 0.6216 GB, free: 3.594 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001243/0.889, allocations: 106.7 kB / 0.6217 GB, free: 3.488 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003939/0.8894, allocations: 139.9 kB / 0.6219 GB, free: 3.352 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005498/0.8949, allocations: 2.227 MB / 0.624 GB, free: 0.9688 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.389e-05/0.895, allocations: 7.938 kB / 0.624 GB, free: 0.9609 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002341/0.8952, allocations: 59.97 kB / 0.6241 GB, free: 0.9023 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005586/0.8958, allocations: 186.8 kB / 0.6243 GB, free: 0.7188 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004766/0.9006, allocations: 1.717 MB / 0.626 GB, free: 15 MB / 474.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.01817/0.9188, allocations: 9.295 MB / 0.635 GB, free: 5.23 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003813/0.9226, allocations: 1.452 MB / 0.6364 GB, free: 3.738 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001659/0.9243, allocations: 0.666 MB / 0.6371 GB, free: 3.07 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001391/0.9245, allocations: 20.98 kB / 0.6371 GB, free: 3.051 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002015/0.9265, allocations: 0.9231 MB / 0.638 GB, free: 2.086 MB / 474.7 MB Notification: Performance of pre-optimization done (n=142): time 4.729e-06/0.9265, allocations: 0 / 0.638 GB, free: 2.086 MB / 474.7 MB Notification: Performance of matching and sorting (n=143): time 0.334/1.261, allocations: 3.75 MB / 0.6417 GB, free: 120.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/1.261, allocations: 281.4 kB / 0.642 GB, free: 120.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001681/1.262, allocations: 0.7554 MB / 0.6427 GB, free: 120.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003037/1.263, allocations: 52.08 kB / 0.6427 GB, free: 120 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006919/1.263, allocations: 0.7482 MB / 0.6435 GB, free: 119.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006877/1.264, allocations: 489.8 kB / 0.6439 GB, free: 119.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/1.264, allocations: 34.86 kB / 0.644 GB, free: 119.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001552/1.264, allocations: 385.8 kB / 0.6443 GB, free: 119.1 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00166/1.266, allocations: 0.6074 MB / 0.6449 GB, free: 119.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002019/1.268, allocations: 1.146 MB / 0.6461 GB, free: 118.5 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002378/1.271, allocations: 0.8784 MB / 0.6469 GB, free: 118.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.864e-05/1.271, allocations: 9.125 kB / 0.6469 GB, free: 118.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.008424/1.279, allocations: 2.472 MB / 0.6493 GB, free: 118.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.762e-05/1.279, allocations: 73.58 kB / 0.6494 GB, free: 118.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005699/1.285, allocations: 1.676 MB / 0.651 GB, free: 118 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002983/1.288, allocations: 0.5436 MB / 0.6516 GB, free: 118 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002408/1.29, allocations: 324 kB / 0.6519 GB, free: 118 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01454/1.305, allocations: 8.65 MB / 0.6603 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00202/1.307, allocations: 94.19 kB / 0.6604 GB, free: 112.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003207/1.307, allocations: 99.06 kB / 0.6605 GB, free: 112.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * 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 (169): * Single equations (assignments): 160 * 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,(2,100.0%) 11,(2,100.0%) 12,(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005148/1.308, allocations: 288.1 kB / 0.6608 GB, free: 112.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003448/1.308, allocations: 123.9 kB / 0.6609 GB, free: 112.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004627/1.313, allocations: 1.678 MB / 0.6625 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.601e-05/1.313, allocations: 21.67 kB / 0.6626 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/1.313, allocations: 0.5156 kB / 0.6626 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.358e-05/1.313, allocations: 9.875 kB / 0.6626 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008921/1.322, allocations: 3.198 MB / 0.6657 GB, free: 112 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/1.322, allocations: 2.75 kB / 0.6657 GB, free: 112 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003023/1.325, allocations: 315.3 kB / 0.666 GB, free: 112 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.007e-05/1.325, allocations: 10.23 kB / 0.666 GB, free: 112 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002543/1.326, allocations: 40.12 kB / 0.666 GB, free: 112 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.296e-05/1.326, allocations: 7.062 kB / 0.6661 GB, free: 112 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.154e-06/1.326, allocations: 7.203 kB / 0.6661 GB, free: 112 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006074/1.332, allocations: 2.605 MB / 0.6686 GB, free: 111.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/1.333, allocations: 316.5 kB / 0.6689 GB, free: 111.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002752/1.333, allocations: 37.22 kB / 0.6689 GB, free: 111.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0012/1.334, allocations: 68.34 kB / 0.669 GB, free: 111.3 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002452/1.335, allocations: 84.86 kB / 0.6691 GB, free: 111.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001821/1.335, allocations: 89.77 kB / 0.6692 GB, free: 111.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001041/1.336, allocations: 0.56 MB / 0.6697 GB, free: 111.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.336, allocations: 0 / 0.6697 GB, free: 111.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002541/1.339, allocations: 471.8 kB / 0.6702 GB, free: 111 MB / 474.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.006014/1.345, allocations: 3.766 MB / 0.6738 GB, free: 108.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005344/1.35, allocations: 2.384 MB / 0.6762 GB, free: 107.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/1.35, allocations: 0 / 0.6762 GB, free: 107.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001978/1.352, allocations: 0.9465 MB / 0.6771 GB, free: 107.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/1.354, allocations: 189.6 kB / 0.6773 GB, free: 107.2 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009423/1.363, allocations: 3.443 MB / 0.6806 GB, free: 106 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001345/1.365, allocations: 1.5 MB / 0.6821 GB, free: 105.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001299/1.366, allocations: 0.5763 MB / 0.6827 GB, free: 104.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.162e-06/1.366, allocations: 0 / 0.6827 GB, free: 104.7 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.332/4.697, allocations: 35.23 MB / 0.7171 GB, free: 92.56 MB / 474.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Transformation_TapChanger.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Transformation.TapChanger.pipe 2>&1)