Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.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.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",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.0008714/0.0008715, allocations: 173.3 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.246/1.246, allocations: 205.4 MB / 222.2 MB, free: 9.02 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.0008452/0.0008452, allocations: 94.3 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.166/0.166, allocations: 38.07 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.0003851, allocations: 16 kB / 423.4 MB, free: 37.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2681/0.2685, allocations: 56.32 MB / 479.7 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.004828/0.2734, allocations: 4.605 MB / 484.3 MB, free: 6.215 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003015/0.2765, allocations: 1.692 MB / 486 MB, free: 5.02 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002901/0.2768, allocations: 25.72 kB / 486.1 MB, free: 5.008 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.2771, allocations: 79.06 kB / 486.1 MB, free: 4.969 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007218/0.2778, allocations: 286.3 kB / 486.4 MB, free: 4.812 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007826/0.2786, allocations: 255.4 kB / 486.7 MB, free: 4.707 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008562/0.2794, allocations: 0.7308 MB / 487.4 MB, free: 4.441 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000719/0.2802, allocations: 480 kB / 487.9 MB, free: 4.121 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003913/0.2806, allocations: 223.3 kB / 488.1 MB, free: 4.035 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005196/0.2811, allocations: 321 kB / 488.4 MB, free: 3.938 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.784e-05/0.2812, allocations: 17 kB / 488.4 MB, free: 3.938 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003221/0.2815, allocations: 130.5 kB / 488.5 MB, free: 3.906 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002253/0.2817, allocations: 209.1 kB / 488.7 MB, free: 3.848 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002372/0.282, allocations: 232.2 kB / 489 MB, free: 3.707 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005624/0.2825, allocations: 445.4 kB / 489.4 MB, free: 3.613 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.2826, allocations: 4 kB / 489.4 MB, free: 3.609 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.572e-06/0.2826, allocations: 4 kB / 489.4 MB, free: 3.605 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.2826, allocations: 0 / 489.4 MB, free: 3.605 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001161/0.2838, allocations: 0.6818 MB / 490.1 MB, free: 3.066 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.2838, allocations: 9.969 kB / 490.1 MB, free: 3.066 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/0.2839, allocations: 86.83 kB / 490.2 MB, free: 3 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005741/0.2845, allocations: 103.9 kB / 490.3 MB, free: 2.961 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005353/0.285, allocations: 392 kB / 490.7 MB, free: 2.664 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.876e-05/0.2851, allocations: 26.12 kB / 490.7 MB, free: 2.656 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001413/0.2852, allocations: 62.25 kB / 490.8 MB, free: 2.629 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001016/0.2863, allocations: 0.6601 MB / 491.4 MB, free: 2.258 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.2863, allocations: 1.469 kB / 491.4 MB, free: 2.258 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.441e-05/0.2863, allocations: 17.53 kB / 491.4 MB, free: 2.246 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001623/0.2865, allocations: 54.94 kB / 491.5 MB, free: 2.234 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008166/0.2873, allocations: 491.4 kB / 492 MB, free: 2.082 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003167/0.2905, allocations: 3.154 MB / 495.1 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004755/0.291, allocations: 237.6 kB / 495.4 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001942/0.2912, allocations: 130.7 kB / 495.5 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.779e-05/0.2913, allocations: 4.172 kB / 495.5 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.975e-05/0.2913, allocations: 37.33 kB / 495.5 MB, free: 15.38 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.184e-06/0.2913, allocations: 0 / 495.5 MB, free: 15.38 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.001561/0.2929, allocations: 0.899 MB / 496.4 MB, free: 14.8 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.2929, allocations: 80.36 kB / 496.5 MB, free: 14.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004284/0.2934, allocations: 325.5 kB / 496.8 MB, free: 14.54 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.02e-05/0.2934, allocations: 31.2 kB / 496.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002181/0.2936, allocations: 290.2 kB / 497.1 MB, free: 14.27 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.493e-05/0.2937, allocations: 90.81 kB / 497.2 MB, free: 14.2 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.155e-05/0.2937, allocations: 10.38 kB / 497.2 MB, free: 14.19 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.2939, allocations: 346.3 kB / 497.6 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/0.2941, allocations: 134.8 kB / 497.7 MB, free: 13.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003691/0.2945, allocations: 321.6 kB / 498 MB, free: 13.53 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006654/0.2952, allocations: 0.4929 MB / 498.5 MB, free: 13.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.626e-06/0.2952, allocations: 1.094 kB / 498.5 MB, free: 13.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001139/0.2963, allocations: 0.592 MB / 499.1 MB, free: 12.9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.261e-05/0.2964, allocations: 7.156 kB / 499.1 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006555/0.297, allocations: 336.1 kB / 499.4 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004507/0.2975, allocations: 110.1 kB / 499.5 MB, free: 12.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.2978, allocations: 90.17 kB / 499.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002624/0.3004, allocations: 3.029 MB / 0.4909 GB, free: 9.941 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003154/0.3008, allocations: 20.92 kB / 0.4909 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.739e-05/0.3008, allocations: 22.52 kB / 0.4909 GB, free: 9.93 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * 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%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003001/0.3011, allocations: 220 kB / 0.4911 GB, free: 9.762 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.055e-05/0.3012, allocations: 31.11 kB / 0.4912 GB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005526/0.3017, allocations: 323.5 kB / 0.4915 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.3018, allocations: 3.469 kB / 0.4915 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.3018, allocations: 1.594 kB / 0.4915 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.3018, allocations: 1.453 kB / 0.4915 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.3029, allocations: 0.8107 MB / 0.4923 GB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.303, allocations: 0 / 0.4923 GB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003121/0.3033, allocations: 61.66 kB / 0.4923 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.159e-06/0.3033, allocations: 2.344 kB / 0.4923 GB, free: 9.027 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.627e-05/0.3033, allocations: 11.11 kB / 0.4923 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.3033, allocations: 2.375 kB / 0.4923 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3033, allocations: 1.188 kB / 0.4923 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006028/0.3039, allocations: 0.509 MB / 0.4928 GB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.3041, allocations: 126.4 kB / 0.493 GB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.952e-05/0.3041, allocations: 6.562 kB / 0.493 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.3043, allocations: 4.469 kB / 0.493 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.202e-05/0.3043, allocations: 24.41 kB / 0.493 GB, free: 8.531 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.3044, allocations: 6.656 kB / 0.493 GB, free: 8.531 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000222/0.3046, allocations: 228.5 kB / 0.4932 GB, free: 8.383 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3046, allocations: 0 / 0.4932 GB, free: 8.383 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005264/0.3051, allocations: 94.22 kB / 0.4933 GB, free: 8.375 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (indYD.i[1],indYD.i[2],indYD.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0009073/0.3061, allocations: 1.052 MB / 0.4943 GB, free: 7.496 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008979/0.307, allocations: 0.5604 MB / 0.4949 GB, free: 7.117 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.307, allocations: 4.062 kB / 0.4949 GB, free: 7.113 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001886/0.3072, allocations: 129.5 kB / 0.495 GB, free: 7.055 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005112/0.3077, allocations: 64.61 kB / 0.4951 GB, free: 7.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003891/0.3116, allocations: 2.75 MB / 0.4978 GB, free: 5.074 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004325/0.3121, allocations: 0.8786 MB / 0.4986 GB, free: 4.281 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.3123, allocations: 150.9 kB / 0.4988 GB, free: 4.156 MB / 330.7 MB Notification: Performance of SimCode: time 1.924e-06/0.3123, allocations: 0 / 0.4988 GB, free: 4.156 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.263/3.575, allocations: 7.79 MB / 0.5064 GB, free: 14.28 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe 2>&1)