Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008342/0.0008344, allocations: 91.48 kB / 16.3 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008545/0.0008546, allocations: 181.5 kB / 17.2 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 223.2 MB / 241.1 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2697/0.2697, allocations: 38.07 MB / 330.3 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000315/0.0003151, allocations: 8 kB / 400.1 MB, free: 9.207 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2546/0.255, allocations: 59.16 MB / 459.2 MB, free: 30.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger): time 0.006031/0.261, allocations: 7.614 MB / 466.8 MB, free: 24.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002857/0.2639, allocations: 2.157 MB / 469 MB, free: 23.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004157/0.2643, allocations: 59.22 kB / 469.1 MB, free: 23.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000454/0.2648, allocations: 198.4 kB / 469.2 MB, free: 23.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001039/0.2659, allocations: 0.5071 MB / 469.8 MB, free: 22.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005248/0.2664, allocations: 272.1 kB / 470 MB, free: 22.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007748/0.2672, allocations: 0.6209 MB / 470.6 MB, free: 22.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003338/0.2675, allocations: 251.4 kB / 470.9 MB, free: 22.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004621/0.268, allocations: 409.5 kB / 471.3 MB, free: 22.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005898/0.2686, allocations: 437.2 kB / 471.7 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.399e-05/0.2687, allocations: 33.5 kB / 471.7 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001115/0.2688, allocations: 34.41 kB / 471.8 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002431/0.2691, allocations: 268 kB / 472 MB, free: 21.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001517/0.2692, allocations: 179.1 kB / 472.2 MB, free: 21.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006302/0.2699, allocations: 0.67 MB / 472.9 MB, free: 21.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.024e-06/0.2699, allocations: 0 / 472.9 MB, free: 21.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2699, allocations: 0.9688 kB / 472.9 MB, free: 21.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.2699, allocations: 0 / 472.9 MB, free: 21.54 MB / 350.1 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.001467/0.2714, allocations: 1.089 MB / 474 MB, free: 20.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.2714, allocations: 13.75 kB / 474 MB, free: 20.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/0.2715, allocations: 114.7 kB / 474.1 MB, free: 20.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.2716, allocations: 93.14 kB / 474.2 MB, free: 20.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.2727, allocations: 0.6396 MB / 474.8 MB, free: 20.24 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.626e-05/0.2727, allocations: 50.55 kB / 474.9 MB, free: 20.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.2728, allocations: 63.09 kB / 474.9 MB, free: 20.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.274, allocations: 0.8011 MB / 475.7 MB, free: 19.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.274, allocations: 3.938 kB / 475.7 MB, free: 19.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.498e-05/0.274, allocations: 23.81 kB / 475.8 MB, free: 19.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.761e-05/0.2741, allocations: 36.86 kB / 475.8 MB, free: 19.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009053/0.275, allocations: 0.6079 MB / 476.4 MB, free: 19.62 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002983/0.278, allocations: 2.647 MB / 479.1 MB, free: 17.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008845/0.2789, allocations: 0.6318 MB / 479.7 MB, free: 17.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.813e-05/0.2789, allocations: 6.312 kB / 479.7 MB, free: 17.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004727/0.2794, allocations: 498.5 kB / 480.2 MB, free: 16.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=63): time 1.824e-06/0.2794, allocations: 0 / 480.2 MB, free: 16.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=64): time 0.002713/0.2821, allocations: 2.502 MB / 482.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.714e-05/0.2822, allocations: 251.2 kB / 482.9 MB, free: 14.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005252/0.2828, allocations: 0.5596 MB / 483.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.299e-05/0.2828, allocations: 37.95 kB / 483.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000177/0.283, allocations: 399.7 kB / 483.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.2831, allocations: 209.3 kB / 484.1 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.513e-05/0.2831, allocations: 16.25 kB / 484.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.41e-05/0.2832, allocations: 385.8 kB / 484.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.2835, allocations: 226.8 kB / 484.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000363/0.2839, allocations: 454.5 kB / 485.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003691/0.2843, allocations: 333.6 kB / 485.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.2843, allocations: 6.562 kB / 485.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.001159/0.2854, allocations: 0.9793 MB / 486.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.175e-05/0.2855, allocations: 63.41 kB / 486.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.2855, allocations: 8.438 kB / 486.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003302/0.2858, allocations: 125.6 kB / 486.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004081/0.2862, allocations: 143.7 kB / 486.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001994/0.2883, allocations: 3.242 MB / 490.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003702/0.2886, allocations: 43.97 kB / 490.1 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.004e-05/0.2887, allocations: 59.97 kB / 490.2 MB, free: 7.906 MB / 350.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 84 * 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%) 6,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003002/0.289, allocations: 354.7 kB / 490.5 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.602e-05/0.2891, allocations: 79.06 kB / 490.6 MB, free: 7.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009259/0.29, allocations: 0.981 MB / 491.6 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.29, allocations: 8 kB / 491.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.29, allocations: 3.938 kB / 491.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.2901, allocations: 15.81 kB / 491.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001601/0.2917, allocations: 1.742 MB / 493.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2917, allocations: 128 / 493.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004096/0.2921, allocations: 111.9 kB / 493.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.444e-05/0.2922, allocations: 41.7 kB / 493.5 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.497e-05/0.2922, allocations: 23.97 kB / 493.5 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.2933, allocations: 2.762 MB / 496.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2933, allocations: 0 / 496.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.2945, allocations: 1.433 MB / 497.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002259/0.2948, allocations: 184.2 kB / 497.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.937e-05/0.2949, allocations: 20.06 kB / 497.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003159/0.2952, allocations: 35.97 kB / 497.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-05/0.2953, allocations: 40.33 kB / 498 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.16e-05/0.2954, allocations: 55.92 kB / 498 MB, free: 15.44 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003872/0.2958, allocations: 391 kB / 498.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2958, allocations: 0 / 498.4 MB, free: 15.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006784/0.2965, allocations: 192 kB / 498.6 MB, free: 14.88 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 48 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00203/0.2985, allocations: 2.143 MB / 0.489 GB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001488/0.3, allocations: 1.011 MB / 0.49 GB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3, allocations: 0 / 0.49 GB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007169/0.3007, allocations: 0.707 MB / 0.4907 GB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006566/0.3014, allocations: 141.6 kB / 0.4908 GB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008112/0.3095, allocations: 9.248 MB / 0.4999 GB, free: 1.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006808/0.3102, allocations: 1.033 MB / 0.5009 GB, free: 176 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004763/0.3107, allocations: 145.8 kB / 0.501 GB, free: 28 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003825/0.3111, allocations: 275.4 kB / 0.5013 GB, free: 15.76 MB / 382.1 MB Notification: Performance of SimCode: time 1.373e-06/0.3111, allocations: 4 kB / 0.5013 GB, free: 15.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02481/0.3359, allocations: 13.48 MB / 0.5144 GB, free: 2.512 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001929/0.3362, allocations: 214.4 kB / 0.5146 GB, free: 2.273 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.999/2.335, allocations: 3.234 kB / 0.5147 GB, free: 2.273 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Transformation_TapChanger.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Transformation.TapChanger_res.mat does not exist to compare? outputFormat=mat